add disabled family

This commit is contained in:
egarette@silique.fr 2023-03-02 21:42:36 +01:00
parent cf4fe51555
commit 565abbbca3
53 changed files with 224 additions and 836 deletions

View file

@ -110,6 +110,7 @@
<!ATTLIST family help CDATA #IMPLIED> <!ATTLIST family help CDATA #IMPLIED>
<!ATTLIST family mode CDATA #IMPLIED> <!ATTLIST family mode CDATA #IMPLIED>
<!ATTLIST family hidden (True|False) "False"> <!ATTLIST family hidden (True|False) "False">
<!ATTLIST family disabled (True|False) "False">
<!ATTLIST family dynamic CDATA #IMPLIED> <!ATTLIST family dynamic CDATA #IMPLIED>
<!ATTLIST family leadership (True|False) "False"> <!ATTLIST family leadership (True|False) "False">

View file

@ -121,6 +121,7 @@ mapping:
certificate_type: certificate_type:
type: str type: str
enum: enum:
- "string"
- "variable" - "variable"
redefine: redefine:
type: bool type: bool
@ -129,6 +130,17 @@ mapping:
enum: enum:
- "client" - "client"
- "server" - "server"
format:
type: str
enum:
- "cert_key"
- "pem"
provider_type:
type: str
enum:
- "variable"
provider:
type: str
domain_type: domain_type:
type: str type: str
enum: enum:
@ -141,13 +153,6 @@ mapping:
- "variable" - "variable"
server: server:
type: str type: str
group_type:
type: str
enum:
- "unix_user"
- "variable"
group:
type: str
owner_type: owner_type:
type: str type: str
enum: enum:
@ -155,18 +160,8 @@ mapping:
- "variable" - "variable"
owner: owner:
type: str type: str
authority_type:
type: str
enum:
- "variable"
authority: authority:
type: str type: str
private_type:
type: str
enum:
- "variable"
private:
type: str
name: name:
type: str type: str
undisable: undisable:
@ -640,6 +635,8 @@ mapping:
type: bool type: bool
dynamic: dynamic:
type: str type: str
disabled:
type: bool
hidden: hidden:
type: bool type: bool
mode: mode:
@ -654,6 +651,8 @@ mapping:
type: bool type: bool
dynamic: dynamic:
type: str type: str
disabled:
type: bool
hidden: hidden:
type: bool type: bool
mode: mode:
@ -961,6 +960,8 @@ mapping:
type: bool type: bool
dynamic: dynamic:
type: str type: str
disabled:
type: bool
hidden: hidden:
type: bool type: bool
mode: mode:
@ -1268,6 +1269,8 @@ mapping:
type: bool type: bool
dynamic: dynamic:
type: str type: str
disabled:
type: bool
hidden: hidden:
type: bool type: bool
mode: mode:

View file

@ -1,28 +0,0 @@
<?xml version='1.0' encoding='UTF-8'?>
<rougail version="0.10">
<services>
<service name="test">
<certificate private="private" authority="authority" owner="owner" owner_type="variable" group="group" group_type="variable">certificate</certificate>
</service>
</services>
<variables>
<variable name="certificate" type="filename">
<value>/etc/pki/tls/certs/example.crt</value>
</variable>
<variable name="private" type="filename">
<value>/etc/pki/tls/private/example.key</value>
</variable>
<variable name="authority" type="filename">
<value>/etc/pki/ca-trust/source/anchors/ca_example.crt</value>
</variable>
<variable name="owner" type="unix_user">
<value>example</value>
</variable>
<variable name="group">
<value>example</value>
</variable>
<variable name="server_name" type="domainname">
<value>example.net</value>
</variable>
</variables>
</rougail>

View file

@ -1,37 +0,0 @@
version: '0.10'
services:
- service:
- name: test
certificate:
- private: private
authority: authority
owner: owner
owner_type: variable
group: group
group_type: variable
text: certificate
variables:
- variable:
- name: certificate
type: filename
value:
- text: /etc/pki/tls/certs/example.crt
- name: private
type: filename
value:
- text: /etc/pki/tls/private/example.key
- name: authority
type: filename
value:
- text: /etc/pki/ca-trust/source/anchors/ca_example.crt
- name: owner
type: unix_user
value:
- text: example
- name: group
value:
- text: example
- name: server_name
type: domainname
value:
- text: example.net

View file

@ -1,44 +1,20 @@
{ {
"rougail.certificate": {
"owner": "default",
"value": "/etc/pki/tls/certs/example.crt"
},
"rougail.private": {
"owner": "default",
"value": "/etc/pki/tls/private/example.key"
},
"rougail.authority": {
"owner": "default",
"value": "/etc/pki/ca-trust/source/anchors/ca_example.crt"
},
"rougail.server_name": { "rougail.server_name": {
"owner": "default", "owner": "default",
"value": "example.net" "value": "example.net"
}, },
"services.test_service.certificates.certificate.authority": {
"owner": "default",
"value": "/etc/pki/ca-trust/source/anchors/ca_example.crt"
},
"services.test_service.certificates.certificate.domain": { "services.test_service.certificates.certificate.domain": {
"owner": "default", "owner": "default",
"value": "example.net" "value": "example.net"
}, },
"services.test_service.certificates.certificate.group": {
"owner": "default",
"value": "example"
},
"services.test_service.certificates.certificate.name": { "services.test_service.certificates.certificate.name": {
"owner": "default", "owner": "default",
"value": "/etc/pki/tls/certs/example.crt" "value": "certificate"
}, },
"services.test_service.certificates.certificate.owner": { "services.test_service.certificates.certificate.owner": {
"owner": "default", "owner": "default",
"value": "example" "value": "example"
}, },
"services.test_service.certificates.certificate.private": {
"owner": "default",
"value": "/etc/pki/tls/private/example.key"
},
"services.test_service.certificates.certificate.activate": { "services.test_service.certificates.certificate.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -1,14 +1,8 @@
{ {
"rougail.certificate": "/etc/pki/tls/certs/example.crt",
"rougail.private": "/etc/pki/tls/private/example.key",
"rougail.authority": "/etc/pki/ca-trust/source/anchors/ca_example.crt",
"rougail.server_name": "example.net", "rougail.server_name": "example.net",
"services.test_service.certificates.certificate.authority": "/etc/pki/ca-trust/source/anchors/ca_example.crt",
"services.test_service.certificates.certificate.domain": "example.net", "services.test_service.certificates.certificate.domain": "example.net",
"services.test_service.certificates.certificate.group": "example", "services.test_service.certificates.certificate.name": "certificate",
"services.test_service.certificates.certificate.name": "/etc/pki/tls/certs/example.crt",
"services.test_service.certificates.certificate.owner": "example", "services.test_service.certificates.certificate.owner": "example",
"services.test_service.certificates.certificate.private": "/etc/pki/tls/private/example.key",
"services.test_service.certificates.certificate.activate": true, "services.test_service.certificates.certificate.activate": true,
"services.test_service.activate": true, "services.test_service.activate": true,
"services.test_service.manage": true "services.test_service.manage": true

View file

@ -1,44 +1,20 @@
{ {
"rougail.certificate": {
"owner": "default",
"value": "/etc/pki/tls/certs/example.crt"
},
"rougail.private": {
"owner": "default",
"value": "/etc/pki/tls/private/example.key"
},
"rougail.authority": {
"owner": "default",
"value": "/etc/pki/ca-trust/source/anchors/ca_example.crt"
},
"rougail.server_name": { "rougail.server_name": {
"owner": "default", "owner": "default",
"value": "example.net" "value": "example.net"
}, },
"services.test_service.certificates.certificate.authority": {
"owner": "default",
"value": "/etc/pki/ca-trust/source/anchors/ca_example.crt"
},
"services.test_service.certificates.certificate.domain": { "services.test_service.certificates.certificate.domain": {
"owner": "default", "owner": "default",
"value": "example.net" "value": "example.net"
}, },
"services.test_service.certificates.certificate.group": {
"owner": "default",
"value": "example"
},
"services.test_service.certificates.certificate.name": { "services.test_service.certificates.certificate.name": {
"owner": "default", "owner": "default",
"value": "/etc/pki/tls/certs/example.crt" "value": "certificate"
}, },
"services.test_service.certificates.certificate.owner": { "services.test_service.certificates.certificate.owner": {
"owner": "default", "owner": "default",
"value": "example" "value": "example"
}, },
"services.test_service.certificates.certificate.private": {
"owner": "default",
"value": "/etc/pki/tls/private/example.key"
},
"services.test_service.certificates.certificate.activate": { "services.test_service.certificates.certificate.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -18,24 +18,20 @@ try:
from tiramisu3 import * from tiramisu3 import *
except: except:
from tiramisu import * from tiramisu import *
option_1 = FilenameOption(name="certificate", doc="certificate", default="/etc/pki/tls/certs/example.crt", properties=frozenset({"mandatory", "normal"})) option_1 = DomainnameOption(name="server_name", doc="server_name", default="example.net", type='domainname', allow_ip=False, properties=frozenset({"mandatory", "normal"}))
option_2 = FilenameOption(name="private", doc="private", default="/etc/pki/tls/private/example.key", properties=frozenset({"mandatory", "normal"})) optiondescription_10 = OptionDescription(name="rougail", doc="Rougail", children=[option_1])
option_3 = FilenameOption(name="authority", doc="authority", default="/etc/pki/ca-trust/source/anchors/ca_example.crt", properties=frozenset({"mandatory", "normal"})) option_6 = SymLinkOption(name="domain", opt=option_1)
option_4 = DomainnameOption(name="server_name", doc="server_name", default="example.net", type='domainname', allow_ip=False, properties=frozenset({"mandatory", "normal"})) option_7 = StrOption(name="name", doc="name", default="certificate")
optiondescription_16 = OptionDescription(name="rougail", doc="Rougail", children=[option_1, option_2, option_3, option_4]) option_8 = UsernameOption(name="owner", doc="owner", default="example")
option_9 = SymLinkOption(name="authority", opt=option_3)
option_10 = SymLinkOption(name="domain", opt=option_4)
option_11 = UsernameOption(name="group", doc="group", default="example")
option_12 = SymLinkOption(name="name", opt=option_1)
option_13 = UsernameOption(name="owner", doc="owner", default="example")
option_14 = SymLinkOption(name="private", opt=option_2)
option_8 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_7 = OptionDescription(name="certificate", doc="certificate", children=[option_9, option_10, option_11, option_12, option_13, option_14, option_8])
optiondescription_7.impl_set_information('type', "client")
optiondescription_6 = OptionDescription(name="certificates", doc="certificates", children=[optiondescription_7])
option_5 = BoolOption(name="activate", doc="activate", default=True) option_5 = BoolOption(name="activate", doc="activate", default=True)
option_15 = BoolOption(name="manage", doc="manage", default=True) optiondescription_4 = OptionDescription(name="certificate", doc="certificate", children=[option_6, option_7, option_8, option_5])
optiondescription_18 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_15]) optiondescription_4.impl_set_information('authority', "authority")
optiondescription_18.impl_set_information('type', "service") optiondescription_4.impl_set_information('format', "cert_key")
optiondescription_17 = OptionDescription(name="services", doc="services", children=[optiondescription_18], properties=frozenset({"hidden"})) optiondescription_4.impl_set_information('type', "client")
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_16, optiondescription_17]) optiondescription_3 = OptionDescription(name="certificates", doc="certificates", children=[optiondescription_4])
option_2 = BoolOption(name="activate", doc="activate", default=True)
option_9 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_12 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_3, option_2, option_9])
optiondescription_12.impl_set_information('type', "service")
optiondescription_11 = OptionDescription(name="services", doc="services", children=[optiondescription_12], properties=frozenset({"hidden"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_10, optiondescription_11])

View file

@ -18,46 +18,38 @@ try:
from tiramisu3 import * from tiramisu3 import *
except: except:
from tiramisu import * from tiramisu import *
option_1 = FilenameOption(name="certificate", doc="certificate", default="/etc/pki/tls/certs/example.crt", properties=frozenset({"mandatory", "normal"})) option_1 = DomainnameOption(name="server_name", doc="server_name", default="example.net", type='domainname', allow_ip=False, properties=frozenset({"mandatory", "normal"}))
option_2 = FilenameOption(name="private", doc="private", default="/etc/pki/tls/private/example.key", properties=frozenset({"mandatory", "normal"})) optiondescription_20 = OptionDescription(name="rougail", doc="Rougail", children=[option_1])
option_3 = FilenameOption(name="authority", doc="authority", default="/etc/pki/ca-trust/source/anchors/ca_example.crt", properties=frozenset({"mandatory", "normal"})) option_7 = SymLinkOption(name="domain", opt=option_1)
option_4 = DomainnameOption(name="server_name", doc="server_name", default="example.net", type='domainname', allow_ip=False, properties=frozenset({"mandatory", "normal"})) option_8 = StrOption(name="name", doc="name", default="certificate")
optiondescription_32 = OptionDescription(name="rougail", doc="Rougail", children=[option_1, option_2, option_3, option_4]) option_9 = UsernameOption(name="owner", doc="owner", default="example")
option_13 = SymLinkOption(name="authority", opt=option_3) option_6 = BoolOption(name="activate", doc="activate", default=True)
option_14 = SymLinkOption(name="domain", opt=option_4) optiondescription_5 = OptionDescription(name="certificate", doc="certificate", children=[option_7, option_8, option_9, option_6])
option_15 = UsernameOption(name="group", doc="group", default="example") optiondescription_5.impl_set_information('authority', "authority")
option_16 = SymLinkOption(name="name", opt=option_1) optiondescription_5.impl_set_information('format', "cert_key")
optiondescription_5.impl_set_information('type', "client")
optiondescription_4 = OptionDescription(name="certificates", doc="certificates", children=[optiondescription_5])
option_3 = BoolOption(name="activate", doc="activate", default=True)
option_10 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_22 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_4, option_3, option_10])
optiondescription_22.impl_set_information('type', "service")
optiondescription_21 = OptionDescription(name="services", doc="services", children=[optiondescription_22], properties=frozenset({"hidden"}))
optiondescription_19 = OptionDescription(name="1", doc="1", children=[optiondescription_20, optiondescription_21])
option_2 = DomainnameOption(name="server_name", doc="server_name", default="example.net", type='domainname', allow_ip=False, properties=frozenset({"mandatory", "normal"}))
optiondescription_24 = OptionDescription(name="rougail", doc="Rougail", children=[option_2])
option_15 = SymLinkOption(name="domain", opt=option_2)
option_16 = StrOption(name="name", doc="name", default="certificate")
option_17 = UsernameOption(name="owner", doc="owner", default="example") option_17 = UsernameOption(name="owner", doc="owner", default="example")
option_18 = SymLinkOption(name="private", opt=option_2) option_14 = BoolOption(name="activate", doc="activate", default=True)
option_12 = BoolOption(name="activate", doc="activate", default=True) optiondescription_13 = OptionDescription(name="certificate", doc="certificate", children=[option_15, option_16, option_17, option_14])
optiondescription_11 = OptionDescription(name="certificate", doc="certificate", children=[option_13, option_14, option_15, option_16, option_17, option_18, option_12]) optiondescription_13.impl_set_information('authority', "authority")
optiondescription_11.impl_set_information('type', "client") optiondescription_13.impl_set_information('format', "cert_key")
optiondescription_10 = OptionDescription(name="certificates", doc="certificates", children=[optiondescription_11]) optiondescription_13.impl_set_information('type', "client")
option_9 = BoolOption(name="activate", doc="activate", default=True) optiondescription_12 = OptionDescription(name="certificates", doc="certificates", children=[optiondescription_13])
option_19 = BoolOption(name="manage", doc="manage", default=True) option_11 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_34 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_10, option_9, option_19]) option_18 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_34.impl_set_information('type', "service") optiondescription_26 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_12, option_11, option_18])
optiondescription_33 = OptionDescription(name="services", doc="services", children=[optiondescription_34], properties=frozenset({"hidden"})) optiondescription_26.impl_set_information('type', "service")
optiondescription_31 = OptionDescription(name="1", doc="1", children=[optiondescription_32, optiondescription_33]) optiondescription_25 = OptionDescription(name="services", doc="services", children=[optiondescription_26], properties=frozenset({"hidden"}))
option_5 = FilenameOption(name="certificate", doc="certificate", default="/etc/pki/tls/certs/example.crt", properties=frozenset({"mandatory", "normal"})) optiondescription_23 = OptionDescription(name="2", doc="2", children=[optiondescription_24, optiondescription_25])
option_6 = FilenameOption(name="private", doc="private", default="/etc/pki/tls/private/example.key", properties=frozenset({"mandatory", "normal"})) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_19, optiondescription_23])
option_7 = FilenameOption(name="authority", doc="authority", default="/etc/pki/ca-trust/source/anchors/ca_example.crt", properties=frozenset({"mandatory", "normal"}))
option_8 = DomainnameOption(name="server_name", doc="server_name", default="example.net", type='domainname', allow_ip=False, properties=frozenset({"mandatory", "normal"}))
optiondescription_36 = OptionDescription(name="rougail", doc="Rougail", children=[option_5, option_6, option_7, option_8])
option_24 = SymLinkOption(name="authority", opt=option_7)
option_25 = SymLinkOption(name="domain", opt=option_8)
option_26 = UsernameOption(name="group", doc="group", default="example")
option_27 = SymLinkOption(name="name", opt=option_5)
option_28 = UsernameOption(name="owner", doc="owner", default="example")
option_29 = SymLinkOption(name="private", opt=option_6)
option_23 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_22 = OptionDescription(name="certificate", doc="certificate", children=[option_24, option_25, option_26, option_27, option_28, option_29, option_23])
optiondescription_22.impl_set_information('type', "client")
optiondescription_21 = OptionDescription(name="certificates", doc="certificates", children=[optiondescription_22])
option_20 = BoolOption(name="activate", doc="activate", default=True)
option_30 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_38 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_21, option_20, option_30])
optiondescription_38.impl_set_information('type', "service")
optiondescription_37 = OptionDescription(name="services", doc="services", children=[optiondescription_38], properties=frozenset({"hidden"}))
optiondescription_35 = OptionDescription(name="2", doc="2", children=[optiondescription_36, optiondescription_37])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_31, optiondescription_35])

View file

@ -2,19 +2,10 @@
<rougail version="0.10"> <rougail version="0.10">
<services> <services>
<service name="test"> <service name="test">
<certificate private="private" authority="authority" owner="example" group="example">certificate</certificate> <certificate authority="authority" owner="example">certificate</certificate>
</service> </service>
</services> </services>
<variables> <variables>
<variable name="certificate" type="filename">
<value>/etc/pki/tls/certs/example.crt</value>
</variable>
<variable name="private" type="filename">
<value>/etc/pki/tls/private/example.key</value>
</variable>
<variable name="authority" type="filename">
<value>/etc/pki/ca-trust/source/anchors/ca_example.crt</value>
</variable>
<variable name="server_name" type="domainname"> <variable name="server_name" type="domainname">
<value>example.net</value> <value>example.net</value>
</variable> </variable>

View file

@ -3,25 +3,11 @@ services:
- service: - service:
- name: test - name: test
certificate: certificate:
- private: private - authority: authority
authority: authority
owner: example owner: example
group: example
text: certificate text: certificate
variables: variables:
- variable: - variable:
- name: certificate
type: filename
value:
- text: /etc/pki/tls/certs/example.crt
- name: private
type: filename
value:
- text: /etc/pki/tls/private/example.key
- name: authority
type: filename
value:
- text: /etc/pki/ca-trust/source/anchors/ca_example.crt
- name: server_name - name: server_name
type: domainname type: domainname
value: value:

View file

@ -1,52 +1,24 @@
{ {
"rougail.certificate": {
"owner": "default",
"value": "/etc/pki/tls/certs/example.crt"
},
"rougail.private": {
"owner": "default",
"value": "/etc/pki/tls/private/example.key"
},
"rougail.authority": {
"owner": "default",
"value": "/etc/pki/ca-trust/source/anchors/ca_example.crt"
},
"rougail.owner": { "rougail.owner": {
"owner": "default", "owner": "default",
"value": "example" "value": "example"
}, },
"rougail.group": {
"owner": "default",
"value": "example"
},
"rougail.server_name": { "rougail.server_name": {
"owner": "default", "owner": "default",
"value": "example.net" "value": "example.net"
}, },
"services.test_service.certificates.certificate.authority": {
"owner": "default",
"value": "/etc/pki/ca-trust/source/anchors/ca_example.crt"
},
"services.test_service.certificates.certificate.domain": { "services.test_service.certificates.certificate.domain": {
"owner": "default", "owner": "default",
"value": "example.net" "value": "example.net"
}, },
"services.test_service.certificates.certificate.group": {
"owner": "default",
"value": "example"
},
"services.test_service.certificates.certificate.name": { "services.test_service.certificates.certificate.name": {
"owner": "default", "owner": "default",
"value": "/etc/pki/tls/certs/example.crt" "value": "certificate"
}, },
"services.test_service.certificates.certificate.owner": { "services.test_service.certificates.certificate.owner": {
"owner": "default", "owner": "default",
"value": "example" "value": "example"
}, },
"services.test_service.certificates.certificate.private": {
"owner": "default",
"value": "/etc/pki/tls/private/example.key"
},
"services.test_service.certificates.certificate.activate": { "services.test_service.certificates.certificate.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -1,16 +1,9 @@
{ {
"rougail.certificate": "/etc/pki/tls/certs/example.crt",
"rougail.private": "/etc/pki/tls/private/example.key",
"rougail.authority": "/etc/pki/ca-trust/source/anchors/ca_example.crt",
"rougail.owner": "example", "rougail.owner": "example",
"rougail.group": "example",
"rougail.server_name": "example.net", "rougail.server_name": "example.net",
"services.test_service.certificates.certificate.authority": "/etc/pki/ca-trust/source/anchors/ca_example.crt",
"services.test_service.certificates.certificate.domain": "example.net", "services.test_service.certificates.certificate.domain": "example.net",
"services.test_service.certificates.certificate.group": "example", "services.test_service.certificates.certificate.name": "certificate",
"services.test_service.certificates.certificate.name": "/etc/pki/tls/certs/example.crt",
"services.test_service.certificates.certificate.owner": "example", "services.test_service.certificates.certificate.owner": "example",
"services.test_service.certificates.certificate.private": "/etc/pki/tls/private/example.key",
"services.test_service.certificates.certificate.activate": true, "services.test_service.certificates.certificate.activate": true,
"services.test_service.activate": true, "services.test_service.activate": true,
"services.test_service.manage": true "services.test_service.manage": true

View file

@ -1,52 +1,24 @@
{ {
"rougail.certificate": {
"owner": "default",
"value": "/etc/pki/tls/certs/example.crt"
},
"rougail.private": {
"owner": "default",
"value": "/etc/pki/tls/private/example.key"
},
"rougail.authority": {
"owner": "default",
"value": "/etc/pki/ca-trust/source/anchors/ca_example.crt"
},
"rougail.owner": { "rougail.owner": {
"owner": "default", "owner": "default",
"value": "example" "value": "example"
}, },
"rougail.group": {
"owner": "default",
"value": "example"
},
"rougail.server_name": { "rougail.server_name": {
"owner": "default", "owner": "default",
"value": "example.net" "value": "example.net"
}, },
"services.test_service.certificates.certificate.authority": {
"owner": "default",
"value": "/etc/pki/ca-trust/source/anchors/ca_example.crt"
},
"services.test_service.certificates.certificate.domain": { "services.test_service.certificates.certificate.domain": {
"owner": "default", "owner": "default",
"value": "example.net" "value": "example.net"
}, },
"services.test_service.certificates.certificate.group": {
"owner": "default",
"value": "example"
},
"services.test_service.certificates.certificate.name": { "services.test_service.certificates.certificate.name": {
"owner": "default", "owner": "default",
"value": "/etc/pki/tls/certs/example.crt" "value": "certificate"
}, },
"services.test_service.certificates.certificate.owner": { "services.test_service.certificates.certificate.owner": {
"owner": "default", "owner": "default",
"value": "example" "value": "example"
}, },
"services.test_service.certificates.certificate.private": {
"owner": "default",
"value": "/etc/pki/tls/private/example.key"
},
"services.test_service.certificates.certificate.activate": { "services.test_service.certificates.certificate.activate": {
"owner": "default", "owner": "default",
"value": true "value": true

View file

@ -18,26 +18,21 @@ try:
from tiramisu3 import * from tiramisu3 import *
except: except:
from tiramisu import * from tiramisu import *
option_1 = FilenameOption(name="certificate", doc="certificate", default="/etc/pki/tls/certs/example.crt", properties=frozenset({"mandatory", "normal"})) option_1 = UsernameOption(name="owner", doc="owner", default="example", properties=frozenset({"mandatory", "normal"}))
option_2 = FilenameOption(name="private", doc="private", default="/etc/pki/tls/private/example.key", properties=frozenset({"mandatory", "normal"})) option_2 = DomainnameOption(name="server_name", doc="server_name", default="example.net", type='domainname', allow_ip=False, properties=frozenset({"mandatory", "normal"}))
option_3 = FilenameOption(name="authority", doc="authority", default="/etc/pki/ca-trust/source/anchors/ca_example.crt", properties=frozenset({"mandatory", "normal"})) optiondescription_11 = OptionDescription(name="rougail", doc="Rougail", children=[option_1, option_2])
option_4 = UsernameOption(name="owner", doc="owner", default="example", properties=frozenset({"mandatory", "normal"})) option_7 = SymLinkOption(name="domain", opt=option_2)
option_5 = UsernameOption(name="group", doc="group", default="example", properties=frozenset({"mandatory", "normal"})) option_8 = StrOption(name="name", doc="name", default="certificate")
option_6 = DomainnameOption(name="server_name", doc="server_name", default="example.net", type='domainname', allow_ip=False, properties=frozenset({"mandatory", "normal"})) option_9 = SymLinkOption(name="owner", opt=option_1)
optiondescription_18 = OptionDescription(name="rougail", doc="Rougail", children=[option_1, option_2, option_3, option_4, option_5, option_6]) option_6 = BoolOption(name="activate", doc="activate", default=True)
option_11 = SymLinkOption(name="authority", opt=option_3) optiondescription_5 = OptionDescription(name="certificate", doc="certificate", children=[option_7, option_8, option_9, option_6])
option_12 = SymLinkOption(name="domain", opt=option_6) optiondescription_5.impl_set_information('authority', "authority")
option_13 = SymLinkOption(name="group", opt=option_5) optiondescription_5.impl_set_information('format', "cert_key")
option_14 = SymLinkOption(name="name", opt=option_1) optiondescription_5.impl_set_information('type', "client")
option_15 = SymLinkOption(name="owner", opt=option_4) optiondescription_4 = OptionDescription(name="certificates", doc="certificates", children=[optiondescription_5])
option_16 = SymLinkOption(name="private", opt=option_2) option_3 = BoolOption(name="activate", doc="activate", default=True)
option_10 = BoolOption(name="activate", doc="activate", default=True) option_10 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_9 = OptionDescription(name="certificate", doc="certificate", children=[option_11, option_12, option_13, option_14, option_15, option_16, option_10]) optiondescription_13 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_4, option_3, option_10])
optiondescription_9.impl_set_information('type', "client") optiondescription_13.impl_set_information('type', "service")
optiondescription_8 = OptionDescription(name="certificates", doc="certificates", children=[optiondescription_9]) optiondescription_12 = OptionDescription(name="services", doc="services", children=[optiondescription_13], properties=frozenset({"hidden"}))
option_7 = BoolOption(name="activate", doc="activate", default=True) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_11, optiondescription_12])
option_17 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_20 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_8, option_7, option_17])
optiondescription_20.impl_set_information('type', "service")
optiondescription_19 = OptionDescription(name="services", doc="services", children=[optiondescription_20], properties=frozenset({"hidden"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_18, optiondescription_19])

View file

@ -18,50 +18,40 @@ try:
from tiramisu3 import * from tiramisu3 import *
except: except:
from tiramisu import * from tiramisu import *
option_1 = FilenameOption(name="certificate", doc="certificate", default="/etc/pki/tls/certs/example.crt", properties=frozenset({"mandatory", "normal"})) option_1 = UsernameOption(name="owner", doc="owner", default="example", properties=frozenset({"mandatory", "normal"}))
option_2 = FilenameOption(name="private", doc="private", default="/etc/pki/tls/private/example.key", properties=frozenset({"mandatory", "normal"})) option_2 = DomainnameOption(name="server_name", doc="server_name", default="example.net", type='domainname', allow_ip=False, properties=frozenset({"mandatory", "normal"}))
option_3 = FilenameOption(name="authority", doc="authority", default="/etc/pki/ca-trust/source/anchors/ca_example.crt", properties=frozenset({"mandatory", "normal"})) optiondescription_22 = OptionDescription(name="rougail", doc="Rougail", children=[option_1, option_2])
option_4 = UsernameOption(name="owner", doc="owner", default="example", properties=frozenset({"mandatory", "normal"})) option_9 = SymLinkOption(name="domain", opt=option_2)
option_5 = UsernameOption(name="group", doc="group", default="example", properties=frozenset({"mandatory", "normal"})) option_10 = StrOption(name="name", doc="name", default="certificate")
option_6 = DomainnameOption(name="server_name", doc="server_name", default="example.net", type='domainname', allow_ip=False, properties=frozenset({"mandatory", "normal"})) option_11 = SymLinkOption(name="owner", opt=option_1)
optiondescription_36 = OptionDescription(name="rougail", doc="Rougail", children=[option_1, option_2, option_3, option_4, option_5, option_6]) option_8 = BoolOption(name="activate", doc="activate", default=True)
option_17 = SymLinkOption(name="authority", opt=option_3) optiondescription_7 = OptionDescription(name="certificate", doc="certificate", children=[option_9, option_10, option_11, option_8])
option_18 = SymLinkOption(name="domain", opt=option_6) optiondescription_7.impl_set_information('authority', "authority")
option_19 = SymLinkOption(name="group", opt=option_5) optiondescription_7.impl_set_information('format', "cert_key")
option_20 = SymLinkOption(name="name", opt=option_1) optiondescription_7.impl_set_information('type', "client")
option_21 = SymLinkOption(name="owner", opt=option_4) optiondescription_6 = OptionDescription(name="certificates", doc="certificates", children=[optiondescription_7])
option_22 = SymLinkOption(name="private", opt=option_2) option_5 = BoolOption(name="activate", doc="activate", default=True)
option_12 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_24 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_12])
optiondescription_24.impl_set_information('type', "service")
optiondescription_23 = OptionDescription(name="services", doc="services", children=[optiondescription_24], properties=frozenset({"hidden"}))
optiondescription_21 = OptionDescription(name="1", doc="1", children=[optiondescription_22, optiondescription_23])
option_3 = UsernameOption(name="owner", doc="owner", default="example", properties=frozenset({"mandatory", "normal"}))
option_4 = DomainnameOption(name="server_name", doc="server_name", default="example.net", type='domainname', allow_ip=False, properties=frozenset({"mandatory", "normal"}))
optiondescription_26 = OptionDescription(name="rougail", doc="Rougail", children=[option_3, option_4])
option_17 = SymLinkOption(name="domain", opt=option_4)
option_18 = StrOption(name="name", doc="name", default="certificate")
option_19 = SymLinkOption(name="owner", opt=option_3)
option_16 = BoolOption(name="activate", doc="activate", default=True) option_16 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_15 = OptionDescription(name="certificate", doc="certificate", children=[option_17, option_18, option_19, option_20, option_21, option_22, option_16]) optiondescription_15 = OptionDescription(name="certificate", doc="certificate", children=[option_17, option_18, option_19, option_16])
optiondescription_15.impl_set_information('authority', "authority")
optiondescription_15.impl_set_information('format', "cert_key")
optiondescription_15.impl_set_information('type', "client") optiondescription_15.impl_set_information('type', "client")
optiondescription_14 = OptionDescription(name="certificates", doc="certificates", children=[optiondescription_15]) optiondescription_14 = OptionDescription(name="certificates", doc="certificates", children=[optiondescription_15])
option_13 = BoolOption(name="activate", doc="activate", default=True) option_13 = BoolOption(name="activate", doc="activate", default=True)
option_23 = BoolOption(name="manage", doc="manage", default=True) option_20 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_38 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_14, option_13, option_23]) optiondescription_28 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_14, option_13, option_20])
optiondescription_38.impl_set_information('type', "service") optiondescription_28.impl_set_information('type', "service")
optiondescription_37 = OptionDescription(name="services", doc="services", children=[optiondescription_38], properties=frozenset({"hidden"})) optiondescription_27 = OptionDescription(name="services", doc="services", children=[optiondescription_28], properties=frozenset({"hidden"}))
optiondescription_35 = OptionDescription(name="1", doc="1", children=[optiondescription_36, optiondescription_37]) optiondescription_25 = OptionDescription(name="2", doc="2", children=[optiondescription_26, optiondescription_27])
option_7 = FilenameOption(name="certificate", doc="certificate", default="/etc/pki/tls/certs/example.crt", properties=frozenset({"mandatory", "normal"})) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_21, optiondescription_25])
option_8 = FilenameOption(name="private", doc="private", default="/etc/pki/tls/private/example.key", properties=frozenset({"mandatory", "normal"}))
option_9 = FilenameOption(name="authority", doc="authority", default="/etc/pki/ca-trust/source/anchors/ca_example.crt", properties=frozenset({"mandatory", "normal"}))
option_10 = UsernameOption(name="owner", doc="owner", default="example", properties=frozenset({"mandatory", "normal"}))
option_11 = UsernameOption(name="group", doc="group", default="example", properties=frozenset({"mandatory", "normal"}))
option_12 = DomainnameOption(name="server_name", doc="server_name", default="example.net", type='domainname', allow_ip=False, properties=frozenset({"mandatory", "normal"}))
optiondescription_40 = OptionDescription(name="rougail", doc="Rougail", children=[option_7, option_8, option_9, option_10, option_11, option_12])
option_28 = SymLinkOption(name="authority", opt=option_9)
option_29 = SymLinkOption(name="domain", opt=option_12)
option_30 = SymLinkOption(name="group", opt=option_11)
option_31 = SymLinkOption(name="name", opt=option_7)
option_32 = SymLinkOption(name="owner", opt=option_10)
option_33 = SymLinkOption(name="private", opt=option_8)
option_27 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_26 = OptionDescription(name="certificate", doc="certificate", children=[option_28, option_29, option_30, option_31, option_32, option_33, option_27])
optiondescription_26.impl_set_information('type', "client")
optiondescription_25 = OptionDescription(name="certificates", doc="certificates", children=[optiondescription_26])
option_24 = BoolOption(name="activate", doc="activate", default=True)
option_34 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_42 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_25, option_24, option_34])
optiondescription_42.impl_set_information('type', "service")
optiondescription_41 = OptionDescription(name="services", doc="services", children=[optiondescription_42], properties=frozenset({"hidden"}))
optiondescription_39 = OptionDescription(name="2", doc="2", children=[optiondescription_40, optiondescription_41])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_35, optiondescription_39])

View file

@ -2,25 +2,13 @@
<rougail version="0.10"> <rougail version="0.10">
<services> <services>
<service name="test"> <service name="test">
<certificate private="private" authority="authority" owner="owner" owner_type="variable" group="group" group_type="variable">certificate</certificate> <certificate authority="authority" owner="owner" owner_type="variable">certificate</certificate>
</service> </service>
</services> </services>
<variables> <variables>
<variable name="certificate" type="filename">
<value>/etc/pki/tls/certs/example.crt</value>
</variable>
<variable name="private" type="filename">
<value>/etc/pki/tls/private/example.key</value>
</variable>
<variable name="authority" type="filename">
<value>/etc/pki/ca-trust/source/anchors/ca_example.crt</value>
</variable>
<variable name="owner" type="unix_user"> <variable name="owner" type="unix_user">
<value>example</value> <value>example</value>
</variable> </variable>
<variable name="group" type="unix_user">
<value>example</value>
</variable>
<variable name="server_name" type="domainname"> <variable name="server_name" type="domainname">
<value>example.net</value> <value>example.net</value>
</variable> </variable>

View file

@ -3,35 +3,16 @@ services:
- service: - service:
- name: test - name: test
certificate: certificate:
- private: private - authority: authority
authority: authority
owner: owner owner: owner
owner_type: variable owner_type: variable
group: group
group_type: variable
text: certificate text: certificate
variables: variables:
- variable: - variable:
- name: certificate
type: filename
value:
- text: /etc/pki/tls/certs/example.crt
- name: private
type: filename
value:
- text: /etc/pki/tls/private/example.key
- name: authority
type: filename
value:
- text: /etc/pki/ca-trust/source/anchors/ca_example.crt
- name: owner - name: owner
type: unix_user type: unix_user
value: value:
- text: example - text: example
- name: group
type: unix_user
value:
- text: example
- name: server_name - name: server_name
type: domainname type: domainname
value: value:

View file

@ -1,28 +0,0 @@
<?xml version='1.0' encoding='UTF-8'?>
<rougail version="0.10">
<services>
<service name="test">
<certificate private="private" authority="authority" owner="owner" owner_type="variable" group="group" group_type="variable">certificate</certificate>
</service>
</services>
<variables>
<variable name="certificate" type="filename">
<value>/etc/pki/tls/certs/example.crt</value>
</variable>
<variable name="private" type="filename">
<value>/etc/pki/tls/private/example.key</value>
</variable>
<variable name="authority" type="filename">
<value>/etc/pki/ca-trust/source/anchors/ca_example.crt</value>
</variable>
<variable name="owner">
<value>example</value>
</variable>
<variable name="group" type="unix_user">
<value>example</value>
</variable>
<variable name="server_name" type="domainname">
<value>example.net</value>
</variable>
</variables>
</rougail>

View file

@ -1,37 +0,0 @@
version: '0.10'
services:
- service:
- name: test
certificate:
- private: private
authority: authority
owner: owner
owner_type: variable
group: group
group_type: variable
text: certificate
variables:
- variable:
- name: certificate
type: filename
value:
- text: /etc/pki/tls/certs/example.crt
- name: private
type: filename
value:
- text: /etc/pki/tls/private/example.key
- name: authority
type: filename
value:
- text: /etc/pki/ca-trust/source/anchors/ca_example.crt
- name: owner
value:
- text: example
- name: group
type: unix_user
value:
- text: example
- name: server_name
type: domainname
value:
- text: example.net

View file

@ -1,46 +0,0 @@
{
"rougail.certificate": {
"owner": "default",
"value": "/etc/pki/tls/certs/example.crt"
},
"rougail.private": {
"owner": "default",
"value": "/etc/pki/tls/private/example.key"
},
"rougail.authority": {
"owner": "default",
"value": "/etc/pki/ca-trust/source/anchors/ca_example.crt"
},
"rougail.server_name": {
"owner": "default",
"value": "example.net"
},
"services.test_service.certificates.certificate.authority": {
"owner": "default",
"value": "/etc/pki/ca-trust/source/anchors/ca_example.crt"
},
"services.test_service.certificates.certificate.domain": {
"owner": "default",
"value": "example.net"
},
"services.test_service.certificates.certificate.name": {
"owner": "default",
"value": "/etc/pki/tls/certs/example.crt"
},
"services.test_service.certificates.certificate.private": {
"owner": "default",
"value": "/etc/pki/tls/private/example.key"
},
"services.test_service.certificates.certificate.activate": {
"owner": "default",
"value": true
},
"services.test_service.activate": {
"owner": "default",
"value": true
},
"services.test_service.manage": {
"owner": "default",
"value": true
}
}

View file

@ -1,13 +0,0 @@
{
"rougail.certificate": "/etc/pki/tls/certs/example.crt",
"rougail.private": "/etc/pki/tls/private/example.key",
"rougail.authority": "/etc/pki/ca-trust/source/anchors/ca_example.crt",
"rougail.server_name": "example.net",
"services.test_service.certificates.certificate.authority": "/etc/pki/ca-trust/source/anchors/ca_example.crt",
"services.test_service.certificates.certificate.domain": "example.net",
"services.test_service.certificates.certificate.name": "/etc/pki/tls/certs/example.crt",
"services.test_service.certificates.certificate.private": "/etc/pki/tls/private/example.key",
"services.test_service.certificates.certificate.activate": true,
"services.test_service.activate": true,
"services.test_service.manage": true
}

View file

@ -1,46 +0,0 @@
{
"rougail.certificate": {
"owner": "default",
"value": "/etc/pki/tls/certs/example.crt"
},
"rougail.private": {
"owner": "default",
"value": "/etc/pki/tls/private/example.key"
},
"rougail.authority": {
"owner": "default",
"value": "/etc/pki/ca-trust/source/anchors/ca_example.crt"
},
"rougail.server_name": {
"owner": "default",
"value": "example.net"
},
"services.test_service.certificates.certificate.authority": {
"owner": "default",
"value": "/etc/pki/ca-trust/source/anchors/ca_example.crt"
},
"services.test_service.certificates.certificate.domain": {
"owner": "default",
"value": "example.net"
},
"services.test_service.certificates.certificate.name": {
"owner": "default",
"value": "/etc/pki/tls/certs/example.crt"
},
"services.test_service.certificates.certificate.private": {
"owner": "default",
"value": "/etc/pki/tls/private/example.key"
},
"services.test_service.certificates.certificate.activate": {
"owner": "default",
"value": true
},
"services.test_service.activate": {
"owner": "default",
"value": true
},
"services.test_service.manage": {
"owner": "default",
"value": true
}
}

View file

@ -1,39 +0,0 @@
from importlib.machinery import SourceFileLoader as _SourceFileLoader
from importlib.util import spec_from_loader as _spec_from_loader, module_from_spec as _module_from_spec
class func:
pass
def _load_functions(path):
global _SourceFileLoader, _spec_from_loader, _module_from_spec, func
loader = _SourceFileLoader('func', path)
spec = _spec_from_loader(loader.name, loader)
func_ = _module_from_spec(spec)
loader.exec_module(func_)
for function in dir(func_):
if function.startswith('_'):
continue
setattr(func, function, getattr(func_, function))
_load_functions('tests/dictionaries/../eosfunc/test.py')
try:
from tiramisu3 import *
except:
from tiramisu import *
option_1 = FilenameOption(name="certificate", doc="certificate", default="/etc/pki/tls/certs/example.crt", properties=frozenset({"mandatory", "normal"}))
option_2 = FilenameOption(name="private", doc="private", default="/etc/pki/tls/private/example.key", properties=frozenset({"mandatory", "normal"}))
option_3 = FilenameOption(name="authority", doc="authority", default="/etc/pki/ca-trust/source/anchors/ca_example.crt", properties=frozenset({"mandatory", "normal"}))
option_4 = DomainnameOption(name="server_name", doc="server_name", default="example.net", type='domainname', allow_ip=False, properties=frozenset({"mandatory", "normal"}))
optiondescription_14 = OptionDescription(name="rougail", doc="Rougail", children=[option_1, option_2, option_3, option_4])
option_9 = SymLinkOption(name="authority", opt=option_3)
option_10 = SymLinkOption(name="domain", opt=option_4)
option_11 = SymLinkOption(name="name", opt=option_1)
option_12 = SymLinkOption(name="private", opt=option_2)
option_8 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_7 = OptionDescription(name="certificate", doc="certificate", children=[option_9, option_10, option_11, option_12, option_8])
optiondescription_7.impl_set_information('type', "client")
optiondescription_6 = OptionDescription(name="certificates", doc="certificates", children=[optiondescription_7])
option_5 = BoolOption(name="activate", doc="activate", default=True)
option_13 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_16 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_6, option_5, option_13])
optiondescription_16.impl_set_information('type', "service")
optiondescription_15 = OptionDescription(name="services", doc="services", children=[optiondescription_16], properties=frozenset({"hidden"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_14, optiondescription_15])

View file

@ -1,59 +0,0 @@
from importlib.machinery import SourceFileLoader as _SourceFileLoader
from importlib.util import spec_from_loader as _spec_from_loader, module_from_spec as _module_from_spec
class func:
pass
def _load_functions(path):
global _SourceFileLoader, _spec_from_loader, _module_from_spec, func
loader = _SourceFileLoader('func', path)
spec = _spec_from_loader(loader.name, loader)
func_ = _module_from_spec(spec)
loader.exec_module(func_)
for function in dir(func_):
if function.startswith('_'):
continue
setattr(func, function, getattr(func_, function))
_load_functions('tests/dictionaries/../eosfunc/test.py')
try:
from tiramisu3 import *
except:
from tiramisu import *
option_1 = FilenameOption(name="certificate", doc="certificate", default="/etc/pki/tls/certs/example.crt", properties=frozenset({"mandatory", "normal"}))
option_2 = FilenameOption(name="private", doc="private", default="/etc/pki/tls/private/example.key", properties=frozenset({"mandatory", "normal"}))
option_3 = FilenameOption(name="authority", doc="authority", default="/etc/pki/ca-trust/source/anchors/ca_example.crt", properties=frozenset({"mandatory", "normal"}))
option_4 = DomainnameOption(name="server_name", doc="server_name", default="example.net", type='domainname', allow_ip=False, properties=frozenset({"mandatory", "normal"}))
optiondescription_28 = OptionDescription(name="rougail", doc="Rougail", children=[option_1, option_2, option_3, option_4])
option_13 = SymLinkOption(name="authority", opt=option_3)
option_14 = SymLinkOption(name="domain", opt=option_4)
option_15 = SymLinkOption(name="name", opt=option_1)
option_16 = SymLinkOption(name="private", opt=option_2)
option_12 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_11 = OptionDescription(name="certificate", doc="certificate", children=[option_13, option_14, option_15, option_16, option_12])
optiondescription_11.impl_set_information('type', "client")
optiondescription_10 = OptionDescription(name="certificates", doc="certificates", children=[optiondescription_11])
option_9 = BoolOption(name="activate", doc="activate", default=True)
option_17 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_30 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_10, option_9, option_17])
optiondescription_30.impl_set_information('type', "service")
optiondescription_29 = OptionDescription(name="services", doc="services", children=[optiondescription_30], properties=frozenset({"hidden"}))
optiondescription_27 = OptionDescription(name="1", doc="1", children=[optiondescription_28, optiondescription_29])
option_5 = FilenameOption(name="certificate", doc="certificate", default="/etc/pki/tls/certs/example.crt", properties=frozenset({"mandatory", "normal"}))
option_6 = FilenameOption(name="private", doc="private", default="/etc/pki/tls/private/example.key", properties=frozenset({"mandatory", "normal"}))
option_7 = FilenameOption(name="authority", doc="authority", default="/etc/pki/ca-trust/source/anchors/ca_example.crt", properties=frozenset({"mandatory", "normal"}))
option_8 = DomainnameOption(name="server_name", doc="server_name", default="example.net", type='domainname', allow_ip=False, properties=frozenset({"mandatory", "normal"}))
optiondescription_32 = OptionDescription(name="rougail", doc="Rougail", children=[option_5, option_6, option_7, option_8])
option_22 = SymLinkOption(name="authority", opt=option_7)
option_23 = SymLinkOption(name="domain", opt=option_8)
option_24 = SymLinkOption(name="name", opt=option_5)
option_25 = SymLinkOption(name="private", opt=option_6)
option_21 = BoolOption(name="activate", doc="activate", default=True)
optiondescription_20 = OptionDescription(name="certificate", doc="certificate", children=[option_22, option_23, option_24, option_25, option_21])
optiondescription_20.impl_set_information('type', "client")
optiondescription_19 = OptionDescription(name="certificates", doc="certificates", children=[optiondescription_20])
option_18 = BoolOption(name="activate", doc="activate", default=True)
option_26 = BoolOption(name="manage", doc="manage", default=True)
optiondescription_34 = OptionDescription(name="test_service", doc="test.service", children=[optiondescription_19, option_18, option_26])
optiondescription_34.impl_set_information('type', "service")
optiondescription_33 = OptionDescription(name="services", doc="services", children=[optiondescription_34], properties=frozenset({"hidden"}))
optiondescription_31 = OptionDescription(name="2", doc="2", children=[optiondescription_32, optiondescription_33])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_27, optiondescription_31])

View file

@ -1,22 +0,0 @@
<?xml version='1.0' encoding='UTF-8'?>
<rougail version="0.10">
<services>
<service name="test">
<certificate private="private" authority="authority">certificate</certificate>
</service>
</services>
<variables>
<variable name="certificate" type="filename">
<value>/etc/pki/tls/certs/example.crt</value>
</variable>
<variable name="private" type="filename">
<value>/etc/pki/tls/private/example.key</value>
</variable>
<variable name="authority" type="filename">
<value>/etc/pki/ca-trust/source/anchors/ca_example.crt</value>
</variable>
<variable name="server_name" type="domainname">
<value>example.net</value>
</variable>
</variables>
</rougail>

View file

@ -1,26 +0,0 @@
version: '0.10'
services:
- service:
- name: test
certificate:
- private: private
authority: authority
text: certificate
variables:
- variable:
- name: certificate
type: filename
value:
- text: /etc/pki/tls/certs/example.crt
- name: private
type: filename
value:
- text: /etc/pki/tls/private/example.key
- name: authority
type: filename
value:
- text: /etc/pki/ca-trust/source/anchors/ca_example.crt
- name: server_name
type: domainname
value:
- text: example.net

View file

@ -0,0 +1,2 @@
{
}

View file

@ -0,0 +1,2 @@
{
}

View file

@ -0,0 +1,2 @@
{
}

View file

@ -0,0 +1,24 @@
from importlib.machinery import SourceFileLoader as _SourceFileLoader
from importlib.util import spec_from_loader as _spec_from_loader, module_from_spec as _module_from_spec
class func:
pass
def _load_functions(path):
global _SourceFileLoader, _spec_from_loader, _module_from_spec, func
loader = _SourceFileLoader('func', path)
spec = _spec_from_loader(loader.name, loader)
func_ = _module_from_spec(spec)
loader.exec_module(func_)
for function in dir(func_):
if function.startswith('_'):
continue
setattr(func, function, getattr(func_, function))
_load_functions('tests/dictionaries/../eosfunc/test.py')
try:
from tiramisu3 import *
except:
from tiramisu import *
option_2 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"disabled", "mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"disabled", "normal"}))
optiondescription_3 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_3])

View file

@ -0,0 +1,29 @@
from importlib.machinery import SourceFileLoader as _SourceFileLoader
from importlib.util import spec_from_loader as _spec_from_loader, module_from_spec as _module_from_spec
class func:
pass
def _load_functions(path):
global _SourceFileLoader, _spec_from_loader, _module_from_spec, func
loader = _SourceFileLoader('func', path)
spec = _spec_from_loader(loader.name, loader)
func_ = _module_from_spec(spec)
loader.exec_module(func_)
for function in dir(func_):
if function.startswith('_'):
continue
setattr(func, function, getattr(func_, function))
_load_functions('tests/dictionaries/../eosfunc/test.py')
try:
from tiramisu3 import *
except:
from tiramisu import *
option_2 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"disabled", "mandatory", "normal"}))
optiondescription_1 = OptionDescription(name="general", doc="general", children=[option_2], properties=frozenset({"disabled", "normal"}))
optiondescription_6 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_1])
optiondescription_5 = OptionDescription(name="1", doc="1", children=[optiondescription_6])
option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non", properties=frozenset({"disabled", "mandatory", "normal"}))
optiondescription_3 = OptionDescription(name="general", doc="general", children=[option_4], properties=frozenset({"disabled", "normal"}))
optiondescription_8 = OptionDescription(name="rougail", doc="Rougail", children=[optiondescription_3])
optiondescription_7 = OptionDescription(name="2", doc="2", children=[optiondescription_8])
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[optiondescription_5, optiondescription_7])

View file

@ -0,0 +1,10 @@
<?xml version='1.0' encoding='UTF-8'?>
<rougail version="0.10">
<variables>
<family name="general" disabled="True">
<variable name="mode_conteneur_actif" type="string" description="No change" disabled="True">
<value>non</value>
</variable>
</family>
</variables>
</rougail>

View file

@ -0,0 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<rougail version="0.10">
<variables>
<family name="general" disabled="True"/>
</variables>
</rougail>

View file

@ -0,0 +1,12 @@
version: '0.10'
variables:
- family:
- name: general
variables:
- variable:
- name: mode_conteneur_actif
type: string
description: No change
disabled: true
value:
- text: non

View file

@ -0,0 +1,5 @@
version: '0.10'
variables:
- family:
- name: general
disabled: true

View file

@ -1,19 +0,0 @@
<?xml version='1.0' encoding='UTF-8'?>
<rougail version="0.10">
<services>
<service name="test">
<certificate private="private" authority="authority">certificate</certificate>
</service>
</services>
<variables>
<variable name="certificate" type="filename">
<value>/etc/pki/tls/certs/example.crt</value>
</variable>
<variable name="private" type="filename">
<value>/etc/pki/tls/private/example.key</value>
</variable>
<variable name="authority">
<value>/etc/pki/ca-trust/source/anchors/ca_example.crt</value>
</variable>
</variables>
</rougail>

View file

@ -1,24 +0,0 @@
version: '0.10'
services:
- service:
- name: test
certificate:
- private: private
private_type: variable
authority: authority
authority_type: variable
certificate_type: variable
text: certificate
variables:
- variable:
- name: certificate
type: filename
value:
- text: /etc/pki/tls/certs/example.crt
- name: private
type: filename
value:
- text: /etc/pki/tls/private/example.key
- name: authority
value:
- text: /etc/pki/ca-trust/source/anchors/ca_example.crt

View file

@ -1,19 +0,0 @@
<?xml version='1.0' encoding='UTF-8'?>
<rougail version="0.10">
<services>
<service name="test">
<certificate private="private" authority="authority">certificate</certificate>
</service>
</services>
<variables>
<variable name="certificate">
<value>/etc/pki/tls/certs/example.crt</value>
</variable>
<variable name="private" type="filename">
<value>/etc/pki/tls/private/example.key</value>
</variable>
<variable name="authority" type="filename">
<value>/etc/pki/ca-trust/source/anchors/ca_example.crt</value>
</variable>
</variables>
</rougail>

View file

@ -1,24 +0,0 @@
version: '0.10'
services:
- service:
- name: test
certificate:
- private: private
private_type: variable
authority: authority
authority_type: variable
certificate_type: variable
text: certificate
variables:
- variable:
- name: certificate
value:
- text: /etc/pki/tls/certs/example.crt
- name: private
type: filename
value:
- text: /etc/pki/tls/private/example.key
- name: authority
type: filename
value:
- text: /etc/pki/ca-trust/source/anchors/ca_example.crt

View file

@ -1,19 +0,0 @@
<?xml version='1.0' encoding='UTF-8'?>
<rougail version="0.10">
<services>
<service name="test">
<certificate private="private" authority="authority">certificate</certificate>
</service>
</services>
<variables>
<variable name="certificate" type="filename">
<value>/etc/pki/tls/certs/example.crt</value>
</variable>
<variable name="private">
<value>/etc/pki/tls/private/example.key</value>
</variable>
<variable name="authority" type="filename">
<value>/etc/pki/ca-trust/source/anchors/ca_example.crt</value>
</variable>
</variables>
</rougail>

View file

@ -1,24 +0,0 @@
version: '0.10'
services:
- service:
- name: test
certificate:
- private: private
private_type: variable
authority: authority
authority_type: variable
certificate_type: variable
text: certificate
variables:
- variable:
- name: certificate
type: filename
value:
- text: /etc/pki/tls/certs/example.crt
- name: private
value:
- text: /etc/pki/tls/private/example.key
- name: authority
type: filename
value:
- text: /etc/pki/ca-trust/source/anchors/ca_example.crt