now we can personalise default setting for file et override
This commit is contained in:
parent
5add91082f
commit
1249276b9d
176 changed files with 553 additions and 3869 deletions
|
@ -14,7 +14,9 @@ Pour modifier il suffit de faire :
|
||||||
RougailConfig[key] = value
|
RougailConfig[key] = value
|
||||||
```
|
```
|
||||||
|
|
||||||
## Les répertoires des dictionnaires
|
## Configuration de chargement des dictionnaires
|
||||||
|
|
||||||
|
### Les répertoires des dictionnaires
|
||||||
|
|
||||||
Il existe deux types de répertoires de dictionnaires :
|
Il existe deux types de répertoires de dictionnaires :
|
||||||
|
|
||||||
|
@ -36,7 +38,7 @@ RougailConfig['extra_dictionaries']['example'] = ['/dir1', '/dir2']
|
||||||
|
|
||||||
Les dictionnaires sont chargés dans le même ordre que les dictionnaires principaux.
|
Les dictionnaires sont chargés dans le même ordre que les dictionnaires principaux.
|
||||||
|
|
||||||
## La DTD
|
### La DTD
|
||||||
|
|
||||||
Rougail a besoin du fichier de DTD pour lire les fichiers dictionnaire.
|
Rougail a besoin du fichier de DTD pour lire les fichiers dictionnaire.
|
||||||
|
|
||||||
|
@ -44,51 +46,75 @@ Par défaut le fichier de la DTD est dans le sous répertoire "data" du réperto
|
||||||
|
|
||||||
Pour pouvez changer le répertoire de destination de la DTD et le nom du fichier avec la clef "dtdfilename".
|
Pour pouvez changer le répertoire de destination de la DTD et le nom du fichier avec la clef "dtdfilename".
|
||||||
|
|
||||||
## Le fichier de fonction
|
### Le fichier de fonction
|
||||||
|
|
||||||
Le fichier qui contient les fonctions personnalisés est géré dans la clef "functions_file" et a comme valeur par défaut "/srv/rougail/functions.py".
|
Le fichier qui contient les fonctions personnalisés est géré dans la clef "functions_file" et a comme valeur par défaut "/srv/rougail/functions.py".
|
||||||
|
|
||||||
## Le répertoire des templates
|
### La variable auto_freeze
|
||||||
|
|
||||||
Le répertoire des templates est géré dans la clef "templates_dir" et a comme valeur par défaut : "/srv/rougail/templates".
|
|
||||||
|
|
||||||
## Le moteur de templates par défaut
|
|
||||||
|
|
||||||
Le moteur de template est géré dans la clef "default_engine" et a comme valeur par défaut : "creole". Les valeurs possible sont "none", "creole" ou "jinja2".
|
|
||||||
|
|
||||||
## Le répertoire des patchs
|
|
||||||
|
|
||||||
Le répertoire des patches est géré dans la clef "patches_dir" et a comme valeur par défaut : "/srv/rougail/patches".
|
|
||||||
|
|
||||||
## Le répertoire temporaire
|
|
||||||
|
|
||||||
Le répertoire temporaire est utile lors de la génération de template. Il contient une copie des templates avec, éventuellement, les patches appliqués sur les templates.
|
|
||||||
|
|
||||||
Le répertoire de temporaire est géré dans la clef "tmp_dir" et a comme valeur par défaut : "/srv/rougail/tmp".
|
|
||||||
|
|
||||||
## Le répertoire de destination des fichiers générés
|
|
||||||
|
|
||||||
Le répertoire de destination des fichiers générés est géré dans la clef "destinations_dir" et a comme valeur par défaut : "/srv/rougail/destinations".
|
|
||||||
|
|
||||||
## La variable auto_freeze
|
|
||||||
|
|
||||||
La propriété auto_freeze n'est appliqué que une variable spécifique passe à True. Par défaut le nom de la variable est "instancied_module", mais il est possible de changer le nom de cette variable via la clef "auto_freeze_variable".
|
La propriété auto_freeze n'est appliqué que une variable spécifique passe à True. Par défaut le nom de la variable est "instancied_module", mais il est possible de changer le nom de cette variable via la clef "auto_freeze_variable".
|
||||||
|
|
||||||
## Les modes
|
### Les modes
|
||||||
|
|
||||||
Les modes sont personnalisables dans Rougail. Par défaut les modes sont "basic", "normal" et "expert".
|
Les modes sont personnalisables dans Rougail. Par défaut les modes sont "basic", "normal" et "expert".
|
||||||
Il est possible de changer cette liste via la clef "modes_level".
|
Il est possible de changer cette liste via la clef "modes_level".
|
||||||
|
|
||||||
Si vous changer ces valeurs, penser à changer les modes par défaut des familles et des variables.
|
Si vous changer ces valeurs, penser à changer les modes par défaut des familles et des variables.
|
||||||
|
|
||||||
## Le mode par défaut pour une famille
|
### Le mode par défaut pour une famille
|
||||||
|
|
||||||
Le mode par défaut d'une famille est "basic". Il est possible de changer le mode par défaut d'une famille via la clef "default_family_mode".
|
Le mode par défaut d'une famille est "basic". Il est possible de changer le mode par défaut d'une famille via la clef "default_family_mode".
|
||||||
|
|
||||||
## Le mode par défaut pour une variable
|
### Le mode par défaut pour une variable
|
||||||
|
|
||||||
Le mode par défaut d'une variable est "normal". Il est possible de changer le mode par défaut d'une variable via la clef "default_variable_mode".
|
Le mode par défaut d'une variable est "normal". Il est possible de changer le mode par défaut d'une variable via la clef "default_variable_mode".
|
||||||
|
|
||||||
## Le nom des fonctions internes
|
### Le nom des fonctions internes
|
||||||
|
|
||||||
Il est possible d'ajouter des fonctions interne via la clef "internal_functions".
|
Il est possible d'ajouter des fonctions interne via la clef "internal_functions".
|
||||||
|
|
||||||
|
## Configuration de la templatisation
|
||||||
|
|
||||||
|
### Le répertoire des templates
|
||||||
|
|
||||||
|
Le répertoire des templates est géré dans la clef "templates_dir" et a comme valeur par défaut : "/srv/rougail/templates".
|
||||||
|
|
||||||
|
### Le répertoire des patchs
|
||||||
|
|
||||||
|
Le répertoire des patches est géré dans la clef "patches_dir" et a comme valeur par défaut : "/srv/rougail/patches".
|
||||||
|
|
||||||
|
### Le répertoire temporaire
|
||||||
|
|
||||||
|
Le répertoire temporaire est utile lors de la génération de template. Il contient une copie des templates avec, éventuellement, les patches appliqués sur les templates.
|
||||||
|
|
||||||
|
Le répertoire de temporaire est géré dans la clef "tmp_dir" et a comme valeur par défaut : "/srv/rougail/tmp".
|
||||||
|
|
||||||
|
### Le répertoire de destination des fichiers générés
|
||||||
|
|
||||||
|
Le répertoire de destination des fichiers générés est géré dans la clef "destinations_dir" et a comme valeur par défaut : "/srv/rougail/destinations".
|
||||||
|
|
||||||
|
## La configuration par défaut des fichiers
|
||||||
|
|
||||||
|
### Le moteur de templates par défaut
|
||||||
|
|
||||||
|
Le moteur de template est géré dans la clef "default_files_engine" et a comme valeur par défaut : "creole". Les valeurs possible sont "none", "creole" ou "jinja2".
|
||||||
|
|
||||||
|
### Les droits par défaut des fichiers
|
||||||
|
|
||||||
|
Les droits des fichiers générés est géré dans la clef "default_files_mode" et a comme valeur par défaut : "0644".
|
||||||
|
|
||||||
|
### Le propriétaire par défaut des fichiers
|
||||||
|
|
||||||
|
Le propriétaire des fichiers générés est géré dans la clef "default_files_owner" et a comme valeur par défaut : "root".
|
||||||
|
Le groupe propriétaire des fichiers générés est géré dans la clef "default_files_group" et a comme valeur par défaut : "root".
|
||||||
|
|
||||||
|
### La méthode d'inclusion par défaut des fichiers
|
||||||
|
|
||||||
|
La méthode d'inclusion des fichiers générés est géré dans la clef "default_files_included" et a comme valeur par défaut : "no". Les valeurs possible sont "no", "name" et "content".
|
||||||
|
'default_files_included': 'no',
|
||||||
|
|
||||||
|
## La configuration par défaut des overrides
|
||||||
|
|
||||||
|
### Le moteur de templates par défaut
|
||||||
|
|
||||||
|
Le moteur de template est géré dans la clef "default_overrides_engine" et a comme valeur par défaut : "creole". Les valeurs possible sont "none", "creole" ou "jinja2".
|
||||||
|
|
|
@ -97,12 +97,14 @@ Attention : les deux variables "my_variable1" et "my_variable2" doivent être mu
|
||||||
|
|
||||||
Par défaut les droits du fichier généré sont "0644" avec comme utilisateur "root" et groupe "root".
|
Par défaut les droits du fichier généré sont "0644" avec comme utilisateur "root" et groupe "root".
|
||||||
|
|
||||||
Il est possible de définir une autre valeur à un ou plusieurs de ces attributs :
|
Il est possible de définir les droits, l'utilisateur ou le groupe d'un fichier généré :
|
||||||
|
|
||||||
```
|
```
|
||||||
<file mode="0640" owner="nobody" group="squid">/etc/squid/squid.conf</file>
|
<file mode="0640" owner="nobody" group="squid">/etc/squid/squid.conf</file>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Il est possible de personnaliser les droits par défaut dans la [configuration de rougail](../dev/config.md)
|
||||||
|
|
||||||
## Désactiver la génération d'un fichier
|
## Désactiver la génération d'un fichier
|
||||||
|
|
||||||
Il est possible de définir une [condition](../condition/README.md) de type "disabled_if_in" ou "disabled_if_not_in" sur une balise fichier :
|
Il est possible de définir une [condition](../condition/README.md) de type "disabled_if_in" ou "disabled_if_not_in" sur une balise fichier :
|
||||||
|
@ -150,6 +152,8 @@ Ou d'utiliser le moteur "jinja2" :
|
||||||
<file engine="jinja2">/etc/squid/squid.conf</file>
|
<file engine="jinja2">/etc/squid/squid.conf</file>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Il est possible de personnaliser le moteur par défaut dans la [configuration de rougail](../dev/config.md)
|
||||||
|
|
||||||
## Inclusion de template
|
## Inclusion de template
|
||||||
|
|
||||||
Un attribut "included" permet de définir la nature du fichier. Cet attribut peut avoir trois valeurs :
|
Un attribut "included" permet de définir la nature du fichier. Cet attribut peut avoir trois valeurs :
|
||||||
|
@ -166,3 +170,5 @@ Exemples :
|
||||||
```
|
```
|
||||||
|
|
||||||
Bien entendu, c'est au développeur de lister ou d'inclure le contenu de ce template dans le fichier de destination. Cet attribut permet juste de garantir que le fichier sera fait avant l'autre et de ne pas l'installer sur le serveur si ce n'est pas nécessaire.
|
Bien entendu, c'est au développeur de lister ou d'inclure le contenu de ce template dans le fichier de destination. Cet attribut permet juste de garantir que le fichier sera fait avant l'autre et de ne pas l'installer sur le serveur si ce n'est pas nécessaire.
|
||||||
|
|
||||||
|
Il est possible de personnaliser les methodes d'inclusion par défaut dans la [configuration de rougail](../dev/config.md)
|
||||||
|
|
|
@ -41,3 +41,5 @@ Ou d'utiliser le moteur "jinja2" :
|
||||||
```
|
```
|
||||||
<override engine="jinja2"/>
|
<override engine="jinja2"/>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Il est possible de personnaliser le moteur par défaut dans la [configuration de rougail](../dev/config.md)
|
||||||
|
|
|
@ -30,7 +30,6 @@ from typing import Tuple
|
||||||
from ..i18n import _
|
from ..i18n import _
|
||||||
from ..utils import normalize_family
|
from ..utils import normalize_family
|
||||||
from ..error import DictConsistencyError
|
from ..error import DictConsistencyError
|
||||||
from ..config import RougailConfig
|
|
||||||
# a object's attribute has some annotations
|
# a object's attribute has some annotations
|
||||||
# that shall not be present in the exported (flatened) XML
|
# that shall not be present in the exported (flatened) XML
|
||||||
ERASED_ATTRIBUTES = ('redefine', 'exists', 'optional', 'remove_check', 'namespace',
|
ERASED_ATTRIBUTES = ('redefine', 'exists', 'optional', 'remove_check', 'namespace',
|
||||||
|
@ -97,6 +96,7 @@ class ServiceAnnotator:
|
||||||
family = self._gen_family(eltname,
|
family = self._gen_family(eltname,
|
||||||
path,
|
path,
|
||||||
service.xmlfiles,
|
service.xmlfiles,
|
||||||
|
with_informations=False,
|
||||||
)
|
)
|
||||||
if isinstance(values, dict):
|
if isinstance(values, dict):
|
||||||
values = list(values.values())
|
values = list(values.values())
|
||||||
|
@ -165,17 +165,21 @@ class ServiceAnnotator:
|
||||||
dtd_key_type = elttype + '_type'
|
dtd_key_type = elttype + '_type'
|
||||||
else:
|
else:
|
||||||
dtd_key_type = key + '_type'
|
dtd_key_type = key + '_type'
|
||||||
elt_type = getattr(elt, dtd_key_type, 'string')
|
elt_type = getattr(elt, dtd_key_type, None)
|
||||||
if elt_type == 'variable':
|
if elt_type:
|
||||||
elt_type = 'symlink'
|
if elt_type == 'variable':
|
||||||
family.variable.append(self._generate_element(elt_type,
|
elt_type = 'symlink'
|
||||||
dtd_key_type,
|
family.variable.append(self._generate_element(elt_type,
|
||||||
elttype,
|
dtd_key_type,
|
||||||
key,
|
elttype,
|
||||||
value,
|
key,
|
||||||
elt,
|
value,
|
||||||
f'{subpath}.{key}'
|
elt,
|
||||||
))
|
f'{subpath}.{key}'
|
||||||
|
))
|
||||||
|
else:
|
||||||
|
setattr(family.information, key, value)
|
||||||
|
|
||||||
family.variable.append(activate_obj)
|
family.variable.append(activate_obj)
|
||||||
families.append(family)
|
families.append(family)
|
||||||
return families
|
return families
|
||||||
|
@ -205,7 +209,8 @@ class ServiceAnnotator:
|
||||||
def _gen_family(self,
|
def _gen_family(self,
|
||||||
name,
|
name,
|
||||||
path,
|
path,
|
||||||
xmlfiles
|
xmlfiles,
|
||||||
|
with_informations=True,
|
||||||
):
|
):
|
||||||
family = self.objectspace.family(xmlfiles)
|
family = self.objectspace.family(xmlfiles)
|
||||||
family.name = normalize_family(name)
|
family.name = normalize_family(name)
|
||||||
|
@ -216,6 +221,8 @@ class ServiceAnnotator:
|
||||||
family,
|
family,
|
||||||
None,
|
None,
|
||||||
)
|
)
|
||||||
|
if with_informations:
|
||||||
|
family.information = self.objectspace.information(xmlfiles)
|
||||||
return family
|
return family
|
||||||
|
|
||||||
def _generate_element(self,
|
def _generate_element(self,
|
||||||
|
@ -263,8 +270,6 @@ class ServiceAnnotator:
|
||||||
raise DictConsistencyError(msg, 69, override.xmlfiles)
|
raise DictConsistencyError(msg, 69, override.xmlfiles)
|
||||||
self.uniq_overrides.append(service_name)
|
self.uniq_overrides.append(service_name)
|
||||||
override.name = service_name
|
override.name = service_name
|
||||||
if not hasattr(override, 'engine'):
|
|
||||||
override.engine = RougailConfig['default_engine']
|
|
||||||
if not hasattr(override, 'source'):
|
if not hasattr(override, 'source'):
|
||||||
override.source = f'{service_name}.service'
|
override.source = f'{service_name}.service'
|
||||||
|
|
||||||
|
@ -279,8 +284,6 @@ class ServiceAnnotator:
|
||||||
msg = _(f'attribute "source" is mandatory for the file "{file_.name}" '
|
msg = _(f'attribute "source" is mandatory for the file "{file_.name}" '
|
||||||
f'"({service_name})"')
|
f'"({service_name})"')
|
||||||
raise DictConsistencyError(msg, 34, file_.xmlfiles)
|
raise DictConsistencyError(msg, 34, file_.xmlfiles)
|
||||||
if not hasattr(file_, 'engine'):
|
|
||||||
file_.engine = RougailConfig['default_engine']
|
|
||||||
|
|
||||||
def _update_ip(self,
|
def _update_ip(self,
|
||||||
ip,
|
ip,
|
||||||
|
|
|
@ -229,12 +229,9 @@ class VariableAnnotator(Walk): # pylint: disable=R0903
|
||||||
"""Convert variable help
|
"""Convert variable help
|
||||||
"""
|
"""
|
||||||
for variable in self.get_variables():
|
for variable in self.get_variables():
|
||||||
|
if not hasattr(variable, 'help'):
|
||||||
|
continue
|
||||||
if not hasattr(variable, 'information'):
|
if not hasattr(variable, 'information'):
|
||||||
variable.information = self.objectspace.information(variable.xmlfiles)
|
variable.information = self.objectspace.information(variable.xmlfiles)
|
||||||
self._convert_help(variable)
|
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def _convert_help(variable) -> None:
|
|
||||||
if hasattr(variable, 'help'):
|
|
||||||
variable.information.help = variable.help
|
variable.information.help = variable.help
|
||||||
del variable.help
|
del variable.help
|
||||||
|
|
|
@ -42,9 +42,14 @@ RougailConfig = {'dictionaries_dir': [join(ROUGAILROOT, 'dictionaries')],
|
||||||
'functions_file': join(ROUGAILROOT, 'functions.py'),
|
'functions_file': join(ROUGAILROOT, 'functions.py'),
|
||||||
'variable_namespace': 'rougail',
|
'variable_namespace': 'rougail',
|
||||||
'auto_freeze_variable': 'server_deployed',
|
'auto_freeze_variable': 'server_deployed',
|
||||||
'default_engine': 'creole',
|
|
||||||
'internal_functions': [],
|
'internal_functions': [],
|
||||||
'modes_level': ['basic', 'normal', 'expert'],
|
'modes_level': ['basic', 'normal', 'expert'],
|
||||||
'default_family_mode': 'basic',
|
'default_family_mode': 'basic',
|
||||||
'default_variable_mode': 'normal',
|
'default_variable_mode': 'normal',
|
||||||
|
'default_files_engine': 'creole',
|
||||||
|
'default_files_mode': '0644',
|
||||||
|
'default_files_owner': 'root',
|
||||||
|
'default_files_group': 'root',
|
||||||
|
'default_files_included': 'no',
|
||||||
|
'default_overrides_engine': 'creole',
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,13 +62,13 @@
|
||||||
<!ATTLIST file variable CDATA #IMPLIED>
|
<!ATTLIST file variable CDATA #IMPLIED>
|
||||||
<!ATTLIST file variable_type (variable) "variable">
|
<!ATTLIST file variable_type (variable) "variable">
|
||||||
<!ATTLIST file source CDATA #IMPLIED>
|
<!ATTLIST file source CDATA #IMPLIED>
|
||||||
<!ATTLIST file mode CDATA "0644">
|
<!ATTLIST file mode CDATA #IMPLIED>
|
||||||
<!ATTLIST file owner CDATA "root">
|
<!ATTLIST file owner CDATA #IMPLIED>
|
||||||
<!ATTLIST file group CDATA "root">
|
<!ATTLIST file group CDATA #IMPLIED>
|
||||||
<!ATTLIST file filelist CDATA #IMPLIED>
|
<!ATTLIST file filelist CDATA #IMPLIED>
|
||||||
<!ATTLIST file redefine (True|False) "False">
|
<!ATTLIST file redefine (True|False) "False">
|
||||||
<!ATTLIST file engine (none|creole|jinja2|creole_legacy) #IMPLIED>
|
<!ATTLIST file engine (none|creole|jinja2|creole_legacy) #IMPLIED>
|
||||||
<!ATTLIST file included (no|name|content) "no">
|
<!ATTLIST file included (no|name|content) #IMPLIED>
|
||||||
|
|
||||||
<!ELEMENT override EMPTY>
|
<!ELEMENT override EMPTY>
|
||||||
<!ATTLIST override source CDATA #IMPLIED>
|
<!ATTLIST override source CDATA #IMPLIED>
|
||||||
|
@ -83,6 +83,7 @@
|
||||||
<!ATTLIST family mode CDATA #IMPLIED>
|
<!ATTLIST family mode CDATA #IMPLIED>
|
||||||
<!ATTLIST family hidden (True|False) "False">
|
<!ATTLIST family hidden (True|False) "False">
|
||||||
<!ATTLIST family dynamic CDATA #IMPLIED>
|
<!ATTLIST family dynamic CDATA #IMPLIED>
|
||||||
|
<!ATTLIST family public CDATA #IMPLIED>
|
||||||
|
|
||||||
<!ELEMENT variable (value*)>
|
<!ELEMENT variable (value*)>
|
||||||
<!ATTLIST variable name CDATA #REQUIRED>
|
<!ATTLIST variable name CDATA #REQUIRED>
|
||||||
|
@ -101,6 +102,7 @@
|
||||||
<!ATTLIST variable remove_check (True|False) "False">
|
<!ATTLIST variable remove_check (True|False) "False">
|
||||||
<!ATTLIST variable remove_condition (True|False) "False">
|
<!ATTLIST variable remove_condition (True|False) "False">
|
||||||
<!ATTLIST variable remove_fill (True|False) "False">
|
<!ATTLIST variable remove_fill (True|False) "False">
|
||||||
|
<!ATTLIST variable public CDATA #IMPLIED>
|
||||||
<!ATTLIST variable test CDATA #IMPLIED>
|
<!ATTLIST variable test CDATA #IMPLIED>
|
||||||
|
|
||||||
<!ELEMENT value (#PCDATA)>
|
<!ELEMENT value (#PCDATA)>
|
||||||
|
|
|
@ -34,10 +34,10 @@ from os.path import dirname, join, isfile, isdir, abspath
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from tiramisu3 import Config
|
from tiramisu3 import Config, undefined
|
||||||
from tiramisu3.error import PropertiesOptionError # pragma: no cover
|
from tiramisu3.error import PropertiesOptionError # pragma: no cover
|
||||||
except ModuleNotFoundError: # pragma: no cover
|
except ModuleNotFoundError: # pragma: no cover
|
||||||
from tiramisu import Config
|
from tiramisu import Config, undefined
|
||||||
from tiramisu.error import PropertiesOptionError
|
from tiramisu.error import PropertiesOptionError
|
||||||
|
|
||||||
from ..config import RougailConfig
|
from ..config import RougailConfig
|
||||||
|
@ -55,6 +55,11 @@ log = logging.getLogger(__name__)
|
||||||
log.addHandler(logging.NullHandler())
|
log.addHandler(logging.NullHandler())
|
||||||
|
|
||||||
|
|
||||||
|
INFORMATIONS = {'files': ['source', 'mode', 'owner', 'group', 'engine', 'included'],
|
||||||
|
'overrides': ['name', 'source', 'engine'],
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class RougailLeaderIndex:
|
class RougailLeaderIndex:
|
||||||
"""This object is create when access to a specified Index of the variable
|
"""This object is create when access to a specified Index of the variable
|
||||||
"""
|
"""
|
||||||
|
@ -157,22 +162,26 @@ class RougailExtra:
|
||||||
For example %%extra1.family.variable
|
For example %%extra1.family.variable
|
||||||
"""
|
"""
|
||||||
def __init__(self,
|
def __init__(self,
|
||||||
suboption: Dict) -> None:
|
suboption: Dict,
|
||||||
self.suboption = suboption
|
) -> None:
|
||||||
|
self._suboption = suboption
|
||||||
|
|
||||||
def __getattr__(self,
|
def __getattr__(self,
|
||||||
key: str,
|
key: str,
|
||||||
) -> Any:
|
) -> Any:
|
||||||
try:
|
try:
|
||||||
return self.suboption[key]
|
return self._suboption[key]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise AttributeError(f'unable to find extra "{key}"')
|
raise AttributeError(f'unable to find extra "{key}"')
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
return iter(self.suboption.values())
|
return iter(self._suboption.values())
|
||||||
|
|
||||||
def items(self):
|
def items(self):
|
||||||
return self.suboption.items()
|
return self._suboption.items()
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return f'<extra object with: {self._suboption}>'
|
||||||
|
|
||||||
|
|
||||||
class RougailBaseTemplate:
|
class RougailBaseTemplate:
|
||||||
|
@ -286,9 +295,14 @@ class RougailBaseTemplate:
|
||||||
chdir(self.templates_dir)
|
chdir(self.templates_dir)
|
||||||
for option in await self.config.option.list(type='all'):
|
for option in await self.config.option.list(type='all'):
|
||||||
namespace = await option.option.name()
|
namespace = await option.option.name()
|
||||||
is_var_namespace = namespace == self.rougailconfig['variable_namespace']
|
is_variable_namespace = namespace == self.rougailconfig['variable_namespace']
|
||||||
|
if namespace == 'services':
|
||||||
|
is_service_namespace = 'root'
|
||||||
|
else:
|
||||||
|
is_service_namespace = False
|
||||||
self.rougail_variables_dict[namespace] = await self.load_variables(option,
|
self.rougail_variables_dict[namespace] = await self.load_variables(option,
|
||||||
is_var_namespace,
|
is_variable_namespace,
|
||||||
|
is_service_namespace,
|
||||||
)
|
)
|
||||||
for template in listdir('.'):
|
for template in listdir('.'):
|
||||||
self.prepare_template(template)
|
self.prepare_template(template)
|
||||||
|
@ -303,6 +317,7 @@ class RougailBaseTemplate:
|
||||||
type_ = await fills.option.name()
|
type_ = await fills.option.name()
|
||||||
for fill_obj in await fills.list('all'):
|
for fill_obj in await fills.list('all'):
|
||||||
fill = await fill_obj.value.dict()
|
fill = await fill_obj.value.dict()
|
||||||
|
await self.get_informations(type_, fill, fill_obj)
|
||||||
if 'included' in fill:
|
if 'included' in fill:
|
||||||
if (fill['included'] == 'no' and included is True) or \
|
if (fill['included'] == 'no' and included is True) or \
|
||||||
(fill['included'] != 'no' and included is False):
|
(fill['included'] != 'no' and included is False):
|
||||||
|
@ -317,6 +332,19 @@ class RougailBaseTemplate:
|
||||||
self.post_instance()
|
self.post_instance()
|
||||||
chdir(ori_dir)
|
chdir(ori_dir)
|
||||||
|
|
||||||
|
async def get_informations(self,
|
||||||
|
type_: str,
|
||||||
|
dico: dict,
|
||||||
|
obj: 'Option',
|
||||||
|
) -> None:
|
||||||
|
for key in INFORMATIONS.get(type_, []):
|
||||||
|
default_key = f'default_{type_}_{key}'
|
||||||
|
if default_key in RougailConfig:
|
||||||
|
default_value = RougailConfig[default_key]
|
||||||
|
else:
|
||||||
|
default_value = undefined
|
||||||
|
dico[key] = await obj.information.get(key, default_value)
|
||||||
|
|
||||||
def desactive_service(self,
|
def desactive_service(self,
|
||||||
service_name: str,
|
service_name: str,
|
||||||
):
|
):
|
||||||
|
@ -345,7 +373,8 @@ class RougailBaseTemplate:
|
||||||
|
|
||||||
async def load_variables(self,
|
async def load_variables(self,
|
||||||
optiondescription,
|
optiondescription,
|
||||||
is_variable_namespace,
|
is_variable_namespace: str,
|
||||||
|
is_service_namespace: str,
|
||||||
) -> RougailExtra:
|
) -> RougailExtra:
|
||||||
"""Load all variables and set it in RougailExtra objects
|
"""Load all variables and set it in RougailExtra objects
|
||||||
"""
|
"""
|
||||||
|
@ -366,8 +395,18 @@ class RougailBaseTemplate:
|
||||||
)
|
)
|
||||||
variables[leader_name] = leader
|
variables[leader_name] = leader
|
||||||
else:
|
else:
|
||||||
|
if is_service_namespace == 'root':
|
||||||
|
new_is_service_namespace = 'service_name'
|
||||||
|
elif is_service_namespace == 'service_name':
|
||||||
|
new_is_service_namespace = await option.option.name()
|
||||||
|
elif is_service_namespace in INFORMATIONS:
|
||||||
|
# remove 's'
|
||||||
|
new_is_service_namespace = is_service_namespace[:-1]
|
||||||
|
else:
|
||||||
|
new_is_service_namespace = is_service_namespace
|
||||||
subfamilies = await self.load_variables(option,
|
subfamilies = await self.load_variables(option,
|
||||||
is_variable_namespace,
|
is_variable_namespace,
|
||||||
|
new_is_service_namespace,
|
||||||
)
|
)
|
||||||
variables[await option.option.name()] = subfamilies
|
variables[await option.option.name()] = subfamilies
|
||||||
else:
|
else:
|
||||||
|
@ -382,4 +421,9 @@ class RougailBaseTemplate:
|
||||||
else:
|
else:
|
||||||
value = await option.value.get()
|
value = await option.value.get()
|
||||||
variables[await option.option.name()] = value
|
variables[await option.option.name()] = value
|
||||||
|
if isinstance(is_service_namespace, str) and is_service_namespace + 's' in INFORMATIONS:
|
||||||
|
await self.get_informations(is_service_namespace + 's',
|
||||||
|
variables,
|
||||||
|
optiondescription,
|
||||||
|
)
|
||||||
return RougailExtra(variables)
|
return RougailExtra(variables)
|
||||||
|
|
|
@ -3,66 +3,18 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.file.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file.name": {
|
"services.test.files.file.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file"
|
"value": "/etc/file"
|
||||||
},
|
},
|
||||||
"services.test.files.file.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file"
|
|
||||||
},
|
|
||||||
"services.test.files.file.activate": {
|
"services.test.files.file.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
},
|
},
|
||||||
"services.test.files.file2.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "jinja2"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.name": {
|
"services.test.files.file2.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file2"
|
"value": "/etc/file2"
|
||||||
},
|
},
|
||||||
"services.test.files.file2.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file2"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.activate": {
|
"services.test.files.file2.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -1,20 +1,8 @@
|
||||||
{
|
{
|
||||||
"rougail.general.mode_conteneur_actif": "non",
|
"rougail.general.mode_conteneur_actif": "non",
|
||||||
"services.test.files.file.engine": "creole",
|
|
||||||
"services.test.files.file.group": "root",
|
|
||||||
"services.test.files.file.included": "no",
|
|
||||||
"services.test.files.file.mode": "0644",
|
|
||||||
"services.test.files.file.name": "/etc/file",
|
"services.test.files.file.name": "/etc/file",
|
||||||
"services.test.files.file.owner": "root",
|
|
||||||
"services.test.files.file.source": "file",
|
|
||||||
"services.test.files.file.activate": true,
|
"services.test.files.file.activate": true,
|
||||||
"services.test.files.file2.engine": "jinja2",
|
|
||||||
"services.test.files.file2.group": "root",
|
|
||||||
"services.test.files.file2.included": "no",
|
|
||||||
"services.test.files.file2.mode": "0644",
|
|
||||||
"services.test.files.file2.name": "/etc/file2",
|
"services.test.files.file2.name": "/etc/file2",
|
||||||
"services.test.files.file2.owner": "root",
|
|
||||||
"services.test.files.file2.source": "file2",
|
|
||||||
"services.test.files.file2.activate": true,
|
"services.test.files.file2.activate": true,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -3,66 +3,18 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.file.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file.name": {
|
"services.test.files.file.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file"
|
"value": "/etc/file"
|
||||||
},
|
},
|
||||||
"services.test.files.file.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file"
|
|
||||||
},
|
|
||||||
"services.test.files.file.activate": {
|
"services.test.files.file.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
},
|
},
|
||||||
"services.test.files.file2.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "jinja2"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.name": {
|
"services.test.files.file2.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file2"
|
"value": "/etc/file2"
|
||||||
},
|
},
|
||||||
"services.test.files.file2.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file2"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.activate": {
|
"services.test.files.file2.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -14,27 +14,18 @@ except:
|
||||||
option_3 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
|
option_3 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_8 = StrOption(name="engine", doc="engine", default="creole")
|
option_8 = FilenameOption(name="name", doc="name", default="/etc/file")
|
||||||
option_9 = StrOption(name="group", doc="group", default="root")
|
option_9 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_10 = StrOption(name="included", doc="included", default="no")
|
option_7 = OptionDescription(name="file", doc="file", children=[option_8, option_9])
|
||||||
option_11 = StrOption(name="mode", doc="mode", default="0644")
|
option_7.impl_set_information('source', "file")
|
||||||
option_12 = FilenameOption(name="name", doc="name", default="/etc/file")
|
option_11 = FilenameOption(name="name", doc="name", default="/etc/file2")
|
||||||
option_13 = StrOption(name="owner", doc="owner", default="root")
|
option_12 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_14 = StrOption(name="source", doc="source", default="file")
|
option_10 = OptionDescription(name="file2", doc="file2", children=[option_11, option_12])
|
||||||
option_15 = BoolOption(name="activate", doc="activate", default=True)
|
option_10.impl_set_information('engine', "jinja2")
|
||||||
option_7 = OptionDescription(name="file", doc="file", children=[option_8, option_9, option_10, option_11, option_12, option_13, option_14, option_15])
|
option_10.impl_set_information('source', "file2")
|
||||||
option_17 = StrOption(name="engine", doc="engine", default="jinja2")
|
option_6 = OptionDescription(name="files", doc="files", children=[option_7, option_10])
|
||||||
option_18 = StrOption(name="group", doc="group", default="root")
|
option_13 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_19 = StrOption(name="included", doc="included", default="no")
|
option_14 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_20 = StrOption(name="mode", doc="mode", default="0644")
|
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_13, option_14])
|
||||||
option_21 = FilenameOption(name="name", doc="name", default="/etc/file2")
|
|
||||||
option_22 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_23 = StrOption(name="source", doc="source", default="file2")
|
|
||||||
option_24 = BoolOption(name="activate", doc="activate", default=True)
|
|
||||||
option_16 = OptionDescription(name="file2", doc="file2", children=[option_17, option_18, option_19, option_20, option_21, option_22, option_23, option_24])
|
|
||||||
option_6 = OptionDescription(name="files", doc="files", children=[option_7, option_16])
|
|
||||||
option_25 = BoolOption(name="activate", doc="activate", default=True)
|
|
||||||
option_26 = BoolOption(name="manage", doc="manage", default=True)
|
|
||||||
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_25, option_26])
|
|
||||||
option_4 = OptionDescription(name="services", doc="services", children=[option_5], properties=frozenset({"hidden"}))
|
option_4 = OptionDescription(name="services", doc="services", children=[option_5], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_4])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_4])
|
||||||
|
|
|
@ -3,66 +3,18 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.file.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file.name": {
|
"services.test.files.file.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file"
|
"value": "/etc/file"
|
||||||
},
|
},
|
||||||
"services.test.files.file.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file"
|
|
||||||
},
|
|
||||||
"services.test.files.file.activate": {
|
"services.test.files.file.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
},
|
},
|
||||||
"services.test.files.file2.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "jinja2"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.name": {
|
"services.test.files.file2.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file2"
|
"value": "/etc/file2"
|
||||||
},
|
},
|
||||||
"services.test.files.file2.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file2"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.activate": {
|
"services.test.files.file2.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -1,20 +1,8 @@
|
||||||
{
|
{
|
||||||
"rougail.general.mode_conteneur_actif": "non",
|
"rougail.general.mode_conteneur_actif": "non",
|
||||||
"services.test.files.file.engine": "creole",
|
|
||||||
"services.test.files.file.group": "root",
|
|
||||||
"services.test.files.file.included": "no",
|
|
||||||
"services.test.files.file.mode": "0644",
|
|
||||||
"services.test.files.file.name": "/etc/file",
|
"services.test.files.file.name": "/etc/file",
|
||||||
"services.test.files.file.owner": "root",
|
|
||||||
"services.test.files.file.source": "file",
|
|
||||||
"services.test.files.file.activate": true,
|
"services.test.files.file.activate": true,
|
||||||
"services.test.files.file2.engine": "jinja2",
|
|
||||||
"services.test.files.file2.group": "root",
|
|
||||||
"services.test.files.file2.included": "no",
|
|
||||||
"services.test.files.file2.mode": "0644",
|
|
||||||
"services.test.files.file2.name": "/etc/file2",
|
"services.test.files.file2.name": "/etc/file2",
|
||||||
"services.test.files.file2.owner": "root",
|
|
||||||
"services.test.files.file2.source": "file2",
|
|
||||||
"services.test.files.file2.activate": true,
|
"services.test.files.file2.activate": true,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -3,66 +3,18 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.file.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file.name": {
|
"services.test.files.file.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file"
|
"value": "/etc/file"
|
||||||
},
|
},
|
||||||
"services.test.files.file.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file"
|
|
||||||
},
|
|
||||||
"services.test.files.file.activate": {
|
"services.test.files.file.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
},
|
},
|
||||||
"services.test.files.file2.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "jinja2"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.name": {
|
"services.test.files.file2.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file2"
|
"value": "/etc/file2"
|
||||||
},
|
},
|
||||||
"services.test.files.file2.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file2"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.activate": {
|
"services.test.files.file2.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -14,27 +14,18 @@ except:
|
||||||
option_3 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
|
option_3 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_8 = StrOption(name="engine", doc="engine", default="creole")
|
option_8 = FilenameOption(name="name", doc="name", default="/etc/file")
|
||||||
option_9 = StrOption(name="group", doc="group", default="root")
|
option_9 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_10 = StrOption(name="included", doc="included", default="no")
|
option_7 = OptionDescription(name="file", doc="file", children=[option_8, option_9])
|
||||||
option_11 = StrOption(name="mode", doc="mode", default="0644")
|
option_7.impl_set_information('source', "file")
|
||||||
option_12 = FilenameOption(name="name", doc="name", default="/etc/file")
|
option_11 = FilenameOption(name="name", doc="name", default="/etc/file2")
|
||||||
option_13 = StrOption(name="owner", doc="owner", default="root")
|
option_12 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_14 = StrOption(name="source", doc="source", default="file")
|
option_10 = OptionDescription(name="file2", doc="file2", children=[option_11, option_12])
|
||||||
option_15 = BoolOption(name="activate", doc="activate", default=True)
|
option_10.impl_set_information('engine', "jinja2")
|
||||||
option_7 = OptionDescription(name="file", doc="file", children=[option_8, option_9, option_10, option_11, option_12, option_13, option_14, option_15])
|
option_10.impl_set_information('source', "file2")
|
||||||
option_17 = StrOption(name="engine", doc="engine", default="jinja2")
|
option_6 = OptionDescription(name="files", doc="files", children=[option_7, option_10])
|
||||||
option_18 = StrOption(name="group", doc="group", default="root")
|
option_13 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_19 = StrOption(name="included", doc="included", default="no")
|
option_14 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_20 = StrOption(name="mode", doc="mode", default="0644")
|
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_13, option_14])
|
||||||
option_21 = FilenameOption(name="name", doc="name", default="/etc/file2")
|
|
||||||
option_22 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_23 = StrOption(name="source", doc="source", default="file2")
|
|
||||||
option_24 = BoolOption(name="activate", doc="activate", default=True)
|
|
||||||
option_16 = OptionDescription(name="file2", doc="file2", children=[option_17, option_18, option_19, option_20, option_21, option_22, option_23, option_24])
|
|
||||||
option_6 = OptionDescription(name="files", doc="files", children=[option_7, option_16])
|
|
||||||
option_25 = BoolOption(name="activate", doc="activate", default=True)
|
|
||||||
option_26 = BoolOption(name="manage", doc="manage", default=True)
|
|
||||||
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_25, option_26])
|
|
||||||
option_4 = OptionDescription(name="services", doc="services", children=[option_5], properties=frozenset({"hidden"}))
|
option_4 = OptionDescription(name="services", doc="services", children=[option_5], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_4])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_4])
|
||||||
|
|
|
@ -3,98 +3,26 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.file.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file.name": {
|
"services.test.files.file.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file"
|
"value": "/etc/file"
|
||||||
},
|
},
|
||||||
"services.test.files.file.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file"
|
|
||||||
},
|
|
||||||
"services.test.files.file.activate": {
|
"services.test.files.file.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
},
|
},
|
||||||
"services.test.files.file2.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "jinja2"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.name": {
|
"services.test.files.file2.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file2"
|
"value": "/etc/file2"
|
||||||
},
|
},
|
||||||
"services.test.files.file2.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file2"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.activate": {
|
"services.test.files.file2.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
},
|
},
|
||||||
"services.test.files.incfile.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "content"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.name": {
|
"services.test.files.incfile.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/dir/incfile"
|
"value": "/etc/dir/incfile"
|
||||||
},
|
},
|
||||||
"services.test.files.incfile.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "incfile"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.activate": {
|
"services.test.files.incfile.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -1,28 +1,10 @@
|
||||||
{
|
{
|
||||||
"rougail.general.mode_conteneur_actif": "non",
|
"rougail.general.mode_conteneur_actif": "non",
|
||||||
"services.test.files.file.engine": "creole",
|
|
||||||
"services.test.files.file.group": "root",
|
|
||||||
"services.test.files.file.included": "no",
|
|
||||||
"services.test.files.file.mode": "0644",
|
|
||||||
"services.test.files.file.name": "/etc/file",
|
"services.test.files.file.name": "/etc/file",
|
||||||
"services.test.files.file.owner": "root",
|
|
||||||
"services.test.files.file.source": "file",
|
|
||||||
"services.test.files.file.activate": true,
|
"services.test.files.file.activate": true,
|
||||||
"services.test.files.file2.engine": "jinja2",
|
|
||||||
"services.test.files.file2.group": "root",
|
|
||||||
"services.test.files.file2.included": "no",
|
|
||||||
"services.test.files.file2.mode": "0644",
|
|
||||||
"services.test.files.file2.name": "/etc/file2",
|
"services.test.files.file2.name": "/etc/file2",
|
||||||
"services.test.files.file2.owner": "root",
|
|
||||||
"services.test.files.file2.source": "file2",
|
|
||||||
"services.test.files.file2.activate": true,
|
"services.test.files.file2.activate": true,
|
||||||
"services.test.files.incfile.engine": "creole",
|
|
||||||
"services.test.files.incfile.group": "root",
|
|
||||||
"services.test.files.incfile.included": "content",
|
|
||||||
"services.test.files.incfile.mode": "0644",
|
|
||||||
"services.test.files.incfile.name": "/etc/dir/incfile",
|
"services.test.files.incfile.name": "/etc/dir/incfile",
|
||||||
"services.test.files.incfile.owner": "root",
|
|
||||||
"services.test.files.incfile.source": "incfile",
|
|
||||||
"services.test.files.incfile.activate": true,
|
"services.test.files.incfile.activate": true,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -3,98 +3,26 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.file.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file.name": {
|
"services.test.files.file.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file"
|
"value": "/etc/file"
|
||||||
},
|
},
|
||||||
"services.test.files.file.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file"
|
|
||||||
},
|
|
||||||
"services.test.files.file.activate": {
|
"services.test.files.file.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
},
|
},
|
||||||
"services.test.files.file2.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "jinja2"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.name": {
|
"services.test.files.file2.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file2"
|
"value": "/etc/file2"
|
||||||
},
|
},
|
||||||
"services.test.files.file2.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file2"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.activate": {
|
"services.test.files.file2.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
},
|
},
|
||||||
"services.test.files.incfile.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "content"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.name": {
|
"services.test.files.incfile.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/dir/incfile"
|
"value": "/etc/dir/incfile"
|
||||||
},
|
},
|
||||||
"services.test.files.incfile.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "incfile"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.activate": {
|
"services.test.files.incfile.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -14,36 +14,23 @@ except:
|
||||||
option_3 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
|
option_3 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_8 = StrOption(name="engine", doc="engine", default="creole")
|
option_8 = FilenameOption(name="name", doc="name", default="/etc/file")
|
||||||
option_9 = StrOption(name="group", doc="group", default="root")
|
option_9 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_10 = StrOption(name="included", doc="included", default="no")
|
option_7 = OptionDescription(name="file", doc="file", children=[option_8, option_9])
|
||||||
option_11 = StrOption(name="mode", doc="mode", default="0644")
|
option_7.impl_set_information('source', "file")
|
||||||
option_12 = FilenameOption(name="name", doc="name", default="/etc/file")
|
option_11 = FilenameOption(name="name", doc="name", default="/etc/file2")
|
||||||
option_13 = StrOption(name="owner", doc="owner", default="root")
|
option_12 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_14 = StrOption(name="source", doc="source", default="file")
|
option_10 = OptionDescription(name="file2", doc="file2", children=[option_11, option_12])
|
||||||
|
option_10.impl_set_information('engine', "jinja2")
|
||||||
|
option_10.impl_set_information('source', "file2")
|
||||||
|
option_14 = FilenameOption(name="name", doc="name", default="/etc/dir/incfile")
|
||||||
option_15 = BoolOption(name="activate", doc="activate", default=True)
|
option_15 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_7 = OptionDescription(name="file", doc="file", children=[option_8, option_9, option_10, option_11, option_12, option_13, option_14, option_15])
|
option_13 = OptionDescription(name="incfile", doc="incfile", children=[option_14, option_15])
|
||||||
option_17 = StrOption(name="engine", doc="engine", default="jinja2")
|
option_13.impl_set_information('included', "content")
|
||||||
option_18 = StrOption(name="group", doc="group", default="root")
|
option_13.impl_set_information('source', "incfile")
|
||||||
option_19 = StrOption(name="included", doc="included", default="no")
|
option_6 = OptionDescription(name="files", doc="files", children=[option_7, option_10, option_13])
|
||||||
option_20 = StrOption(name="mode", doc="mode", default="0644")
|
option_16 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_21 = FilenameOption(name="name", doc="name", default="/etc/file2")
|
option_17 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_22 = StrOption(name="owner", doc="owner", default="root")
|
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_16, option_17])
|
||||||
option_23 = StrOption(name="source", doc="source", default="file2")
|
|
||||||
option_24 = BoolOption(name="activate", doc="activate", default=True)
|
|
||||||
option_16 = OptionDescription(name="file2", doc="file2", children=[option_17, option_18, option_19, option_20, option_21, option_22, option_23, option_24])
|
|
||||||
option_26 = StrOption(name="engine", doc="engine", default="creole")
|
|
||||||
option_27 = StrOption(name="group", doc="group", default="root")
|
|
||||||
option_28 = StrOption(name="included", doc="included", default="content")
|
|
||||||
option_29 = StrOption(name="mode", doc="mode", default="0644")
|
|
||||||
option_30 = FilenameOption(name="name", doc="name", default="/etc/dir/incfile")
|
|
||||||
option_31 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_32 = StrOption(name="source", doc="source", default="incfile")
|
|
||||||
option_33 = BoolOption(name="activate", doc="activate", default=True)
|
|
||||||
option_25 = OptionDescription(name="incfile", doc="incfile", children=[option_26, option_27, option_28, option_29, option_30, option_31, option_32, option_33])
|
|
||||||
option_6 = OptionDescription(name="files", doc="files", children=[option_7, option_16, option_25])
|
|
||||||
option_34 = BoolOption(name="activate", doc="activate", default=True)
|
|
||||||
option_35 = BoolOption(name="manage", doc="manage", default=True)
|
|
||||||
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_34, option_35])
|
|
||||||
option_4 = OptionDescription(name="services", doc="services", children=[option_5], properties=frozenset({"hidden"}))
|
option_4 = OptionDescription(name="services", doc="services", children=[option_5], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_4])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_4])
|
||||||
|
|
|
@ -3,98 +3,26 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.file.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file.name": {
|
"services.test.files.file.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file"
|
"value": "/etc/file"
|
||||||
},
|
},
|
||||||
"services.test.files.file.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file"
|
|
||||||
},
|
|
||||||
"services.test.files.file.activate": {
|
"services.test.files.file.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
},
|
},
|
||||||
"services.test.files.file2.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "jinja2"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.name": {
|
"services.test.files.file2.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file2"
|
"value": "/etc/file2"
|
||||||
},
|
},
|
||||||
"services.test.files.file2.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file2"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.activate": {
|
"services.test.files.file2.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
},
|
},
|
||||||
"services.test.files.incfile.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "name"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.name": {
|
"services.test.files.incfile.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/dir/incfile"
|
"value": "/etc/dir/incfile"
|
||||||
},
|
},
|
||||||
"services.test.files.incfile.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "incfile"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.activate": {
|
"services.test.files.incfile.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -1,28 +1,10 @@
|
||||||
{
|
{
|
||||||
"rougail.general.mode_conteneur_actif": "non",
|
"rougail.general.mode_conteneur_actif": "non",
|
||||||
"services.test.files.file.engine": "creole",
|
|
||||||
"services.test.files.file.group": "root",
|
|
||||||
"services.test.files.file.included": "no",
|
|
||||||
"services.test.files.file.mode": "0644",
|
|
||||||
"services.test.files.file.name": "/etc/file",
|
"services.test.files.file.name": "/etc/file",
|
||||||
"services.test.files.file.owner": "root",
|
|
||||||
"services.test.files.file.source": "file",
|
|
||||||
"services.test.files.file.activate": true,
|
"services.test.files.file.activate": true,
|
||||||
"services.test.files.file2.engine": "jinja2",
|
|
||||||
"services.test.files.file2.group": "root",
|
|
||||||
"services.test.files.file2.included": "no",
|
|
||||||
"services.test.files.file2.mode": "0644",
|
|
||||||
"services.test.files.file2.name": "/etc/file2",
|
"services.test.files.file2.name": "/etc/file2",
|
||||||
"services.test.files.file2.owner": "root",
|
|
||||||
"services.test.files.file2.source": "file2",
|
|
||||||
"services.test.files.file2.activate": true,
|
"services.test.files.file2.activate": true,
|
||||||
"services.test.files.incfile.engine": "creole",
|
|
||||||
"services.test.files.incfile.group": "root",
|
|
||||||
"services.test.files.incfile.included": "name",
|
|
||||||
"services.test.files.incfile.mode": "0644",
|
|
||||||
"services.test.files.incfile.name": "/etc/dir/incfile",
|
"services.test.files.incfile.name": "/etc/dir/incfile",
|
||||||
"services.test.files.incfile.owner": "root",
|
|
||||||
"services.test.files.incfile.source": "incfile",
|
|
||||||
"services.test.files.incfile.activate": true,
|
"services.test.files.incfile.activate": true,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -3,98 +3,26 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.file.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file.name": {
|
"services.test.files.file.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file"
|
"value": "/etc/file"
|
||||||
},
|
},
|
||||||
"services.test.files.file.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file"
|
|
||||||
},
|
|
||||||
"services.test.files.file.activate": {
|
"services.test.files.file.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
},
|
},
|
||||||
"services.test.files.file2.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "jinja2"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.name": {
|
"services.test.files.file2.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file2"
|
"value": "/etc/file2"
|
||||||
},
|
},
|
||||||
"services.test.files.file2.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file2"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.activate": {
|
"services.test.files.file2.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
},
|
},
|
||||||
"services.test.files.incfile.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "name"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.name": {
|
"services.test.files.incfile.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/dir/incfile"
|
"value": "/etc/dir/incfile"
|
||||||
},
|
},
|
||||||
"services.test.files.incfile.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "incfile"
|
|
||||||
},
|
|
||||||
"services.test.files.incfile.activate": {
|
"services.test.files.incfile.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -14,36 +14,23 @@ except:
|
||||||
option_3 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
|
option_3 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_8 = StrOption(name="engine", doc="engine", default="creole")
|
option_8 = FilenameOption(name="name", doc="name", default="/etc/file")
|
||||||
option_9 = StrOption(name="group", doc="group", default="root")
|
option_9 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_10 = StrOption(name="included", doc="included", default="no")
|
option_7 = OptionDescription(name="file", doc="file", children=[option_8, option_9])
|
||||||
option_11 = StrOption(name="mode", doc="mode", default="0644")
|
option_7.impl_set_information('source', "file")
|
||||||
option_12 = FilenameOption(name="name", doc="name", default="/etc/file")
|
option_11 = FilenameOption(name="name", doc="name", default="/etc/file2")
|
||||||
option_13 = StrOption(name="owner", doc="owner", default="root")
|
option_12 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_14 = StrOption(name="source", doc="source", default="file")
|
option_10 = OptionDescription(name="file2", doc="file2", children=[option_11, option_12])
|
||||||
|
option_10.impl_set_information('engine', "jinja2")
|
||||||
|
option_10.impl_set_information('source', "file2")
|
||||||
|
option_14 = FilenameOption(name="name", doc="name", default="/etc/dir/incfile")
|
||||||
option_15 = BoolOption(name="activate", doc="activate", default=True)
|
option_15 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_7 = OptionDescription(name="file", doc="file", children=[option_8, option_9, option_10, option_11, option_12, option_13, option_14, option_15])
|
option_13 = OptionDescription(name="incfile", doc="incfile", children=[option_14, option_15])
|
||||||
option_17 = StrOption(name="engine", doc="engine", default="jinja2")
|
option_13.impl_set_information('included', "name")
|
||||||
option_18 = StrOption(name="group", doc="group", default="root")
|
option_13.impl_set_information('source', "incfile")
|
||||||
option_19 = StrOption(name="included", doc="included", default="no")
|
option_6 = OptionDescription(name="files", doc="files", children=[option_7, option_10, option_13])
|
||||||
option_20 = StrOption(name="mode", doc="mode", default="0644")
|
option_16 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_21 = FilenameOption(name="name", doc="name", default="/etc/file2")
|
option_17 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_22 = StrOption(name="owner", doc="owner", default="root")
|
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_16, option_17])
|
||||||
option_23 = StrOption(name="source", doc="source", default="file2")
|
|
||||||
option_24 = BoolOption(name="activate", doc="activate", default=True)
|
|
||||||
option_16 = OptionDescription(name="file2", doc="file2", children=[option_17, option_18, option_19, option_20, option_21, option_22, option_23, option_24])
|
|
||||||
option_26 = StrOption(name="engine", doc="engine", default="creole")
|
|
||||||
option_27 = StrOption(name="group", doc="group", default="root")
|
|
||||||
option_28 = StrOption(name="included", doc="included", default="name")
|
|
||||||
option_29 = StrOption(name="mode", doc="mode", default="0644")
|
|
||||||
option_30 = FilenameOption(name="name", doc="name", default="/etc/dir/incfile")
|
|
||||||
option_31 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_32 = StrOption(name="source", doc="source", default="incfile")
|
|
||||||
option_33 = BoolOption(name="activate", doc="activate", default=True)
|
|
||||||
option_25 = OptionDescription(name="incfile", doc="incfile", children=[option_26, option_27, option_28, option_29, option_30, option_31, option_32, option_33])
|
|
||||||
option_6 = OptionDescription(name="files", doc="files", children=[option_7, option_16, option_25])
|
|
||||||
option_34 = BoolOption(name="activate", doc="activate", default=True)
|
|
||||||
option_35 = BoolOption(name="manage", doc="manage", default=True)
|
|
||||||
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_34, option_35])
|
|
||||||
option_4 = OptionDescription(name="services", doc="services", children=[option_5], properties=frozenset({"hidden"}))
|
option_4 = OptionDescription(name="services", doc="services", children=[option_5], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_4])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_4])
|
||||||
|
|
|
@ -3,66 +3,18 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.file.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file.name": {
|
"services.test.files.file.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file"
|
"value": "/etc/file"
|
||||||
},
|
},
|
||||||
"services.test.files.file.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file"
|
|
||||||
},
|
|
||||||
"services.test.files.file.activate": {
|
"services.test.files.file.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
},
|
},
|
||||||
"services.test.files.file2.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "jinja2"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.name": {
|
"services.test.files.file2.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file2"
|
"value": "/etc/file2"
|
||||||
},
|
},
|
||||||
"services.test.files.file2.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file2"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.activate": {
|
"services.test.files.file2.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -1,20 +1,8 @@
|
||||||
{
|
{
|
||||||
"rougail.general.mode_conteneur_actif": "non",
|
"rougail.general.mode_conteneur_actif": "non",
|
||||||
"services.test.files.file.engine": "creole",
|
|
||||||
"services.test.files.file.group": "root",
|
|
||||||
"services.test.files.file.included": "no",
|
|
||||||
"services.test.files.file.mode": "0644",
|
|
||||||
"services.test.files.file.name": "/etc/file",
|
"services.test.files.file.name": "/etc/file",
|
||||||
"services.test.files.file.owner": "root",
|
|
||||||
"services.test.files.file.source": "file",
|
|
||||||
"services.test.files.file.activate": true,
|
"services.test.files.file.activate": true,
|
||||||
"services.test.files.file2.engine": "jinja2",
|
|
||||||
"services.test.files.file2.group": "root",
|
|
||||||
"services.test.files.file2.included": "no",
|
|
||||||
"services.test.files.file2.mode": "0644",
|
|
||||||
"services.test.files.file2.name": "/etc/file2",
|
"services.test.files.file2.name": "/etc/file2",
|
||||||
"services.test.files.file2.owner": "root",
|
|
||||||
"services.test.files.file2.source": "file2",
|
|
||||||
"services.test.files.file2.activate": true,
|
"services.test.files.file2.activate": true,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -3,66 +3,18 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.file.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file.name": {
|
"services.test.files.file.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file"
|
"value": "/etc/file"
|
||||||
},
|
},
|
||||||
"services.test.files.file.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file"
|
|
||||||
},
|
|
||||||
"services.test.files.file.activate": {
|
"services.test.files.file.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
},
|
},
|
||||||
"services.test.files.file2.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "jinja2"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.name": {
|
"services.test.files.file2.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file2"
|
"value": "/etc/file2"
|
||||||
},
|
},
|
||||||
"services.test.files.file2.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file2"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.activate": {
|
"services.test.files.file2.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -14,27 +14,18 @@ except:
|
||||||
option_3 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
|
option_3 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_8 = StrOption(name="engine", doc="engine", default="creole")
|
option_8 = FilenameOption(name="name", doc="name", default="/etc/file")
|
||||||
option_9 = StrOption(name="group", doc="group", default="root")
|
option_9 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_10 = StrOption(name="included", doc="included", default="no")
|
option_7 = OptionDescription(name="file", doc="file", children=[option_8, option_9])
|
||||||
option_11 = StrOption(name="mode", doc="mode", default="0644")
|
option_7.impl_set_information('source', "file")
|
||||||
option_12 = FilenameOption(name="name", doc="name", default="/etc/file")
|
option_11 = FilenameOption(name="name", doc="name", default="/etc/file2")
|
||||||
option_13 = StrOption(name="owner", doc="owner", default="root")
|
option_12 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_14 = StrOption(name="source", doc="source", default="file")
|
option_10 = OptionDescription(name="file2", doc="file2", children=[option_11, option_12])
|
||||||
option_15 = BoolOption(name="activate", doc="activate", default=True)
|
option_10.impl_set_information('engine', "jinja2")
|
||||||
option_7 = OptionDescription(name="file", doc="file", children=[option_8, option_9, option_10, option_11, option_12, option_13, option_14, option_15])
|
option_10.impl_set_information('source', "file2")
|
||||||
option_17 = StrOption(name="engine", doc="engine", default="jinja2")
|
option_6 = OptionDescription(name="files", doc="files", children=[option_7, option_10])
|
||||||
option_18 = StrOption(name="group", doc="group", default="root")
|
option_13 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_19 = StrOption(name="included", doc="included", default="no")
|
option_14 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_20 = StrOption(name="mode", doc="mode", default="0644")
|
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_13, option_14])
|
||||||
option_21 = FilenameOption(name="name", doc="name", default="/etc/file2")
|
|
||||||
option_22 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_23 = StrOption(name="source", doc="source", default="file2")
|
|
||||||
option_24 = BoolOption(name="activate", doc="activate", default=True)
|
|
||||||
option_16 = OptionDescription(name="file2", doc="file2", children=[option_17, option_18, option_19, option_20, option_21, option_22, option_23, option_24])
|
|
||||||
option_6 = OptionDescription(name="files", doc="files", children=[option_7, option_16])
|
|
||||||
option_25 = BoolOption(name="activate", doc="activate", default=True)
|
|
||||||
option_26 = BoolOption(name="manage", doc="manage", default=True)
|
|
||||||
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_25, option_26])
|
|
||||||
option_4 = OptionDescription(name="services", doc="services", children=[option_5], properties=frozenset({"hidden"}))
|
option_4 = OptionDescription(name="services", doc="services", children=[option_5], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_4])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_4])
|
||||||
|
|
|
@ -3,66 +3,18 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.name": {
|
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel"
|
"value": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel"
|
||||||
},
|
},
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "systemd-makefs@dev-disk-by\\x2dpartlabel"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.activate": {
|
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
},
|
},
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "jinja2"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.name": {
|
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2"
|
"value": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2"
|
||||||
},
|
},
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "systemd-makefs@dev-disk-by\\x2dpartlabel2"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.activate": {
|
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -1,20 +1,8 @@
|
||||||
{
|
{
|
||||||
"rougail.general.mode_conteneur_actif": "non",
|
"rougail.general.mode_conteneur_actif": "non",
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.engine": "creole",
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.group": "root",
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.included": "no",
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.mode": "0644",
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.name": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel",
|
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.name": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel",
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.owner": "root",
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.source": "systemd-makefs@dev-disk-by\\x2dpartlabel",
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.activate": true,
|
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.activate": true,
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.engine": "jinja2",
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.group": "root",
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.included": "no",
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.mode": "0644",
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.name": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2",
|
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.name": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2",
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.owner": "root",
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.source": "systemd-makefs@dev-disk-by\\x2dpartlabel2",
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.activate": true,
|
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.activate": true,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -3,66 +3,18 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.name": {
|
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel"
|
"value": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel"
|
||||||
},
|
},
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "systemd-makefs@dev-disk-by\\x2dpartlabel"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.activate": {
|
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
},
|
},
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "jinja2"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.name": {
|
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2"
|
"value": "/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2"
|
||||||
},
|
},
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "systemd-makefs@dev-disk-by\\x2dpartlabel2"
|
|
||||||
},
|
|
||||||
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.activate": {
|
"services.test.files.systemd_makefs@dev_disk_by\\x2dpartlabel2.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -14,27 +14,18 @@ except:
|
||||||
option_3 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
|
option_3 = StrOption(name="mode_conteneur_actif", doc="Description", default="non", properties=frozenset({"mandatory", "normal"}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_8 = StrOption(name="engine", doc="engine", default="creole")
|
option_8 = FilenameOption(name="name", doc="name", default="/etc/systemd-makefs@dev-disk-by\\x2dpartlabel")
|
||||||
option_9 = StrOption(name="group", doc="group", default="root")
|
option_9 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_10 = StrOption(name="included", doc="included", default="no")
|
option_7 = OptionDescription(name="systemd_makefs@dev_disk_by\\x2dpartlabel", doc="systemd-makefs@dev-disk-by\\x2dpartlabel", children=[option_8, option_9])
|
||||||
option_11 = StrOption(name="mode", doc="mode", default="0644")
|
option_7.impl_set_information('source', "systemd-makefs@dev-disk-by\\x2dpartlabel")
|
||||||
option_12 = FilenameOption(name="name", doc="name", default="/etc/systemd-makefs@dev-disk-by\\x2dpartlabel")
|
option_11 = FilenameOption(name="name", doc="name", default="/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2")
|
||||||
option_13 = StrOption(name="owner", doc="owner", default="root")
|
option_12 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_14 = StrOption(name="source", doc="source", default="systemd-makefs@dev-disk-by\\x2dpartlabel")
|
option_10 = OptionDescription(name="systemd_makefs@dev_disk_by\\x2dpartlabel2", doc="systemd-makefs@dev-disk-by\\x2dpartlabel2", children=[option_11, option_12])
|
||||||
option_15 = BoolOption(name="activate", doc="activate", default=True)
|
option_10.impl_set_information('engine', "jinja2")
|
||||||
option_7 = OptionDescription(name="systemd_makefs@dev_disk_by\\x2dpartlabel", doc="systemd-makefs@dev-disk-by\\x2dpartlabel", children=[option_8, option_9, option_10, option_11, option_12, option_13, option_14, option_15])
|
option_10.impl_set_information('source', "systemd-makefs@dev-disk-by\\x2dpartlabel2")
|
||||||
option_17 = StrOption(name="engine", doc="engine", default="jinja2")
|
option_6 = OptionDescription(name="files", doc="files", children=[option_7, option_10])
|
||||||
option_18 = StrOption(name="group", doc="group", default="root")
|
option_13 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_19 = StrOption(name="included", doc="included", default="no")
|
option_14 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_20 = StrOption(name="mode", doc="mode", default="0644")
|
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_13, option_14])
|
||||||
option_21 = FilenameOption(name="name", doc="name", default="/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2")
|
|
||||||
option_22 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_23 = StrOption(name="source", doc="source", default="systemd-makefs@dev-disk-by\\x2dpartlabel2")
|
|
||||||
option_24 = BoolOption(name="activate", doc="activate", default=True)
|
|
||||||
option_16 = OptionDescription(name="systemd_makefs@dev_disk_by\\x2dpartlabel2", doc="systemd-makefs@dev-disk-by\\x2dpartlabel2", children=[option_17, option_18, option_19, option_20, option_21, option_22, option_23, option_24])
|
|
||||||
option_6 = OptionDescription(name="files", doc="files", children=[option_7, option_16])
|
|
||||||
option_25 = BoolOption(name="activate", doc="activate", default=True)
|
|
||||||
option_26 = BoolOption(name="manage", doc="manage", default=True)
|
|
||||||
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_25, option_26])
|
|
||||||
option_4 = OptionDescription(name="services", doc="services", children=[option_5], properties=frozenset({"hidden"}))
|
option_4 = OptionDescription(name="services", doc="services", children=[option_5], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_4])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_4])
|
||||||
|
|
|
@ -11,34 +11,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.name": {
|
"services.test.files.file1.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file1"
|
"value": "/tmp/file1"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file1"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.activate": {
|
"services.test.files.file1.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -2,13 +2,7 @@
|
||||||
"rougail.general.condition": "non",
|
"rougail.general.condition": "non",
|
||||||
"rougail.general.mode_conteneur_actif": "non",
|
"rougail.general.mode_conteneur_actif": "non",
|
||||||
"rougail.general.mode_conteneur_actif2": "non",
|
"rougail.general.mode_conteneur_actif2": "non",
|
||||||
"services.test.files.file1.engine": "creole",
|
|
||||||
"services.test.files.file1.group": "root",
|
|
||||||
"services.test.files.file1.included": "no",
|
|
||||||
"services.test.files.file1.mode": "0644",
|
|
||||||
"services.test.files.file1.name": "/tmp/file1",
|
"services.test.files.file1.name": "/tmp/file1",
|
||||||
"services.test.files.file1.owner": "root",
|
|
||||||
"services.test.files.file1.source": "file1",
|
|
||||||
"services.test.files.file1.activate": true,
|
"services.test.files.file1.activate": true,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -11,34 +11,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.name": {
|
"services.test.files.file1.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file1"
|
"value": "/tmp/file1"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file1"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.activate": {
|
"services.test.files.file1.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -16,18 +16,13 @@ option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non"
|
||||||
option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
|
option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_10 = StrOption(name="engine", doc="engine", default="creole")
|
option_10 = FilenameOption(name="name", doc="name", default="/tmp/file1")
|
||||||
option_11 = StrOption(name="group", doc="group", default="root")
|
option_11 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue(["oui", "maybe"]), 'condition_operator': ParamValue("OR")})))
|
||||||
option_12 = StrOption(name="included", doc="included", default="no")
|
option_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11])
|
||||||
option_13 = StrOption(name="mode", doc="mode", default="0644")
|
option_9.impl_set_information('source', "file1")
|
||||||
option_14 = FilenameOption(name="name", doc="name", default="/tmp/file1")
|
|
||||||
option_15 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_16 = StrOption(name="source", doc="source", default="file1")
|
|
||||||
option_17 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue(["oui", "maybe"]), 'condition_operator': ParamValue("OR")})))
|
|
||||||
option_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11, option_12, option_13, option_14, option_15, option_16, option_17])
|
|
||||||
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
||||||
option_18 = BoolOption(name="activate", doc="activate", default=True)
|
option_12 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_19 = BoolOption(name="manage", doc="manage", default=True)
|
option_13 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
|
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_12, option_13])
|
||||||
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
||||||
|
|
|
@ -11,34 +11,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "no"
|
"value": "no"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.name": {
|
"services.test.files.file1.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file1"
|
"value": "/tmp/file1"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file1"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.activate": {
|
"services.test.files.file1.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -2,13 +2,7 @@
|
||||||
"rougail.general.condition": "no",
|
"rougail.general.condition": "no",
|
||||||
"rougail.general.condition2": "no",
|
"rougail.general.condition2": "no",
|
||||||
"rougail.general.test_variable": "no",
|
"rougail.general.test_variable": "no",
|
||||||
"services.test.files.file1.engine": "creole",
|
|
||||||
"services.test.files.file1.group": "root",
|
|
||||||
"services.test.files.file1.included": "no",
|
|
||||||
"services.test.files.file1.mode": "0644",
|
|
||||||
"services.test.files.file1.name": "/tmp/file1",
|
"services.test.files.file1.name": "/tmp/file1",
|
||||||
"services.test.files.file1.owner": "root",
|
|
||||||
"services.test.files.file1.source": "file1",
|
|
||||||
"services.test.files.file1.activate": true,
|
"services.test.files.file1.activate": true,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -11,34 +11,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "no"
|
"value": "no"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.name": {
|
"services.test.files.file1.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file1"
|
"value": "/tmp/file1"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file1"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.activate": {
|
"services.test.files.file1.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -16,18 +16,13 @@ option_4 = StrOption(name="condition2", doc="No change", default="no", propertie
|
||||||
option_5 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_4, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_4, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
|
option_5 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_4, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_4, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_10 = StrOption(name="engine", doc="engine", default="creole")
|
option_10 = FilenameOption(name="name", doc="name", default="/tmp/file1")
|
||||||
option_11 = StrOption(name="group", doc="group", default="root")
|
option_11 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_4, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
|
||||||
option_12 = StrOption(name="included", doc="included", default="no")
|
option_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11])
|
||||||
option_13 = StrOption(name="mode", doc="mode", default="0644")
|
option_9.impl_set_information('source', "file1")
|
||||||
option_14 = FilenameOption(name="name", doc="name", default="/tmp/file1")
|
|
||||||
option_15 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_16 = StrOption(name="source", doc="source", default="file1")
|
|
||||||
option_17 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_4, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
|
|
||||||
option_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11, option_12, option_13, option_14, option_15, option_16, option_17])
|
|
||||||
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
||||||
option_18 = BoolOption(name="activate", doc="activate", default=True)
|
option_12 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_19 = BoolOption(name="manage", doc="manage", default=True)
|
option_13 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
|
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_12, option_13])
|
||||||
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
||||||
|
|
|
@ -7,34 +7,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "no"
|
"value": "no"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.name": {
|
"services.test.files.file1.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file1"
|
"value": "/tmp/file1"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file1"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.activate": {
|
"services.test.files.file1.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": false
|
"value": false
|
||||||
|
|
|
@ -1,13 +1,7 @@
|
||||||
{
|
{
|
||||||
"rougail.general.condition": "no",
|
"rougail.general.condition": "no",
|
||||||
"rougail.general.condition2": "no",
|
"rougail.general.condition2": "no",
|
||||||
"services.test.files.file1.engine": "creole",
|
|
||||||
"services.test.files.file1.group": "root",
|
|
||||||
"services.test.files.file1.included": "no",
|
|
||||||
"services.test.files.file1.mode": "0644",
|
|
||||||
"services.test.files.file1.name": "/tmp/file1",
|
"services.test.files.file1.name": "/tmp/file1",
|
||||||
"services.test.files.file1.owner": "root",
|
|
||||||
"services.test.files.file1.source": "file1",
|
|
||||||
"services.test.files.file1.activate": false,
|
"services.test.files.file1.activate": false,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -7,34 +7,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "no"
|
"value": "no"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.name": {
|
"services.test.files.file1.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file1"
|
"value": "/tmp/file1"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file1"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.activate": {
|
"services.test.files.file1.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": false
|
"value": false
|
||||||
|
|
|
@ -16,18 +16,13 @@ option_4 = StrOption(name="condition2", doc="No change", default="no", propertie
|
||||||
option_5 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_4, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_4, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
|
option_5 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_4, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_4, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_10 = StrOption(name="engine", doc="engine", default="creole")
|
option_10 = FilenameOption(name="name", doc="name", default="/tmp/file1")
|
||||||
option_11 = StrOption(name="group", doc="group", default="root")
|
option_11 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_4, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
|
||||||
option_12 = StrOption(name="included", doc="included", default="no")
|
option_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11])
|
||||||
option_13 = StrOption(name="mode", doc="mode", default="0644")
|
option_9.impl_set_information('source', "file1")
|
||||||
option_14 = FilenameOption(name="name", doc="name", default="/tmp/file1")
|
|
||||||
option_15 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_16 = StrOption(name="source", doc="source", default="file1")
|
|
||||||
option_17 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_4, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
|
|
||||||
option_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11, option_12, option_13, option_14, option_15, option_16, option_17])
|
|
||||||
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
||||||
option_18 = BoolOption(name="activate", doc="activate", default=True)
|
option_12 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_19 = BoolOption(name="manage", doc="manage", default=True)
|
option_13 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
|
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_12, option_13])
|
||||||
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
||||||
|
|
|
@ -7,34 +7,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "no"
|
"value": "no"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.name": {
|
"services.test.files.file1.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file1"
|
"value": "/tmp/file1"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file1"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.activate": {
|
"services.test.files.file1.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -1,13 +1,7 @@
|
||||||
{
|
{
|
||||||
"rougail.general.condition": "yes",
|
"rougail.general.condition": "yes",
|
||||||
"rougail.general.condition2": "no",
|
"rougail.general.condition2": "no",
|
||||||
"services.test.files.file1.engine": "creole",
|
|
||||||
"services.test.files.file1.group": "root",
|
|
||||||
"services.test.files.file1.included": "no",
|
|
||||||
"services.test.files.file1.mode": "0644",
|
|
||||||
"services.test.files.file1.name": "/tmp/file1",
|
"services.test.files.file1.name": "/tmp/file1",
|
||||||
"services.test.files.file1.owner": "root",
|
|
||||||
"services.test.files.file1.source": "file1",
|
|
||||||
"services.test.files.file1.activate": true,
|
"services.test.files.file1.activate": true,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -7,34 +7,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "no"
|
"value": "no"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.name": {
|
"services.test.files.file1.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file1"
|
"value": "/tmp/file1"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file1"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.activate": {
|
"services.test.files.file1.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -16,18 +16,13 @@ option_4 = StrOption(name="condition2", doc="No change", default="no", propertie
|
||||||
option_5 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_4, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_4, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
|
option_5 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_4, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_4, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_10 = StrOption(name="engine", doc="engine", default="creole")
|
option_10 = FilenameOption(name="name", doc="name", default="/tmp/file1")
|
||||||
option_11 = StrOption(name="group", doc="group", default="root")
|
option_11 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_4, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
|
||||||
option_12 = StrOption(name="included", doc="included", default="no")
|
option_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11])
|
||||||
option_13 = StrOption(name="mode", doc="mode", default="0644")
|
option_9.impl_set_information('source', "file1")
|
||||||
option_14 = FilenameOption(name="name", doc="name", default="/tmp/file1")
|
|
||||||
option_15 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_16 = StrOption(name="source", doc="source", default="file1")
|
|
||||||
option_17 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_4, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
|
|
||||||
option_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11, option_12, option_13, option_14, option_15, option_16, option_17])
|
|
||||||
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
||||||
option_18 = BoolOption(name="activate", doc="activate", default=True)
|
option_12 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_19 = BoolOption(name="manage", doc="manage", default=True)
|
option_13 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
|
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_12, option_13])
|
||||||
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
||||||
|
|
|
@ -7,34 +7,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "yes"
|
"value": "yes"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.name": {
|
"services.test.files.file1.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file1"
|
"value": "/tmp/file1"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file1"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.activate": {
|
"services.test.files.file1.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": false
|
"value": false
|
||||||
|
|
|
@ -1,13 +1,7 @@
|
||||||
{
|
{
|
||||||
"rougail.general.condition": "yes",
|
"rougail.general.condition": "yes",
|
||||||
"rougail.general.condition2": "yes",
|
"rougail.general.condition2": "yes",
|
||||||
"services.test.files.file1.engine": "creole",
|
|
||||||
"services.test.files.file1.group": "root",
|
|
||||||
"services.test.files.file1.included": "no",
|
|
||||||
"services.test.files.file1.mode": "0644",
|
|
||||||
"services.test.files.file1.name": "/tmp/file1",
|
"services.test.files.file1.name": "/tmp/file1",
|
||||||
"services.test.files.file1.owner": "root",
|
|
||||||
"services.test.files.file1.source": "file1",
|
|
||||||
"services.test.files.file1.activate": false,
|
"services.test.files.file1.activate": false,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -7,34 +7,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "yes"
|
"value": "yes"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.name": {
|
"services.test.files.file1.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file1"
|
"value": "/tmp/file1"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file1"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.activate": {
|
"services.test.files.file1.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": false
|
"value": false
|
||||||
|
|
|
@ -16,18 +16,13 @@ option_4 = StrOption(name="condition2", doc="No change", default="yes", properti
|
||||||
option_5 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_4, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_4, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
|
option_5 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_4, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_4, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_10 = StrOption(name="engine", doc="engine", default="creole")
|
option_10 = FilenameOption(name="name", doc="name", default="/tmp/file1")
|
||||||
option_11 = StrOption(name="group", doc="group", default="root")
|
option_11 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_4, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
|
||||||
option_12 = StrOption(name="included", doc="included", default="no")
|
option_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11])
|
||||||
option_13 = StrOption(name="mode", doc="mode", default="0644")
|
option_9.impl_set_information('source', "file1")
|
||||||
option_14 = FilenameOption(name="name", doc="name", default="/tmp/file1")
|
|
||||||
option_15 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_16 = StrOption(name="source", doc="source", default="file1")
|
|
||||||
option_17 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_4, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
|
|
||||||
option_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11, option_12, option_13, option_14, option_15, option_16, option_17])
|
|
||||||
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
||||||
option_18 = BoolOption(name="activate", doc="activate", default=True)
|
option_12 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_19 = BoolOption(name="manage", doc="manage", default=True)
|
option_13 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
|
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_12, option_13])
|
||||||
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
||||||
|
|
|
@ -7,34 +7,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "yes"
|
"value": "yes"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.name": {
|
"services.test.files.file1.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file1"
|
"value": "/tmp/file1"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file1"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.activate": {
|
"services.test.files.file1.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": false
|
"value": false
|
||||||
|
|
|
@ -1,13 +1,7 @@
|
||||||
{
|
{
|
||||||
"rougail.general.condition": "no",
|
"rougail.general.condition": "no",
|
||||||
"rougail.general.condition2": "yes",
|
"rougail.general.condition2": "yes",
|
||||||
"services.test.files.file1.engine": "creole",
|
|
||||||
"services.test.files.file1.group": "root",
|
|
||||||
"services.test.files.file1.included": "no",
|
|
||||||
"services.test.files.file1.mode": "0644",
|
|
||||||
"services.test.files.file1.name": "/tmp/file1",
|
"services.test.files.file1.name": "/tmp/file1",
|
||||||
"services.test.files.file1.owner": "root",
|
|
||||||
"services.test.files.file1.source": "file1",
|
|
||||||
"services.test.files.file1.activate": false,
|
"services.test.files.file1.activate": false,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -7,34 +7,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "yes"
|
"value": "yes"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.name": {
|
"services.test.files.file1.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file1"
|
"value": "/tmp/file1"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file1"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.activate": {
|
"services.test.files.file1.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": false
|
"value": false
|
||||||
|
|
|
@ -16,18 +16,13 @@ option_4 = StrOption(name="condition2", doc="No change", default="yes", properti
|
||||||
option_5 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_4, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_4, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
|
option_5 = StrOption(name="test_variable", doc="No change", default="no", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe"), 'reverse_condition': ParamValue(True)})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_4, todict=True, notraisepropertyerror=True), 'expected': ParamValue("yes")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_4, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_10 = StrOption(name="engine", doc="engine", default="creole")
|
option_10 = FilenameOption(name="name", doc="name", default="/tmp/file1")
|
||||||
option_11 = StrOption(name="group", doc="group", default="root")
|
option_11 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_4, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
|
||||||
option_12 = StrOption(name="included", doc="included", default="no")
|
option_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11])
|
||||||
option_13 = StrOption(name="mode", doc="mode", default="0644")
|
option_9.impl_set_information('source', "file1")
|
||||||
option_14 = FilenameOption(name="name", doc="name", default="/tmp/file1")
|
|
||||||
option_15 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_16 = StrOption(name="source", doc="source", default="file1")
|
|
||||||
option_17 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue(["yes", "maybe"]), 'reverse_condition_0': ParamValue(True), 'condition_operator': ParamValue("OR"), 'condition_1': ParamOption(option_4, notraisepropertyerror=True), 'expected_1': ParamValue(["yes", "maybe"])})))
|
|
||||||
option_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11, option_12, option_13, option_14, option_15, option_16, option_17])
|
|
||||||
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
||||||
option_18 = BoolOption(name="activate", doc="activate", default=True)
|
option_12 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_19 = BoolOption(name="manage", doc="manage", default=True)
|
option_13 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
|
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_12, option_13])
|
||||||
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
||||||
|
|
|
@ -3,34 +3,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "oui"
|
"value": "oui"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.name": {
|
"services.test.files.file1.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file1"
|
"value": "/tmp/file1"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file1"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.activate": {
|
"services.test.files.file1.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": false
|
"value": false
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
{
|
{
|
||||||
"rougail.general.condition": "oui",
|
"rougail.general.condition": "oui",
|
||||||
"services.test.files.file1.engine": "creole",
|
|
||||||
"services.test.files.file1.group": "root",
|
|
||||||
"services.test.files.file1.included": "no",
|
|
||||||
"services.test.files.file1.mode": "0644",
|
|
||||||
"services.test.files.file1.name": "/tmp/file1",
|
"services.test.files.file1.name": "/tmp/file1",
|
||||||
"services.test.files.file1.owner": "root",
|
|
||||||
"services.test.files.file1.source": "file1",
|
|
||||||
"services.test.files.file1.activate": false,
|
"services.test.files.file1.activate": false,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -3,34 +3,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "oui"
|
"value": "oui"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.name": {
|
"services.test.files.file1.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file1"
|
"value": "/tmp/file1"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file1"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.activate": {
|
"services.test.files.file1.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": false
|
"value": false
|
||||||
|
|
|
@ -16,18 +16,13 @@ option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non"
|
||||||
option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
|
option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")})), Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("maybe")}))}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_10 = StrOption(name="engine", doc="engine", default="creole")
|
option_10 = FilenameOption(name="name", doc="name", default="/tmp/file1")
|
||||||
option_11 = StrOption(name="group", doc="group", default="root")
|
option_11 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue(["oui", "maybe"]), 'condition_operator': ParamValue("OR")})))
|
||||||
option_12 = StrOption(name="included", doc="included", default="no")
|
option_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11])
|
||||||
option_13 = StrOption(name="mode", doc="mode", default="0644")
|
option_9.impl_set_information('source', "file1")
|
||||||
option_14 = FilenameOption(name="name", doc="name", default="/tmp/file1")
|
|
||||||
option_15 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_16 = StrOption(name="source", doc="source", default="file1")
|
|
||||||
option_17 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue(["oui", "maybe"]), 'condition_operator': ParamValue("OR")})))
|
|
||||||
option_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11, option_12, option_13, option_14, option_15, option_16, option_17])
|
|
||||||
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
||||||
option_18 = BoolOption(name="activate", doc="activate", default=True)
|
option_12 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_19 = BoolOption(name="manage", doc="manage", default=True)
|
option_13 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
|
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_12, option_13])
|
||||||
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
||||||
|
|
|
@ -7,34 +7,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "no"
|
"value": "no"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.name": {
|
"services.test.files.file1.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file1"
|
"value": "/tmp/file1"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file1"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.activate": {
|
"services.test.files.file1.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -1,13 +1,7 @@
|
||||||
{
|
{
|
||||||
"rougail.general.condition": "no",
|
"rougail.general.condition": "no",
|
||||||
"rougail.general.disable_variable": "no",
|
"rougail.general.disable_variable": "no",
|
||||||
"services.test.files.file1.engine": "creole",
|
|
||||||
"services.test.files.file1.group": "root",
|
|
||||||
"services.test.files.file1.included": "no",
|
|
||||||
"services.test.files.file1.mode": "0644",
|
|
||||||
"services.test.files.file1.name": "/tmp/file1",
|
"services.test.files.file1.name": "/tmp/file1",
|
||||||
"services.test.files.file1.owner": "root",
|
|
||||||
"services.test.files.file1.source": "file1",
|
|
||||||
"services.test.files.file1.activate": true,
|
"services.test.files.file1.activate": true,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -7,34 +7,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "no"
|
"value": "no"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.name": {
|
"services.test.files.file1.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file1"
|
"value": "/tmp/file1"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file1"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.activate": {
|
"services.test.files.file1.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -15,18 +15,13 @@ option_3 = StrOption(name="condition", doc="No change", default="no", properties
|
||||||
option_4 = StrOption(name="disable_variable", doc="No change", default="no", properties=frozenset({"mandatory", "normal"}))
|
option_4 = StrOption(name="disable_variable", doc="No change", default="no", properties=frozenset({"mandatory", "normal"}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_9 = StrOption(name="engine", doc="engine", default="creole")
|
option_9 = FilenameOption(name="name", doc="name", default="/tmp/file1")
|
||||||
option_10 = StrOption(name="group", doc="group", default="root")
|
option_10 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_11 = StrOption(name="included", doc="included", default="no")
|
option_8 = OptionDescription(name="file1", doc="file1", children=[option_9, option_10])
|
||||||
option_12 = StrOption(name="mode", doc="mode", default="0644")
|
option_8.impl_set_information('source', "file1")
|
||||||
option_13 = FilenameOption(name="name", doc="name", default="/tmp/file1")
|
|
||||||
option_14 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_15 = StrOption(name="source", doc="source", default="file1")
|
|
||||||
option_16 = BoolOption(name="activate", doc="activate", default=True)
|
|
||||||
option_8 = OptionDescription(name="file1", doc="file1", children=[option_9, option_10, option_11, option_12, option_13, option_14, option_15, option_16])
|
|
||||||
option_7 = OptionDescription(name="files", doc="files", children=[option_8])
|
option_7 = OptionDescription(name="files", doc="files", children=[option_8])
|
||||||
option_17 = BoolOption(name="activate", doc="activate", default=True)
|
option_11 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_18 = BoolOption(name="manage", doc="manage", default=True)
|
option_12 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_6 = OptionDescription(name="test", doc="test", children=[option_7, option_17, option_18])
|
option_6 = OptionDescription(name="test", doc="test", children=[option_7, option_11, option_12])
|
||||||
option_5 = OptionDescription(name="services", doc="services", children=[option_6], properties=frozenset({"hidden"}))
|
option_5 = OptionDescription(name="services", doc="services", children=[option_6], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_5])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_5])
|
||||||
|
|
|
@ -11,34 +11,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
},
|
},
|
||||||
"services.test.files.file.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file.name": {
|
"services.test.files.file.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file"
|
"value": "/etc/file"
|
||||||
},
|
},
|
||||||
"services.test.files.file.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file"
|
|
||||||
},
|
|
||||||
"services.test.files.file.activate": {
|
"services.test.files.file.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -2,13 +2,7 @@
|
||||||
"rougail.general.condition": "non",
|
"rougail.general.condition": "non",
|
||||||
"rougail.general.mode_conteneur_actif": "non",
|
"rougail.general.mode_conteneur_actif": "non",
|
||||||
"rougail.general.mode_conteneur_actif2": true,
|
"rougail.general.mode_conteneur_actif2": true,
|
||||||
"services.test.files.file.engine": "creole",
|
|
||||||
"services.test.files.file.group": "root",
|
|
||||||
"services.test.files.file.included": "no",
|
|
||||||
"services.test.files.file.mode": "0644",
|
|
||||||
"services.test.files.file.name": "/etc/file",
|
"services.test.files.file.name": "/etc/file",
|
||||||
"services.test.files.file.owner": "root",
|
|
||||||
"services.test.files.file.source": "file",
|
|
||||||
"services.test.files.file.activate": true,
|
"services.test.files.file.activate": true,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -11,34 +11,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
},
|
},
|
||||||
"services.test.files.file.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file.name": {
|
"services.test.files.file.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file"
|
"value": "/etc/file"
|
||||||
},
|
},
|
||||||
"services.test.files.file.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file"
|
|
||||||
},
|
|
||||||
"services.test.files.file.activate": {
|
"services.test.files.file.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -16,18 +16,13 @@ option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non"
|
||||||
option_5 = BoolOption(name="mode_conteneur_actif2", doc="No change", default=True, properties=frozenset({"mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")}))}))
|
option_5 = BoolOption(name="mode_conteneur_actif2", doc="No change", default=True, properties=frozenset({"mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")}))}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_10 = StrOption(name="engine", doc="engine", default="creole")
|
option_10 = FilenameOption(name="name", doc="name", default="/etc/file")
|
||||||
option_11 = StrOption(name="group", doc="group", default="root")
|
option_11 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue("oui")})))
|
||||||
option_12 = StrOption(name="included", doc="included", default="no")
|
option_9 = OptionDescription(name="file", doc="file", children=[option_10, option_11])
|
||||||
option_13 = StrOption(name="mode", doc="mode", default="0644")
|
option_9.impl_set_information('source', "file")
|
||||||
option_14 = FilenameOption(name="name", doc="name", default="/etc/file")
|
|
||||||
option_15 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_16 = StrOption(name="source", doc="source", default="file")
|
|
||||||
option_17 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue("oui")})))
|
|
||||||
option_9 = OptionDescription(name="file", doc="file", children=[option_10, option_11, option_12, option_13, option_14, option_15, option_16, option_17])
|
|
||||||
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
||||||
option_18 = BoolOption(name="activate", doc="activate", default=True)
|
option_12 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_19 = BoolOption(name="manage", doc="manage", default=True)
|
option_13 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
|
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_12, option_13])
|
||||||
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
||||||
|
|
|
@ -3,34 +3,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
},
|
},
|
||||||
"services.test.files.file1.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.name": {
|
"services.test.files.file1.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file1"
|
"value": "/tmp/file1"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file1"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.activate": {
|
"services.test.files.file1.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": false
|
"value": false
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
{
|
{
|
||||||
"rougail.general.condition": true,
|
"rougail.general.condition": true,
|
||||||
"services.test.files.file1.engine": "creole",
|
|
||||||
"services.test.files.file1.group": "root",
|
|
||||||
"services.test.files.file1.included": "no",
|
|
||||||
"services.test.files.file1.mode": "0644",
|
|
||||||
"services.test.files.file1.name": "/tmp/file1",
|
"services.test.files.file1.name": "/tmp/file1",
|
||||||
"services.test.files.file1.owner": "root",
|
|
||||||
"services.test.files.file1.source": "file1",
|
|
||||||
"services.test.files.file1.activate": false,
|
"services.test.files.file1.activate": false,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -3,34 +3,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
},
|
},
|
||||||
"services.test.files.file1.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.name": {
|
"services.test.files.file1.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file1"
|
"value": "/tmp/file1"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file1"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.activate": {
|
"services.test.files.file1.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": false
|
"value": false
|
||||||
|
|
|
@ -14,18 +14,13 @@ except:
|
||||||
option_3 = BoolOption(name="condition", doc="condition", default=True, properties=frozenset({"mandatory", "normal"}))
|
option_3 = BoolOption(name="condition", doc="condition", default=True, properties=frozenset({"mandatory", "normal"}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_8 = StrOption(name="engine", doc="engine", default="creole")
|
option_8 = FilenameOption(name="name", doc="name", default="/tmp/file1")
|
||||||
option_9 = StrOption(name="group", doc="group", default="root")
|
option_9 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue(True)})))
|
||||||
option_10 = StrOption(name="included", doc="included", default="no")
|
option_7 = OptionDescription(name="file1", doc="file1", children=[option_8, option_9])
|
||||||
option_11 = StrOption(name="mode", doc="mode", default="0644")
|
option_7.impl_set_information('source', "file1")
|
||||||
option_12 = FilenameOption(name="name", doc="name", default="/tmp/file1")
|
|
||||||
option_13 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_14 = StrOption(name="source", doc="source", default="file1")
|
|
||||||
option_15 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue(True)})))
|
|
||||||
option_7 = OptionDescription(name="file1", doc="file1", children=[option_8, option_9, option_10, option_11, option_12, option_13, option_14, option_15])
|
|
||||||
option_6 = OptionDescription(name="files", doc="files", children=[option_7])
|
option_6 = OptionDescription(name="files", doc="files", children=[option_7])
|
||||||
option_16 = BoolOption(name="activate", doc="activate", default=True)
|
option_10 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_17 = BoolOption(name="manage", doc="manage", default=True)
|
option_11 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_16, option_17])
|
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_10, option_11])
|
||||||
option_4 = OptionDescription(name="services", doc="services", children=[option_5], properties=frozenset({"hidden"}))
|
option_4 = OptionDescription(name="services", doc="services", children=[option_5], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_4])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_4])
|
||||||
|
|
|
@ -3,34 +3,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": false
|
"value": false
|
||||||
},
|
},
|
||||||
"services.test.files.file1.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.name": {
|
"services.test.files.file1.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file1"
|
"value": "/tmp/file1"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file1"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.activate": {
|
"services.test.files.file1.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
{
|
{
|
||||||
"rougail.general.condition": false,
|
"rougail.general.condition": false,
|
||||||
"services.test.files.file1.engine": "creole",
|
|
||||||
"services.test.files.file1.group": "root",
|
|
||||||
"services.test.files.file1.included": "no",
|
|
||||||
"services.test.files.file1.mode": "0644",
|
|
||||||
"services.test.files.file1.name": "/tmp/file1",
|
"services.test.files.file1.name": "/tmp/file1",
|
||||||
"services.test.files.file1.owner": "root",
|
|
||||||
"services.test.files.file1.source": "file1",
|
|
||||||
"services.test.files.file1.activate": true,
|
"services.test.files.file1.activate": true,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -3,34 +3,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": false
|
"value": false
|
||||||
},
|
},
|
||||||
"services.test.files.file1.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.name": {
|
"services.test.files.file1.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file1"
|
"value": "/tmp/file1"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file1"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.activate": {
|
"services.test.files.file1.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -14,18 +14,13 @@ except:
|
||||||
option_3 = BoolOption(name="condition", doc="condition", default=False, properties=frozenset({"mandatory", "normal"}))
|
option_3 = BoolOption(name="condition", doc="condition", default=False, properties=frozenset({"mandatory", "normal"}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_8 = StrOption(name="engine", doc="engine", default="creole")
|
option_8 = FilenameOption(name="name", doc="name", default="/tmp/file1")
|
||||||
option_9 = StrOption(name="group", doc="group", default="root")
|
option_9 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue(True)})))
|
||||||
option_10 = StrOption(name="included", doc="included", default="no")
|
option_7 = OptionDescription(name="file1", doc="file1", children=[option_8, option_9])
|
||||||
option_11 = StrOption(name="mode", doc="mode", default="0644")
|
option_7.impl_set_information('source', "file1")
|
||||||
option_12 = FilenameOption(name="name", doc="name", default="/tmp/file1")
|
|
||||||
option_13 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_14 = StrOption(name="source", doc="source", default="file1")
|
|
||||||
option_15 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue(True)})))
|
|
||||||
option_7 = OptionDescription(name="file1", doc="file1", children=[option_8, option_9, option_10, option_11, option_12, option_13, option_14, option_15])
|
|
||||||
option_6 = OptionDescription(name="files", doc="files", children=[option_7])
|
option_6 = OptionDescription(name="files", doc="files", children=[option_7])
|
||||||
option_16 = BoolOption(name="activate", doc="activate", default=True)
|
option_10 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_17 = BoolOption(name="manage", doc="manage", default=True)
|
option_11 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_16, option_17])
|
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_10, option_11])
|
||||||
option_4 = OptionDescription(name="services", doc="services", children=[option_5], properties=frozenset({"hidden"}))
|
option_4 = OptionDescription(name="services", doc="services", children=[option_5], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_4])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_4])
|
||||||
|
|
|
@ -3,34 +3,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "oui"
|
"value": "oui"
|
||||||
},
|
},
|
||||||
"services.test.files.file.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file.name": {
|
"services.test.files.file.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file"
|
"value": "/etc/file"
|
||||||
},
|
},
|
||||||
"services.test.files.file.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file"
|
|
||||||
},
|
|
||||||
"services.test.files.file.activate": {
|
"services.test.files.file.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": false
|
"value": false
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
{
|
{
|
||||||
"rougail.general.condition": "oui",
|
"rougail.general.condition": "oui",
|
||||||
"services.test.files.file.engine": "creole",
|
|
||||||
"services.test.files.file.group": "root",
|
|
||||||
"services.test.files.file.included": "no",
|
|
||||||
"services.test.files.file.mode": "0644",
|
|
||||||
"services.test.files.file.name": "/etc/file",
|
"services.test.files.file.name": "/etc/file",
|
||||||
"services.test.files.file.owner": "root",
|
|
||||||
"services.test.files.file.source": "file",
|
|
||||||
"services.test.files.file.activate": false,
|
"services.test.files.file.activate": false,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -3,34 +3,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "oui"
|
"value": "oui"
|
||||||
},
|
},
|
||||||
"services.test.files.file.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file.name": {
|
"services.test.files.file.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/etc/file"
|
"value": "/etc/file"
|
||||||
},
|
},
|
||||||
"services.test.files.file.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file"
|
|
||||||
},
|
|
||||||
"services.test.files.file.activate": {
|
"services.test.files.file.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": false
|
"value": false
|
||||||
|
|
|
@ -16,18 +16,13 @@ option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non"
|
||||||
option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")}))}))
|
option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")}))}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_10 = StrOption(name="engine", doc="engine", default="creole")
|
option_10 = FilenameOption(name="name", doc="name", default="/etc/file")
|
||||||
option_11 = StrOption(name="group", doc="group", default="root")
|
option_11 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue("oui")})))
|
||||||
option_12 = StrOption(name="included", doc="included", default="no")
|
option_9 = OptionDescription(name="file", doc="file", children=[option_10, option_11])
|
||||||
option_13 = StrOption(name="mode", doc="mode", default="0644")
|
option_9.impl_set_information('source', "file")
|
||||||
option_14 = FilenameOption(name="name", doc="name", default="/etc/file")
|
|
||||||
option_15 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_16 = StrOption(name="source", doc="source", default="file")
|
|
||||||
option_17 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue("oui")})))
|
|
||||||
option_9 = OptionDescription(name="file", doc="file", children=[option_10, option_11, option_12, option_13, option_14, option_15, option_16, option_17])
|
|
||||||
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
||||||
option_18 = BoolOption(name="activate", doc="activate", default=True)
|
option_12 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_19 = BoolOption(name="manage", doc="manage", default=True)
|
option_13 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
|
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_12, option_13])
|
||||||
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
||||||
|
|
|
@ -11,66 +11,18 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.name": {
|
"services.test.files.file1.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file1"
|
"value": "/tmp/file1"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file1"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.activate": {
|
"services.test.files.file1.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
},
|
},
|
||||||
"services.test.files.file2.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.name": {
|
"services.test.files.file2.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file2"
|
"value": "/tmp/file2"
|
||||||
},
|
},
|
||||||
"services.test.files.file2.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file2"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.activate": {
|
"services.test.files.file2.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -2,21 +2,9 @@
|
||||||
"rougail.general.condition": "non",
|
"rougail.general.condition": "non",
|
||||||
"rougail.general.mode_conteneur_actif": "non",
|
"rougail.general.mode_conteneur_actif": "non",
|
||||||
"rougail.general.mode_conteneur_actif2": "non",
|
"rougail.general.mode_conteneur_actif2": "non",
|
||||||
"services.test.files.file1.engine": "creole",
|
|
||||||
"services.test.files.file1.group": "root",
|
|
||||||
"services.test.files.file1.included": "no",
|
|
||||||
"services.test.files.file1.mode": "0644",
|
|
||||||
"services.test.files.file1.name": "/tmp/file1",
|
"services.test.files.file1.name": "/tmp/file1",
|
||||||
"services.test.files.file1.owner": "root",
|
|
||||||
"services.test.files.file1.source": "file1",
|
|
||||||
"services.test.files.file1.activate": true,
|
"services.test.files.file1.activate": true,
|
||||||
"services.test.files.file2.engine": "creole",
|
|
||||||
"services.test.files.file2.group": "root",
|
|
||||||
"services.test.files.file2.included": "no",
|
|
||||||
"services.test.files.file2.mode": "0644",
|
|
||||||
"services.test.files.file2.name": "/tmp/file2",
|
"services.test.files.file2.name": "/tmp/file2",
|
||||||
"services.test.files.file2.owner": "root",
|
|
||||||
"services.test.files.file2.source": "file2",
|
|
||||||
"services.test.files.file2.activate": true,
|
"services.test.files.file2.activate": true,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -11,66 +11,18 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.name": {
|
"services.test.files.file1.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file1"
|
"value": "/tmp/file1"
|
||||||
},
|
},
|
||||||
"services.test.files.file1.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file1"
|
|
||||||
},
|
|
||||||
"services.test.files.file1.activate": {
|
"services.test.files.file1.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
},
|
},
|
||||||
"services.test.files.file2.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.name": {
|
"services.test.files.file2.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file2"
|
"value": "/tmp/file2"
|
||||||
},
|
},
|
||||||
"services.test.files.file2.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file2"
|
|
||||||
},
|
|
||||||
"services.test.files.file2.activate": {
|
"services.test.files.file2.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": true
|
"value": true
|
||||||
|
|
|
@ -16,27 +16,17 @@ option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non"
|
||||||
option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")}))}))
|
option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"mandatory", "normal", Calculation(func.calc_value, Params(ParamValue('disabled'), kwargs={'condition': ParamOption(option_3, todict=True, notraisepropertyerror=True), 'expected': ParamValue("oui")}))}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_10 = StrOption(name="engine", doc="engine", default="creole")
|
option_10 = FilenameOption(name="name", doc="name", default="/tmp/file1")
|
||||||
option_11 = StrOption(name="group", doc="group", default="root")
|
option_11 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue("oui")})))
|
||||||
option_12 = StrOption(name="included", doc="included", default="no")
|
option_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11])
|
||||||
option_13 = StrOption(name="mode", doc="mode", default="0644")
|
option_9.impl_set_information('source', "file1")
|
||||||
option_14 = FilenameOption(name="name", doc="name", default="/tmp/file1")
|
option_13 = FilenameOption(name="name", doc="name", default="/tmp/file2")
|
||||||
option_15 = StrOption(name="owner", doc="owner", default="root")
|
option_14 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue("oui")})))
|
||||||
option_16 = StrOption(name="source", doc="source", default="file1")
|
option_12 = OptionDescription(name="file2", doc="file2", children=[option_13, option_14])
|
||||||
option_17 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue("oui")})))
|
option_12.impl_set_information('source', "file2")
|
||||||
option_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11, option_12, option_13, option_14, option_15, option_16, option_17])
|
option_8 = OptionDescription(name="files", doc="files", children=[option_9, option_12])
|
||||||
option_19 = StrOption(name="engine", doc="engine", default="creole")
|
option_15 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_20 = StrOption(name="group", doc="group", default="root")
|
option_16 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_21 = StrOption(name="included", doc="included", default="no")
|
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_15, option_16])
|
||||||
option_22 = StrOption(name="mode", doc="mode", default="0644")
|
|
||||||
option_23 = FilenameOption(name="name", doc="name", default="/tmp/file2")
|
|
||||||
option_24 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_25 = StrOption(name="source", doc="source", default="file2")
|
|
||||||
option_26 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue("oui")})))
|
|
||||||
option_18 = OptionDescription(name="file2", doc="file2", children=[option_19, option_20, option_21, option_22, option_23, option_24, option_25, option_26])
|
|
||||||
option_8 = OptionDescription(name="files", doc="files", children=[option_9, option_18])
|
|
||||||
option_27 = BoolOption(name="activate", doc="activate", default=True)
|
|
||||||
option_28 = BoolOption(name="manage", doc="manage", default=True)
|
|
||||||
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_27, option_28])
|
|
||||||
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
||||||
|
|
|
@ -11,34 +11,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.file.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file.name": {
|
"services.test.files.file.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file"
|
"value": "/tmp/file"
|
||||||
},
|
},
|
||||||
"services.test.files.file.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file"
|
|
||||||
},
|
|
||||||
"services.test.files.file.activate": {
|
"services.test.files.file.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": false
|
"value": false
|
||||||
|
|
|
@ -2,13 +2,7 @@
|
||||||
"rougail.general.condition": "non",
|
"rougail.general.condition": "non",
|
||||||
"rougail.general.mode_conteneur_actif": "non",
|
"rougail.general.mode_conteneur_actif": "non",
|
||||||
"rougail.general.mode_conteneur_actif2": "non",
|
"rougail.general.mode_conteneur_actif2": "non",
|
||||||
"services.test.files.file.engine": "creole",
|
|
||||||
"services.test.files.file.group": "root",
|
|
||||||
"services.test.files.file.included": "no",
|
|
||||||
"services.test.files.file.mode": "0644",
|
|
||||||
"services.test.files.file.name": "/tmp/file",
|
"services.test.files.file.name": "/tmp/file",
|
||||||
"services.test.files.file.owner": "root",
|
|
||||||
"services.test.files.file.source": "file",
|
|
||||||
"services.test.files.file.activate": false,
|
"services.test.files.file.activate": false,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -11,34 +11,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.file.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file.name": {
|
"services.test.files.file.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file"
|
"value": "/tmp/file"
|
||||||
},
|
},
|
||||||
"services.test.files.file.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file"
|
|
||||||
},
|
|
||||||
"services.test.files.file.activate": {
|
"services.test.files.file.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": false
|
"value": false
|
||||||
|
|
|
@ -16,18 +16,13 @@ option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non"
|
||||||
option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal"}))
|
option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal"}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_10 = StrOption(name="engine", doc="engine", default="creole")
|
option_10 = FilenameOption(name="name", doc="name", default="/tmp/file")
|
||||||
option_11 = StrOption(name="group", doc="group", default="root")
|
option_11 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue("unpossible"), 'reverse_condition_0': ParamValue(True)})))
|
||||||
option_12 = StrOption(name="included", doc="included", default="no")
|
option_9 = OptionDescription(name="file", doc="file", children=[option_10, option_11])
|
||||||
option_13 = StrOption(name="mode", doc="mode", default="0644")
|
option_9.impl_set_information('source', "file")
|
||||||
option_14 = FilenameOption(name="name", doc="name", default="/tmp/file")
|
|
||||||
option_15 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_16 = StrOption(name="source", doc="source", default="file")
|
|
||||||
option_17 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue("unpossible"), 'reverse_condition_0': ParamValue(True)})))
|
|
||||||
option_9 = OptionDescription(name="file", doc="file", children=[option_10, option_11, option_12, option_13, option_14, option_15, option_16, option_17])
|
|
||||||
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
||||||
option_18 = BoolOption(name="activate", doc="activate", default=True)
|
option_12 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_19 = BoolOption(name="manage", doc="manage", default=True)
|
option_13 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
|
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_12, option_13])
|
||||||
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
||||||
|
|
|
@ -11,34 +11,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.file.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file.name": {
|
"services.test.files.file.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file"
|
"value": "/tmp/file"
|
||||||
},
|
},
|
||||||
"services.test.files.file.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file"
|
|
||||||
},
|
|
||||||
"services.test.files.file.activate": {
|
"services.test.files.file.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": false
|
"value": false
|
||||||
|
|
|
@ -2,13 +2,7 @@
|
||||||
"rougail.general.condition": "non",
|
"rougail.general.condition": "non",
|
||||||
"rougail.general.mode_conteneur_actif": "non",
|
"rougail.general.mode_conteneur_actif": "non",
|
||||||
"rougail.general.mode_conteneur_actif2": "non",
|
"rougail.general.mode_conteneur_actif2": "non",
|
||||||
"services.test.files.file.engine": "creole",
|
|
||||||
"services.test.files.file.group": "root",
|
|
||||||
"services.test.files.file.included": "no",
|
|
||||||
"services.test.files.file.mode": "0644",
|
|
||||||
"services.test.files.file.name": "/tmp/file",
|
"services.test.files.file.name": "/tmp/file",
|
||||||
"services.test.files.file.owner": "root",
|
|
||||||
"services.test.files.file.source": "file",
|
|
||||||
"services.test.files.file.activate": false,
|
"services.test.files.file.activate": false,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -11,34 +11,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.file.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file.name": {
|
"services.test.files.file.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file"
|
"value": "/tmp/file"
|
||||||
},
|
},
|
||||||
"services.test.files.file.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file"
|
|
||||||
},
|
|
||||||
"services.test.files.file.activate": {
|
"services.test.files.file.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": false
|
"value": false
|
||||||
|
|
|
@ -16,18 +16,13 @@ option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non"
|
||||||
option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal"}))
|
option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal"}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_10 = StrOption(name="engine", doc="engine", default="creole")
|
option_10 = FilenameOption(name="name", doc="name", default="/tmp/file")
|
||||||
option_11 = StrOption(name="group", doc="group", default="root")
|
option_11 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue("unpossible"), 'reverse_condition_0': ParamValue(True)})))
|
||||||
option_12 = StrOption(name="included", doc="included", default="no")
|
option_9 = OptionDescription(name="file", doc="file", children=[option_10, option_11])
|
||||||
option_13 = StrOption(name="mode", doc="mode", default="0644")
|
option_9.impl_set_information('source', "file")
|
||||||
option_14 = FilenameOption(name="name", doc="name", default="/tmp/file")
|
|
||||||
option_15 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_16 = StrOption(name="source", doc="source", default="file")
|
|
||||||
option_17 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue("unpossible"), 'reverse_condition_0': ParamValue(True)})))
|
|
||||||
option_9 = OptionDescription(name="file", doc="file", children=[option_10, option_11, option_12, option_13, option_14, option_15, option_16, option_17])
|
|
||||||
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
||||||
option_18 = BoolOption(name="activate", doc="activate", default=True)
|
option_12 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_19 = BoolOption(name="manage", doc="manage", default=True)
|
option_13 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
|
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_12, option_13])
|
||||||
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
||||||
|
|
|
@ -11,34 +11,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.file.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file.name": {
|
"services.test.files.file.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file"
|
"value": "/tmp/file"
|
||||||
},
|
},
|
||||||
"services.test.files.file.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file"
|
|
||||||
},
|
|
||||||
"services.test.files.file.activate": {
|
"services.test.files.file.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": false
|
"value": false
|
||||||
|
|
|
@ -2,13 +2,7 @@
|
||||||
"rougail.general.condition": "non",
|
"rougail.general.condition": "non",
|
||||||
"rougail.general.mode_conteneur_actif": "non",
|
"rougail.general.mode_conteneur_actif": "non",
|
||||||
"rougail.general.mode_conteneur_actif2": "non",
|
"rougail.general.mode_conteneur_actif2": "non",
|
||||||
"services.test.files.file.engine": "creole",
|
|
||||||
"services.test.files.file.group": "root",
|
|
||||||
"services.test.files.file.included": "no",
|
|
||||||
"services.test.files.file.mode": "0644",
|
|
||||||
"services.test.files.file.name": "/tmp/file",
|
"services.test.files.file.name": "/tmp/file",
|
||||||
"services.test.files.file.owner": "root",
|
|
||||||
"services.test.files.file.source": "file",
|
|
||||||
"services.test.files.file.activate": false,
|
"services.test.files.file.activate": false,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -11,34 +11,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.file.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file.name": {
|
"services.test.files.file.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file"
|
"value": "/tmp/file"
|
||||||
},
|
},
|
||||||
"services.test.files.file.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file"
|
|
||||||
},
|
|
||||||
"services.test.files.file.activate": {
|
"services.test.files.file.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": false
|
"value": false
|
||||||
|
|
|
@ -16,18 +16,13 @@ option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non"
|
||||||
option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal"}))
|
option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal"}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_10 = StrOption(name="engine", doc="engine", default="creole")
|
option_10 = FilenameOption(name="name", doc="name", default="/tmp/file")
|
||||||
option_11 = StrOption(name="group", doc="group", default="root")
|
option_11 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue("unpossible"), 'reverse_condition_0': ParamValue(True), 'condition_1': ParamOption(option_5, notraisepropertyerror=True), 'expected_1': ParamValue("oui"), 'reverse_condition_1': ParamValue(True), 'condition_operator': ParamValue("OR")})))
|
||||||
option_12 = StrOption(name="included", doc="included", default="no")
|
option_9 = OptionDescription(name="file", doc="file", children=[option_10, option_11])
|
||||||
option_13 = StrOption(name="mode", doc="mode", default="0644")
|
option_9.impl_set_information('source', "file")
|
||||||
option_14 = FilenameOption(name="name", doc="name", default="/tmp/file")
|
|
||||||
option_15 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_16 = StrOption(name="source", doc="source", default="file")
|
|
||||||
option_17 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue("unpossible"), 'reverse_condition_0': ParamValue(True), 'condition_1': ParamOption(option_5, notraisepropertyerror=True), 'expected_1': ParamValue("oui"), 'reverse_condition_1': ParamValue(True), 'condition_operator': ParamValue("OR")})))
|
|
||||||
option_9 = OptionDescription(name="file", doc="file", children=[option_10, option_11, option_12, option_13, option_14, option_15, option_16, option_17])
|
|
||||||
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
||||||
option_18 = BoolOption(name="activate", doc="activate", default=True)
|
option_12 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_19 = BoolOption(name="manage", doc="manage", default=True)
|
option_13 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
|
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_12, option_13])
|
||||||
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
||||||
|
|
|
@ -11,34 +11,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.file.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file.name": {
|
"services.test.files.file.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file"
|
"value": "/tmp/file"
|
||||||
},
|
},
|
||||||
"services.test.files.file.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file"
|
|
||||||
},
|
|
||||||
"services.test.files.file.activate": {
|
"services.test.files.file.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": false
|
"value": false
|
||||||
|
|
|
@ -2,13 +2,7 @@
|
||||||
"rougail.general.condition": "non",
|
"rougail.general.condition": "non",
|
||||||
"rougail.general.mode_conteneur_actif": "non",
|
"rougail.general.mode_conteneur_actif": "non",
|
||||||
"rougail.general.mode_conteneur_actif2": "non",
|
"rougail.general.mode_conteneur_actif2": "non",
|
||||||
"services.test.files.file.engine": "creole",
|
|
||||||
"services.test.files.file.group": "root",
|
|
||||||
"services.test.files.file.included": "no",
|
|
||||||
"services.test.files.file.mode": "0644",
|
|
||||||
"services.test.files.file.name": "/tmp/file",
|
"services.test.files.file.name": "/tmp/file",
|
||||||
"services.test.files.file.owner": "root",
|
|
||||||
"services.test.files.file.source": "file",
|
|
||||||
"services.test.files.file.activate": false,
|
"services.test.files.file.activate": false,
|
||||||
"services.test.activate": true,
|
"services.test.activate": true,
|
||||||
"services.test.manage": true
|
"services.test.manage": true
|
||||||
|
|
|
@ -11,34 +11,10 @@
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "non"
|
"value": "non"
|
||||||
},
|
},
|
||||||
"services.test.files.file.engine": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "creole"
|
|
||||||
},
|
|
||||||
"services.test.files.file.group": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.included": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "no"
|
|
||||||
},
|
|
||||||
"services.test.files.file.mode": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "0644"
|
|
||||||
},
|
|
||||||
"services.test.files.file.name": {
|
"services.test.files.file.name": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": "/tmp/file"
|
"value": "/tmp/file"
|
||||||
},
|
},
|
||||||
"services.test.files.file.owner": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "root"
|
|
||||||
},
|
|
||||||
"services.test.files.file.source": {
|
|
||||||
"owner": "default",
|
|
||||||
"value": "file"
|
|
||||||
},
|
|
||||||
"services.test.files.file.activate": {
|
"services.test.files.file.activate": {
|
||||||
"owner": "default",
|
"owner": "default",
|
||||||
"value": false
|
"value": false
|
||||||
|
|
|
@ -16,18 +16,13 @@ option_4 = StrOption(name="mode_conteneur_actif", doc="No change", default="non"
|
||||||
option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal"}))
|
option_5 = StrOption(name="mode_conteneur_actif2", doc="No change", default="non", properties=frozenset({"force_default_on_freeze", "frozen", "hidden", "mandatory", "normal"}))
|
||||||
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
option_2 = OptionDescription(name="general", doc="general", children=[option_3, option_4, option_5], properties=frozenset({"normal"}))
|
||||||
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
option_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
|
||||||
option_10 = StrOption(name="engine", doc="engine", default="creole")
|
option_10 = FilenameOption(name="name", doc="name", default="/tmp/file")
|
||||||
option_11 = StrOption(name="group", doc="group", default="root")
|
option_11 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue("statique"), 'reverse_condition_0': ParamValue(True)})))
|
||||||
option_12 = StrOption(name="included", doc="included", default="no")
|
option_9 = OptionDescription(name="file", doc="file", children=[option_10, option_11])
|
||||||
option_13 = StrOption(name="mode", doc="mode", default="0644")
|
option_9.impl_set_information('source', "file")
|
||||||
option_14 = FilenameOption(name="name", doc="name", default="/tmp/file")
|
|
||||||
option_15 = StrOption(name="owner", doc="owner", default="root")
|
|
||||||
option_16 = StrOption(name="source", doc="source", default="file")
|
|
||||||
option_17 = BoolOption(name="activate", doc="activate", default=Calculation(func.calc_value, Params((ParamValue(False)), kwargs={'default': ParamValue(True), 'condition_0': ParamOption(option_3, notraisepropertyerror=True), 'expected_0': ParamValue("statique"), 'reverse_condition_0': ParamValue(True)})))
|
|
||||||
option_9 = OptionDescription(name="file", doc="file", children=[option_10, option_11, option_12, option_13, option_14, option_15, option_16, option_17])
|
|
||||||
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
|
||||||
option_18 = BoolOption(name="activate", doc="activate", default=True)
|
option_12 = BoolOption(name="activate", doc="activate", default=True)
|
||||||
option_19 = BoolOption(name="manage", doc="manage", default=True)
|
option_13 = BoolOption(name="manage", doc="manage", default=True)
|
||||||
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
|
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_12, option_13])
|
||||||
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
option_6 = OptionDescription(name="services", doc="services", children=[option_7], properties=frozenset({"hidden"}))
|
||||||
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue