Compare commits

..

5 Commits

201 changed files with 990 additions and 3967 deletions

View File

@ -14,7 +14,9 @@ Pour modifier il suffit de faire :
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 :
@ -36,7 +38,7 @@ RougailConfig['extra_dictionaries']['example'] = ['/dir1', '/dir2']
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.
@ -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".
## 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 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 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 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".
## Les modes
### Les modes
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".
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 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 nom des fonctions internes
### Le nom des fonctions internes
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".

View File

@ -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".
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>
```
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
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>
```
Il est possible de personnaliser le moteur par défaut dans la [configuration de rougail](../dev/config.md)
## Inclusion de template
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.
Il est possible de personnaliser les methodes d'inclusion par défaut dans la [configuration de rougail](../dev/config.md)

View File

@ -41,3 +41,5 @@ Ou d'utiliser le moteur "jinja2" :
```
<override engine="jinja2"/>
```
Il est possible de personnaliser le moteur par défaut dans la [configuration de rougail](../dev/config.md)

View File

@ -74,15 +74,15 @@ Voici un exemple de définition d'une variable meneuse et de deux variables mene
</variables>
<constraints>
<group leader="example.family.leader">
<follower>example.family.follower1</follower>
<follower>example.family.follower2</follower>
<follower>follower1</follower>
<follower>follower2</follower>
</group>
</constraints>
```
Le chemin de la variable meneuse est traditionnel, par contre le chemin des variables suiveuses n'est pas le chemin définitif de la variable.
Le chemin de la variable meneuse est traditionnel, par contre le chemin des variables suiveuses est le chemin relatif de la variable.
Le chemin d'une variable suiveuse est normalement "example.family.leader.follower1" mais la variable n'est pas encore une variable suiveuse à ce moment là du traitement. C'est pour cela qu'il ne faut, uniquement dans les groupes, mettre le nom de la variable meneuse dans le chemin.
Le chemin d'une variable suiveuse est normalement "example.family.leader.follower1" mais la variable n'est pas encore une variable suiveuse à ce moment là du traitement. C'est pour cela qu'il ne faut, uniquement dans les groupes, mettre le nom de la variable suiveuse.
## Ajout d'une nouvelle variable suiveuse

View File

@ -24,34 +24,44 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
"""
from .group import GroupAnnotator
from .service import ServiceAnnotator
from .variable import VariableAnnotator, CONVERT_OPTION
from .check import CheckAnnotator
from .value import ValueAnnotator
from .condition import ConditionAnnotator
from .fill import FillAnnotator
from .family import FamilyAnnotator
from .property import PropertyAnnotator
from .variable import CONVERT_OPTION
import importlib.resources
from ..utils import load_modules
ANNOTATORS = None
def get_level(module):
return module.level
def get_annotators(annotators, module_name):
annotators[module_name] = []
for pathobj in importlib.resources.files(module_name).iterdir():
path = str(pathobj)
if not path.endswith('__') and not path.endswith('__.py'):
module = load_modules(path)
if 'Annotator' in dir(module):
annotators[module_name].append(module.Annotator)
class SpaceAnnotator: # pylint: disable=R0903
"""Transformations applied on a object instance
"""
def __init__(self, objectspace, eosfunc_file):
self.objectspace = objectspace
GroupAnnotator(objectspace)
ServiceAnnotator(objectspace)
VariableAnnotator(objectspace)
CheckAnnotator(objectspace,
eosfunc_file,
)
ConditionAnnotator(objectspace)
FillAnnotator(objectspace,
eosfunc_file,
)
ValueAnnotator(objectspace)
FamilyAnnotator(objectspace)
PropertyAnnotator(objectspace)
global ANNOTATORS
if ANNOTATORS is None:
ANNOTATORS = {}
get_annotators(ANNOTATORS, 'rougail.annotator')
for extra_annotator in objectspace.rougailconfig['extra_annotators']:
get_annotators(ANNOTATORS, extra_annotator)
annotators = ANNOTATORS['rougail.annotator'].copy()
for extra_annotator in objectspace.rougailconfig['extra_annotators']:
annotators.extend(ANNOTATORS[extra_annotator])
annotators = sorted(annotators, key=get_level)
for annotator in annotators:
annotator(objectspace, eosfunc_file)
__all__ = ('SpaceAnnotator', 'CONVERT_OPTION')

View File

@ -26,21 +26,23 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
"""
from typing import List, Any
from .target import TargetAnnotator
from .param import ParamAnnotator
from rougail.annotator.target import TargetAnnotator
from rougail.annotator.param import ParamAnnotator
from ..utils import load_modules
from ..i18n import _
from ..error import DictConsistencyError, display_xmlfiles
from rougail.utils import load_modules
from rougail.i18n import _
from rougail.error import DictConsistencyError, display_xmlfiles
INTERNAL_FUNCTIONS = ['valid_enum', 'valid_in_network', 'valid_differ', 'valid_entier']
class CheckAnnotator(TargetAnnotator, ParamAnnotator):
class Annotator(TargetAnnotator, ParamAnnotator):
"""Annotate check
"""
level = 40
def __init__(self,
objectspace,
eosfunc_file,
*args,
):
if not hasattr(objectspace.space, 'constraints') or \
not hasattr(objectspace.space.constraints, 'check'):

View File

@ -27,19 +27,21 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from typing import List
from ..i18n import _
from ..error import DictConsistencyError
from rougail.i18n import _
from rougail.error import DictConsistencyError
from .target import TargetAnnotator
from .param import ParamAnnotator
from .variable import Walk
from rougail.annotator.target import TargetAnnotator
from rougail.annotator.param import ParamAnnotator
from rougail.annotator.variable import Walk
class ConditionAnnotator(TargetAnnotator, ParamAnnotator, Walk):
class Annotator(TargetAnnotator, ParamAnnotator, Walk):
"""Annotate condition
"""
level = 50
def __init__(self,
objectspace,
*args,
):
self.objectspace = objectspace
self.force_service_value = {}

View File

@ -24,9 +24,9 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
"""
from ..i18n import _
from ..error import DictConsistencyError
from .variable import Walk
from rougail.i18n import _
from rougail.error import DictConsistencyError
from rougail.annotator.variable import Walk
class Mode: # pylint: disable=R0903
@ -43,11 +43,13 @@ class Mode: # pylint: disable=R0903
return other.level < self.level
class FamilyAnnotator(Walk):
class Annotator(Walk):
"""Annotate family
"""
level = 80
def __init__(self,
objectspace,
*args,
):
self.objectspace = objectspace
if not hasattr(self.objectspace.space, 'variables'):
@ -74,6 +76,7 @@ class FamilyAnnotator(Walk):
def remove_empty_families(self) -> None:
"""Remove all families without any variable
"""
#FIXME pas sous family
for families in self.objectspace.space.variables.values():
removed_families = []
for family_name, family in families.variable.items():

View File

@ -24,28 +24,30 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
"""
from ..utils import load_modules
from ..i18n import _
from ..error import DictConsistencyError
from rougail.utils import load_modules
from rougail.i18n import _
from rougail.error import DictConsistencyError
from .target import TargetAnnotator
from .param import ParamAnnotator
from rougail.annotator.target import TargetAnnotator
from rougail.annotator.param import ParamAnnotator
CALC_MULTI = ('calc_value', 'calc_list', 'get_range', 'calc_val_first_value', 'unbound_filename')
class FillAnnotator(TargetAnnotator, ParamAnnotator):
class Annotator(TargetAnnotator, ParamAnnotator):
"""Fill annotator
"""
level = 60
def __init__(self,
objectspace,
eosfunc_file,
*args,
):
self.objectspace = objectspace
if not hasattr(objectspace.space, 'constraints') or \
not hasattr(self.objectspace.space.constraints, 'fill'):
not hasattr(objectspace.space.constraints, 'fill'):
return
self.objectspace = objectspace
self.functions = dir(load_modules(eosfunc_file))
self.functions.extend(self.objectspace.rougailconfig['internal_functions'])
self.target_is_uniq = True
@ -68,12 +70,11 @@ class FillAnnotator(TargetAnnotator, ParamAnnotator):
"""valid and manage <fill>
"""
for fill in self.objectspace.space.constraints.fill:
for target in fill.target:
# test if the function exists
if fill.name not in self.functions:
msg = _(f'cannot find fill function "{fill.name}"')
raise DictConsistencyError(msg, 25, fill.xmlfiles)
for target in fill.target:
# create an object value
value = self.objectspace.value(fill.xmlfiles)
value.type = 'calculation'
@ -87,7 +88,6 @@ class FillAnnotator(TargetAnnotator, ParamAnnotator):
target.name.default = value
else:
target.name.value = [value]
# manage params
if hasattr(fill, 'param') and fill.param:
value.param = fill.param

View File

@ -24,16 +24,18 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
"""
from ..i18n import _
from ..error import DictConsistencyError
from ..utils import normalize_family
from rougail.i18n import _
from rougail.error import DictConsistencyError
from rougail.utils import normalize_family
class GroupAnnotator:
class Annotator:
"""Annotate group
"""
level = 10
def __init__(self,
objectspace,
*args,
):
self.objectspace = objectspace
if not hasattr(self.objectspace.space, 'constraints') or \

View File

@ -29,10 +29,10 @@ try:
except ModuleNotFoundError:
import tiramisu
from .variable import CONVERT_OPTION
from rougail.annotator.variable import CONVERT_OPTION
from ..i18n import _
from ..error import DictConsistencyError
from rougail.i18n import _
from rougail.error import DictConsistencyError
class ParamAnnotator:

View File

@ -24,19 +24,23 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
"""
from ..i18n import _
from ..error import DictConsistencyError
from .variable import Walk
from rougail.i18n import _
from rougail.error import DictConsistencyError
from rougail.annotator.variable import Walk
PROPERTIES = ('hidden', 'frozen', 'force_default_on_freeze',
'force_store_value', 'disabled', 'mandatory')
class PropertyAnnotator(Walk):
class Annotator(Walk):
"""Annotate properties
"""
def __init__(self, objectspace):
level = 90
def __init__(self,
objectspace,
*args
) -> None:
self.objectspace = objectspace
if hasattr(self.objectspace.space, 'services'):
self.convert_services()

View File

@ -27,10 +27,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
from os.path import basename
from typing import Tuple
from ..i18n import _
from ..utils import normalize_family
from ..error import DictConsistencyError
from ..config import RougailConfig
from rougail.i18n import _
from rougail.utils import normalize_family
from rougail.error import DictConsistencyError
# a object's attribute has some annotations
# that shall not be present in the exported (flatened) XML
ERASED_ATTRIBUTES = ('redefine', 'exists', 'optional', 'remove_check', 'namespace',
@ -40,7 +39,7 @@ ERASED_ATTRIBUTES = ('redefine', 'exists', 'optional', 'remove_check', 'namespac
ALLOW_ATTRIBUT_NOT_MANAGE = ['file']
class ServiceAnnotator:
class Annotator:
"""Manage service's object
for example::
<services>
@ -50,7 +49,11 @@ class ServiceAnnotator:
</service>
</services>
"""
def __init__(self, objectspace):
level = 20
def __init__(self,
objectspace,
*args,
) -> None:
self.objectspace = objectspace
self.uniq_overrides = []
if 'network_type' not in self.objectspace.types:
@ -97,6 +100,7 @@ class ServiceAnnotator:
family = self._gen_family(eltname,
path,
service.xmlfiles,
with_informations=False,
)
if isinstance(values, dict):
values = list(values.values())
@ -165,7 +169,8 @@ class ServiceAnnotator:
dtd_key_type = elttype + '_type'
else:
dtd_key_type = key + '_type'
elt_type = getattr(elt, dtd_key_type, 'string')
elt_type = getattr(elt, dtd_key_type, None)
if elt_type:
if elt_type == 'variable':
elt_type = 'symlink'
family.variable.append(self._generate_element(elt_type,
@ -176,6 +181,9 @@ class ServiceAnnotator:
elt,
f'{subpath}.{key}'
))
else:
setattr(family.information, key, value)
family.variable.append(activate_obj)
families.append(family)
return families
@ -205,7 +213,8 @@ class ServiceAnnotator:
def _gen_family(self,
name,
path,
xmlfiles
xmlfiles,
with_informations=True,
):
family = self.objectspace.family(xmlfiles)
family.name = normalize_family(name)
@ -216,6 +225,8 @@ class ServiceAnnotator:
family,
None,
)
if with_informations:
family.information = self.objectspace.information(xmlfiles)
return family
def _generate_element(self,
@ -263,8 +274,6 @@ class ServiceAnnotator:
raise DictConsistencyError(msg, 69, override.xmlfiles)
self.uniq_overrides.append(service_name)
override.name = service_name
if not hasattr(override, 'engine'):
override.engine = RougailConfig['default_engine']
if not hasattr(override, 'source'):
override.source = f'{service_name}.service'
@ -279,8 +288,6 @@ class ServiceAnnotator:
msg = _(f'attribute "source" is mandatory for the file "{file_.name}" '
f'"({service_name})"')
raise DictConsistencyError(msg, 34, file_.xmlfiles)
if not hasattr(file_, 'engine'):
file_.engine = RougailConfig['default_engine']
def _update_ip(self,
ip,

View File

@ -24,8 +24,8 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
"""
from ..i18n import _
from ..error import DictConsistencyError
from rougail.i18n import _
from rougail.error import DictConsistencyError
class TargetAnnotator:

View File

@ -24,16 +24,18 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
"""
from .variable import Walk
from rougail.annotator.variable import Walk
from ..i18n import _
from ..error import DictConsistencyError
from rougail.i18n import _
from rougail.error import DictConsistencyError
class ValueAnnotator(Walk): # pylint: disable=R0903
class Annotator(Walk): # pylint: disable=R0903
"""Annotate value
"""
level = 70
def __init__(self,
objectspace,
*args,
) -> None:
if not hasattr(objectspace.space, 'variables'):
return

View File

@ -25,9 +25,9 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
"""
from ..i18n import _
from ..error import DictConsistencyError
from ..objspace import convert_boolean
from rougail.i18n import _
from rougail.error import DictConsistencyError
from rougail.objspace import convert_boolean
CONVERT_OPTION = {'number': dict(opttype="IntOption", func=int),
@ -111,11 +111,13 @@ class Walk:
yield from self._get_families(fam)
class VariableAnnotator(Walk): # pylint: disable=R0903
class Annotator(Walk): # pylint: disable=R0903
"""Annotate variable
"""
level = 30
def __init__(self,
objectspace,
*args,
):
if not hasattr(objectspace.space, 'variables'):
return
@ -229,12 +231,9 @@ class VariableAnnotator(Walk): # pylint: disable=R0903
"""Convert variable help
"""
for variable in self.get_variables():
if not hasattr(variable, 'help'):
continue
if not hasattr(variable, 'information'):
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
del variable.help

View File

@ -42,9 +42,15 @@ RougailConfig = {'dictionaries_dir': [join(ROUGAILROOT, 'dictionaries')],
'functions_file': join(ROUGAILROOT, 'functions.py'),
'variable_namespace': 'rougail',
'auto_freeze_variable': 'server_deployed',
'default_engine': 'creole',
'internal_functions': [],
'extra_annotators': [],
'modes_level': ['basic', 'normal', 'expert'],
'default_family_mode': 'basic',
'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',
}

View File

@ -62,13 +62,13 @@
<!ATTLIST file variable CDATA #IMPLIED>
<!ATTLIST file variable_type (variable) "variable">
<!ATTLIST file source CDATA #IMPLIED>
<!ATTLIST file mode CDATA "0644">
<!ATTLIST file owner CDATA "root">
<!ATTLIST file group CDATA "root">
<!ATTLIST file mode CDATA #IMPLIED>
<!ATTLIST file owner CDATA #IMPLIED>
<!ATTLIST file group CDATA #IMPLIED>
<!ATTLIST file filelist CDATA #IMPLIED>
<!ATTLIST file redefine (True|False) "False">
<!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>
<!ATTLIST override source CDATA #IMPLIED>
@ -83,6 +83,7 @@
<!ATTLIST family mode CDATA #IMPLIED>
<!ATTLIST family hidden (True|False) "False">
<!ATTLIST family dynamic CDATA #IMPLIED>
<!ATTLIST family provider CDATA #IMPLIED>
<!ELEMENT variable (value*)>
<!ATTLIST variable name CDATA #REQUIRED>
@ -101,6 +102,7 @@
<!ATTLIST variable remove_check (True|False) "False">
<!ATTLIST variable remove_condition (True|False) "False">
<!ATTLIST variable remove_fill (True|False) "False">
<!ATTLIST variable provider CDATA #IMPLIED>
<!ATTLIST variable test CDATA #IMPLIED>
<!ELEMENT value (#PCDATA)>

View File

@ -34,10 +34,10 @@ from os.path import dirname, join, isfile, isdir, abspath
try:
from tiramisu3 import Config
from tiramisu3 import Config, undefined
from tiramisu3.error import PropertiesOptionError # pragma: no cover
except ModuleNotFoundError: # pragma: no cover
from tiramisu import Config
from tiramisu import Config, undefined
from tiramisu.error import PropertiesOptionError
from ..config import RougailConfig
@ -55,6 +55,11 @@ log = logging.getLogger(__name__)
log.addHandler(logging.NullHandler())
INFORMATIONS = {'files': ['source', 'mode', 'owner', 'group', 'engine', 'included'],
'overrides': ['name', 'source', 'engine'],
}
class RougailLeaderIndex:
"""This object is create when access to a specified Index of the variable
"""
@ -69,12 +74,21 @@ class RougailLeaderIndex:
def __getattr__(self, name):
if name not in self._follower:
raise AttributeError()
raise AttributeError(f'unable to find follower "{name}"')
value = self._follower[name]
if isinstance(value, PropertiesOptionError):
raise AttributeError()
raise AttributeError(f'unable to access to follower "{name}": {value}')
return value
def __getitem__(self, name):
return self.__getattr__(name)
def __contains__(self, name):
if self._follower.__contains__(name):
value = self._follower[name]
return not isinstance(value, PropertiesOptionError)
return False
def __str__(self):
return str(self._value)
@ -108,10 +122,11 @@ class RougailLeader:
For examples: %%leader, %%leader[0].follower1
"""
def __init__(self,
leader_name,
value,
) -> None:
self._value = value
self._follower = {}
self._follower = {leader_name: value}
def __getitem__(self, index):
"""Get a leader.follower at requested index.
@ -136,7 +151,7 @@ class RougailLeader:
def __contains__(self, value):
return self._value.__contains__(value)
async def add_follower(self,
async def _add_follower(self,
config,
name: str,
path: str,
@ -157,22 +172,26 @@ class RougailExtra:
For example %%extra1.family.variable
"""
def __init__(self,
suboption: Dict) -> None:
self.suboption = suboption
suboption: Dict,
) -> None:
self._suboption = suboption
def __getattr__(self,
key: str,
) -> Any:
try:
return self.suboption[key]
return self._suboption[key]
except KeyError:
raise AttributeError(f'unable to find extra "{key}"')
def __iter__(self):
return iter(self.suboption.values())
return iter(self._suboption.values())
def items(self):
return self.suboption.items()
return self._suboption.items()
def __str__(self):
return f'<extra object with: {self._suboption}>'
class RougailBaseTemplate:
@ -286,9 +305,14 @@ class RougailBaseTemplate:
chdir(self.templates_dir)
for option in await self.config.option.list(type='all'):
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,
is_var_namespace,
is_variable_namespace,
is_service_namespace,
)
for template in listdir('.'):
self.prepare_template(template)
@ -303,6 +327,7 @@ class RougailBaseTemplate:
type_ = await fills.option.name()
for fill_obj in await fills.list('all'):
fill = await fill_obj.value.dict()
await self.get_informations(type_, fill, fill_obj)
if 'included' in fill:
if (fill['included'] == 'no' and included is True) or \
(fill['included'] != 'no' and included is False):
@ -317,6 +342,19 @@ class RougailBaseTemplate:
self.post_instance()
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,
service_name: str,
):
@ -345,7 +383,8 @@ class RougailBaseTemplate:
async def load_variables(self,
optiondescription,
is_variable_namespace,
is_variable_namespace: str,
is_service_namespace: str,
) -> RougailExtra:
"""Load all variables and set it in RougailExtra objects
"""
@ -355,19 +394,30 @@ class RougailBaseTemplate:
if await option.option.isleadership():
for idx, suboption in enumerate(await option.list('all')):
if idx == 0:
leader = RougailLeader(await suboption.value.get())
leader_name = await suboption.option.name()
leader = RougailLeader(leader_name, await suboption.value.get())
leadership_name = await option.option.name()
if is_variable_namespace:
self.rougail_variables_dict[await suboption.option.name()] = leader
else:
await leader.add_follower(self.config,
await leader._add_follower(self.config,
await suboption.option.name(),
await suboption.option.path(),
)
variables[leader_name] = leader
variables[leadership_name] = leader
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,
is_variable_namespace,
new_is_service_namespace,
)
variables[await option.option.name()] = subfamilies
else:
@ -382,4 +432,9 @@ class RougailBaseTemplate:
else:
value = await option.value.get()
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)

View File

@ -3,66 +3,18 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -1,20 +1,8 @@
{
"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.owner": "root",
"services.test.files.file.source": "file",
"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.owner": "root",
"services.test.files.file2.source": "file2",
"services.test.files.file2.activate": true,
"services.test.activate": true,
"services.test.manage": true

View File

@ -3,66 +3,18 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -14,27 +14,18 @@ except:
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_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
option_8 = StrOption(name="engine", doc="engine", default="creole")
option_9 = StrOption(name="group", doc="group", default="root")
option_10 = StrOption(name="included", doc="included", default="no")
option_11 = StrOption(name="mode", doc="mode", default="0644")
option_12 = FilenameOption(name="name", doc="name", default="/etc/file")
option_13 = StrOption(name="owner", doc="owner", default="root")
option_14 = StrOption(name="source", doc="source", default="file")
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_17 = StrOption(name="engine", doc="engine", default="jinja2")
option_18 = StrOption(name="group", doc="group", default="root")
option_19 = StrOption(name="included", doc="included", default="no")
option_20 = StrOption(name="mode", doc="mode", default="0644")
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_8 = FilenameOption(name="name", doc="name", default="/etc/file")
option_9 = BoolOption(name="activate", doc="activate", default=True)
option_7 = OptionDescription(name="file", doc="file", children=[option_8, option_9])
option_7.impl_set_information('source', "file")
option_11 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_12 = BoolOption(name="activate", doc="activate", default=True)
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_6 = OptionDescription(name="files", doc="files", children=[option_7, option_10])
option_13 = BoolOption(name="activate", doc="activate", default=True)
option_14 = BoolOption(name="manage", doc="manage", default=True)
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_13, option_14])
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])

View File

@ -3,66 +3,18 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -1,20 +1,8 @@
{
"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.owner": "root",
"services.test.files.file.source": "file",
"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.owner": "root",
"services.test.files.file2.source": "file2",
"services.test.files.file2.activate": true,
"services.test.activate": true,
"services.test.manage": true

View File

@ -3,66 +3,18 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -14,27 +14,18 @@ except:
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_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
option_8 = StrOption(name="engine", doc="engine", default="creole")
option_9 = StrOption(name="group", doc="group", default="root")
option_10 = StrOption(name="included", doc="included", default="no")
option_11 = StrOption(name="mode", doc="mode", default="0644")
option_12 = FilenameOption(name="name", doc="name", default="/etc/file")
option_13 = StrOption(name="owner", doc="owner", default="root")
option_14 = StrOption(name="source", doc="source", default="file")
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_17 = StrOption(name="engine", doc="engine", default="jinja2")
option_18 = StrOption(name="group", doc="group", default="root")
option_19 = StrOption(name="included", doc="included", default="no")
option_20 = StrOption(name="mode", doc="mode", default="0644")
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_8 = FilenameOption(name="name", doc="name", default="/etc/file")
option_9 = BoolOption(name="activate", doc="activate", default=True)
option_7 = OptionDescription(name="file", doc="file", children=[option_8, option_9])
option_7.impl_set_information('source', "file")
option_11 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_12 = BoolOption(name="activate", doc="activate", default=True)
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_6 = OptionDescription(name="files", doc="files", children=[option_7, option_10])
option_13 = BoolOption(name="activate", doc="activate", default=True)
option_14 = BoolOption(name="manage", doc="manage", default=True)
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_13, option_14])
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])

View File

@ -3,98 +3,26 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -1,28 +1,10 @@
{
"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.owner": "root",
"services.test.files.file.source": "file",
"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.owner": "root",
"services.test.files.file2.source": "file2",
"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.owner": "root",
"services.test.files.incfile.source": "incfile",
"services.test.files.incfile.activate": true,
"services.test.activate": true,
"services.test.manage": true

View File

@ -3,98 +3,26 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -14,36 +14,23 @@ except:
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_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
option_8 = StrOption(name="engine", doc="engine", default="creole")
option_9 = StrOption(name="group", doc="group", default="root")
option_10 = StrOption(name="included", doc="included", default="no")
option_11 = StrOption(name="mode", doc="mode", default="0644")
option_12 = FilenameOption(name="name", doc="name", default="/etc/file")
option_13 = StrOption(name="owner", doc="owner", default="root")
option_14 = StrOption(name="source", doc="source", default="file")
option_8 = FilenameOption(name="name", doc="name", default="/etc/file")
option_9 = BoolOption(name="activate", doc="activate", default=True)
option_7 = OptionDescription(name="file", doc="file", children=[option_8, option_9])
option_7.impl_set_information('source', "file")
option_11 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_12 = BoolOption(name="activate", doc="activate", default=True)
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_7 = OptionDescription(name="file", doc="file", children=[option_8, option_9, option_10, option_11, option_12, option_13, option_14, option_15])
option_17 = StrOption(name="engine", doc="engine", default="jinja2")
option_18 = StrOption(name="group", doc="group", default="root")
option_19 = StrOption(name="included", doc="included", default="no")
option_20 = StrOption(name="mode", doc="mode", default="0644")
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_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_13 = OptionDescription(name="incfile", doc="incfile", children=[option_14, option_15])
option_13.impl_set_information('included', "content")
option_13.impl_set_information('source', "incfile")
option_6 = OptionDescription(name="files", doc="files", children=[option_7, option_10, option_13])
option_16 = BoolOption(name="activate", doc="activate", default=True)
option_17 = BoolOption(name="manage", doc="manage", default=True)
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_16, option_17])
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])

View File

@ -3,98 +3,26 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -1,28 +1,10 @@
{
"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.owner": "root",
"services.test.files.file.source": "file",
"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.owner": "root",
"services.test.files.file2.source": "file2",
"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.owner": "root",
"services.test.files.incfile.source": "incfile",
"services.test.files.incfile.activate": true,
"services.test.activate": true,
"services.test.manage": true

View File

@ -3,98 +3,26 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -14,36 +14,23 @@ except:
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_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
option_8 = StrOption(name="engine", doc="engine", default="creole")
option_9 = StrOption(name="group", doc="group", default="root")
option_10 = StrOption(name="included", doc="included", default="no")
option_11 = StrOption(name="mode", doc="mode", default="0644")
option_12 = FilenameOption(name="name", doc="name", default="/etc/file")
option_13 = StrOption(name="owner", doc="owner", default="root")
option_14 = StrOption(name="source", doc="source", default="file")
option_8 = FilenameOption(name="name", doc="name", default="/etc/file")
option_9 = BoolOption(name="activate", doc="activate", default=True)
option_7 = OptionDescription(name="file", doc="file", children=[option_8, option_9])
option_7.impl_set_information('source', "file")
option_11 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_12 = BoolOption(name="activate", doc="activate", default=True)
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_7 = OptionDescription(name="file", doc="file", children=[option_8, option_9, option_10, option_11, option_12, option_13, option_14, option_15])
option_17 = StrOption(name="engine", doc="engine", default="jinja2")
option_18 = StrOption(name="group", doc="group", default="root")
option_19 = StrOption(name="included", doc="included", default="no")
option_20 = StrOption(name="mode", doc="mode", default="0644")
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_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_13 = OptionDescription(name="incfile", doc="incfile", children=[option_14, option_15])
option_13.impl_set_information('included', "name")
option_13.impl_set_information('source', "incfile")
option_6 = OptionDescription(name="files", doc="files", children=[option_7, option_10, option_13])
option_16 = BoolOption(name="activate", doc="activate", default=True)
option_17 = BoolOption(name="manage", doc="manage", default=True)
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_16, option_17])
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])

View File

@ -3,66 +3,18 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -1,20 +1,8 @@
{
"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.owner": "root",
"services.test.files.file.source": "file",
"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.owner": "root",
"services.test.files.file2.source": "file2",
"services.test.files.file2.activate": true,
"services.test.activate": true,
"services.test.manage": true

View File

@ -3,66 +3,18 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -14,27 +14,18 @@ except:
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_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
option_8 = StrOption(name="engine", doc="engine", default="creole")
option_9 = StrOption(name="group", doc="group", default="root")
option_10 = StrOption(name="included", doc="included", default="no")
option_11 = StrOption(name="mode", doc="mode", default="0644")
option_12 = FilenameOption(name="name", doc="name", default="/etc/file")
option_13 = StrOption(name="owner", doc="owner", default="root")
option_14 = StrOption(name="source", doc="source", default="file")
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_17 = StrOption(name="engine", doc="engine", default="jinja2")
option_18 = StrOption(name="group", doc="group", default="root")
option_19 = StrOption(name="included", doc="included", default="no")
option_20 = StrOption(name="mode", doc="mode", default="0644")
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_8 = FilenameOption(name="name", doc="name", default="/etc/file")
option_9 = BoolOption(name="activate", doc="activate", default=True)
option_7 = OptionDescription(name="file", doc="file", children=[option_8, option_9])
option_7.impl_set_information('source', "file")
option_11 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_12 = BoolOption(name="activate", doc="activate", default=True)
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_6 = OptionDescription(name="files", doc="files", children=[option_7, option_10])
option_13 = BoolOption(name="activate", doc="activate", default=True)
option_14 = BoolOption(name="manage", doc="manage", default=True)
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_13, option_14])
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])

View File

@ -3,66 +3,18 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -1,20 +1,8 @@
{
"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.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\\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.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.activate": true,
"services.test.manage": true

View File

@ -3,66 +3,18 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -14,27 +14,18 @@ except:
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_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
option_8 = StrOption(name="engine", doc="engine", default="creole")
option_9 = StrOption(name="group", doc="group", default="root")
option_10 = StrOption(name="included", doc="included", default="no")
option_11 = StrOption(name="mode", doc="mode", default="0644")
option_12 = FilenameOption(name="name", doc="name", default="/etc/systemd-makefs@dev-disk-by\\x2dpartlabel")
option_13 = StrOption(name="owner", doc="owner", default="root")
option_14 = StrOption(name="source", doc="source", default="systemd-makefs@dev-disk-by\\x2dpartlabel")
option_15 = BoolOption(name="activate", doc="activate", default=True)
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_17 = StrOption(name="engine", doc="engine", default="jinja2")
option_18 = StrOption(name="group", doc="group", default="root")
option_19 = StrOption(name="included", doc="included", default="no")
option_20 = StrOption(name="mode", doc="mode", default="0644")
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_8 = FilenameOption(name="name", doc="name", default="/etc/systemd-makefs@dev-disk-by\\x2dpartlabel")
option_9 = BoolOption(name="activate", doc="activate", default=True)
option_7 = OptionDescription(name="systemd_makefs@dev_disk_by\\x2dpartlabel", doc="systemd-makefs@dev-disk-by\\x2dpartlabel", children=[option_8, option_9])
option_7.impl_set_information('source', "systemd-makefs@dev-disk-by\\x2dpartlabel")
option_11 = FilenameOption(name="name", doc="name", default="/etc/systemd-makefs@dev-disk-by\\x2dpartlabel2")
option_12 = BoolOption(name="activate", doc="activate", default=True)
option_10 = OptionDescription(name="systemd_makefs@dev_disk_by\\x2dpartlabel2", doc="systemd-makefs@dev-disk-by\\x2dpartlabel2", children=[option_11, option_12])
option_10.impl_set_information('engine', "jinja2")
option_10.impl_set_information('source', "systemd-makefs@dev-disk-by\\x2dpartlabel2")
option_6 = OptionDescription(name="files", doc="files", children=[option_7, option_10])
option_13 = BoolOption(name="activate", doc="activate", default=True)
option_14 = BoolOption(name="manage", doc="manage", default=True)
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_13, option_14])
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])

View File

@ -11,34 +11,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -2,13 +2,7 @@
"rougail.general.condition": "non",
"rougail.general.mode_conteneur_actif": "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.owner": "root",
"services.test.files.file1.source": "file1",
"services.test.files.file1.activate": true,
"services.test.activate": true,
"services.test.manage": true

View File

@ -11,34 +11,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -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_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_10 = StrOption(name="engine", doc="engine", default="creole")
option_11 = StrOption(name="group", doc="group", default="root")
option_12 = StrOption(name="included", doc="included", default="no")
option_13 = StrOption(name="mode", doc="mode", default="0644")
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_10 = FilenameOption(name="name", doc="name", default="/tmp/file1")
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_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11])
option_9.impl_set_information('source', "file1")
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
option_18 = BoolOption(name="activate", doc="activate", default=True)
option_19 = BoolOption(name="manage", doc="manage", default=True)
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
option_12 = BoolOption(name="activate", doc="activate", default=True)
option_13 = BoolOption(name="manage", doc="manage", default=True)
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_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])

View File

@ -11,34 +11,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -2,13 +2,7 @@
"rougail.general.condition": "no",
"rougail.general.condition2": "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.owner": "root",
"services.test.files.file1.source": "file1",
"services.test.files.file1.activate": true,
"services.test.activate": true,
"services.test.manage": true

View File

@ -11,34 +11,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -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_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_10 = StrOption(name="engine", doc="engine", default="creole")
option_11 = StrOption(name="group", doc="group", default="root")
option_12 = StrOption(name="included", doc="included", default="no")
option_13 = StrOption(name="mode", doc="mode", default="0644")
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_10 = FilenameOption(name="name", doc="name", default="/tmp/file1")
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_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11])
option_9.impl_set_information('source', "file1")
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
option_18 = BoolOption(name="activate", doc="activate", default=True)
option_19 = BoolOption(name="manage", doc="manage", default=True)
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
option_12 = BoolOption(name="activate", doc="activate", default=True)
option_13 = BoolOption(name="manage", doc="manage", default=True)
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_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])

View File

@ -7,34 +7,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": false

View File

@ -1,13 +1,7 @@
{
"rougail.general.condition": "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.owner": "root",
"services.test.files.file1.source": "file1",
"services.test.files.file1.activate": false,
"services.test.activate": true,
"services.test.manage": true

View File

@ -7,34 +7,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": false

View File

@ -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_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_10 = StrOption(name="engine", doc="engine", default="creole")
option_11 = StrOption(name="group", doc="group", default="root")
option_12 = StrOption(name="included", doc="included", default="no")
option_13 = StrOption(name="mode", doc="mode", default="0644")
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_10 = FilenameOption(name="name", doc="name", default="/tmp/file1")
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_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11])
option_9.impl_set_information('source', "file1")
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
option_18 = BoolOption(name="activate", doc="activate", default=True)
option_19 = BoolOption(name="manage", doc="manage", default=True)
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
option_12 = BoolOption(name="activate", doc="activate", default=True)
option_13 = BoolOption(name="manage", doc="manage", default=True)
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_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])

View File

@ -7,34 +7,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -1,13 +1,7 @@
{
"rougail.general.condition": "yes",
"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.owner": "root",
"services.test.files.file1.source": "file1",
"services.test.files.file1.activate": true,
"services.test.activate": true,
"services.test.manage": true

View File

@ -7,34 +7,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -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_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_10 = StrOption(name="engine", doc="engine", default="creole")
option_11 = StrOption(name="group", doc="group", default="root")
option_12 = StrOption(name="included", doc="included", default="no")
option_13 = StrOption(name="mode", doc="mode", default="0644")
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_10 = FilenameOption(name="name", doc="name", default="/tmp/file1")
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_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11])
option_9.impl_set_information('source', "file1")
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
option_18 = BoolOption(name="activate", doc="activate", default=True)
option_19 = BoolOption(name="manage", doc="manage", default=True)
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
option_12 = BoolOption(name="activate", doc="activate", default=True)
option_13 = BoolOption(name="manage", doc="manage", default=True)
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_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])

View File

@ -7,34 +7,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": false

View File

@ -1,13 +1,7 @@
{
"rougail.general.condition": "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.owner": "root",
"services.test.files.file1.source": "file1",
"services.test.files.file1.activate": false,
"services.test.activate": true,
"services.test.manage": true

View File

@ -7,34 +7,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": false

View File

@ -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_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_10 = StrOption(name="engine", doc="engine", default="creole")
option_11 = StrOption(name="group", doc="group", default="root")
option_12 = StrOption(name="included", doc="included", default="no")
option_13 = StrOption(name="mode", doc="mode", default="0644")
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_10 = FilenameOption(name="name", doc="name", default="/tmp/file1")
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_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11])
option_9.impl_set_information('source', "file1")
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
option_18 = BoolOption(name="activate", doc="activate", default=True)
option_19 = BoolOption(name="manage", doc="manage", default=True)
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
option_12 = BoolOption(name="activate", doc="activate", default=True)
option_13 = BoolOption(name="manage", doc="manage", default=True)
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_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])

View File

@ -7,34 +7,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": false

View File

@ -1,13 +1,7 @@
{
"rougail.general.condition": "no",
"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.owner": "root",
"services.test.files.file1.source": "file1",
"services.test.files.file1.activate": false,
"services.test.activate": true,
"services.test.manage": true

View File

@ -7,34 +7,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": false

View File

@ -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_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_10 = StrOption(name="engine", doc="engine", default="creole")
option_11 = StrOption(name="group", doc="group", default="root")
option_12 = StrOption(name="included", doc="included", default="no")
option_13 = StrOption(name="mode", doc="mode", default="0644")
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_10 = FilenameOption(name="name", doc="name", default="/tmp/file1")
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_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11])
option_9.impl_set_information('source', "file1")
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
option_18 = BoolOption(name="activate", doc="activate", default=True)
option_19 = BoolOption(name="manage", doc="manage", default=True)
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
option_12 = BoolOption(name="activate", doc="activate", default=True)
option_13 = BoolOption(name="manage", doc="manage", default=True)
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_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])

View File

@ -3,34 +3,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": false

View File

@ -1,12 +1,6 @@
{
"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.owner": "root",
"services.test.files.file1.source": "file1",
"services.test.files.file1.activate": false,
"services.test.activate": true,
"services.test.manage": true

View File

@ -3,34 +3,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": false

View File

@ -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_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_10 = StrOption(name="engine", doc="engine", default="creole")
option_11 = StrOption(name="group", doc="group", default="root")
option_12 = StrOption(name="included", doc="included", default="no")
option_13 = StrOption(name="mode", doc="mode", default="0644")
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_10 = FilenameOption(name="name", doc="name", default="/tmp/file1")
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_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11])
option_9.impl_set_information('source', "file1")
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
option_18 = BoolOption(name="activate", doc="activate", default=True)
option_19 = BoolOption(name="manage", doc="manage", default=True)
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
option_12 = BoolOption(name="activate", doc="activate", default=True)
option_13 = BoolOption(name="manage", doc="manage", default=True)
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_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])

View File

@ -7,34 +7,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -1,13 +1,7 @@
{
"rougail.general.condition": "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.owner": "root",
"services.test.files.file1.source": "file1",
"services.test.files.file1.activate": true,
"services.test.activate": true,
"services.test.manage": true

View File

@ -7,34 +7,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -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_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_9 = StrOption(name="engine", doc="engine", default="creole")
option_10 = StrOption(name="group", doc="group", default="root")
option_11 = StrOption(name="included", doc="included", default="no")
option_12 = StrOption(name="mode", doc="mode", default="0644")
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_9 = FilenameOption(name="name", doc="name", default="/tmp/file1")
option_10 = BoolOption(name="activate", doc="activate", default=True)
option_8 = OptionDescription(name="file1", doc="file1", children=[option_9, option_10])
option_8.impl_set_information('source', "file1")
option_7 = OptionDescription(name="files", doc="files", children=[option_8])
option_17 = BoolOption(name="activate", doc="activate", default=True)
option_18 = BoolOption(name="manage", doc="manage", default=True)
option_6 = OptionDescription(name="test", doc="test", children=[option_7, option_17, option_18])
option_11 = BoolOption(name="activate", doc="activate", default=True)
option_12 = BoolOption(name="manage", doc="manage", default=True)
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_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_5])

View File

@ -11,34 +11,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -2,13 +2,7 @@
"rougail.general.condition": "non",
"rougail.general.mode_conteneur_actif": "non",
"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.owner": "root",
"services.test.files.file.source": "file",
"services.test.files.file.activate": true,
"services.test.activate": true,
"services.test.manage": true

View File

@ -11,34 +11,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -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_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_10 = StrOption(name="engine", doc="engine", default="creole")
option_11 = StrOption(name="group", doc="group", default="root")
option_12 = StrOption(name="included", doc="included", default="no")
option_13 = StrOption(name="mode", doc="mode", default="0644")
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_10 = FilenameOption(name="name", doc="name", default="/etc/file")
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_9 = OptionDescription(name="file", doc="file", children=[option_10, option_11])
option_9.impl_set_information('source', "file")
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
option_18 = BoolOption(name="activate", doc="activate", default=True)
option_19 = BoolOption(name="manage", doc="manage", default=True)
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
option_12 = BoolOption(name="activate", doc="activate", default=True)
option_13 = BoolOption(name="manage", doc="manage", default=True)
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_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])

View File

@ -3,34 +3,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": false

View File

@ -1,12 +1,6 @@
{
"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.owner": "root",
"services.test.files.file1.source": "file1",
"services.test.files.file1.activate": false,
"services.test.activate": true,
"services.test.manage": true

View File

@ -3,34 +3,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": false

View File

@ -14,18 +14,13 @@ except:
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_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
option_8 = StrOption(name="engine", doc="engine", default="creole")
option_9 = StrOption(name="group", doc="group", default="root")
option_10 = StrOption(name="included", doc="included", default="no")
option_11 = StrOption(name="mode", doc="mode", default="0644")
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_8 = FilenameOption(name="name", doc="name", default="/tmp/file1")
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_7 = OptionDescription(name="file1", doc="file1", children=[option_8, option_9])
option_7.impl_set_information('source', "file1")
option_6 = OptionDescription(name="files", doc="files", children=[option_7])
option_16 = BoolOption(name="activate", doc="activate", default=True)
option_17 = BoolOption(name="manage", doc="manage", default=True)
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_16, option_17])
option_10 = BoolOption(name="activate", doc="activate", default=True)
option_11 = BoolOption(name="manage", doc="manage", default=True)
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_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_4])

View File

@ -3,34 +3,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -1,12 +1,6 @@
{
"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.owner": "root",
"services.test.files.file1.source": "file1",
"services.test.files.file1.activate": true,
"services.test.activate": true,
"services.test.manage": true

View File

@ -3,34 +3,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -14,18 +14,13 @@ except:
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_1 = OptionDescription(name="rougail", doc="rougail", children=[option_2])
option_8 = StrOption(name="engine", doc="engine", default="creole")
option_9 = StrOption(name="group", doc="group", default="root")
option_10 = StrOption(name="included", doc="included", default="no")
option_11 = StrOption(name="mode", doc="mode", default="0644")
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_8 = FilenameOption(name="name", doc="name", default="/tmp/file1")
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_7 = OptionDescription(name="file1", doc="file1", children=[option_8, option_9])
option_7.impl_set_information('source', "file1")
option_6 = OptionDescription(name="files", doc="files", children=[option_7])
option_16 = BoolOption(name="activate", doc="activate", default=True)
option_17 = BoolOption(name="manage", doc="manage", default=True)
option_5 = OptionDescription(name="test", doc="test", children=[option_6, option_16, option_17])
option_10 = BoolOption(name="activate", doc="activate", default=True)
option_11 = BoolOption(name="manage", doc="manage", default=True)
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_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_4])

View File

@ -3,34 +3,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": false

View File

@ -1,12 +1,6 @@
{
"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.owner": "root",
"services.test.files.file.source": "file",
"services.test.files.file.activate": false,
"services.test.activate": true,
"services.test.manage": true

View File

@ -3,34 +3,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": false

View File

@ -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_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_10 = StrOption(name="engine", doc="engine", default="creole")
option_11 = StrOption(name="group", doc="group", default="root")
option_12 = StrOption(name="included", doc="included", default="no")
option_13 = StrOption(name="mode", doc="mode", default="0644")
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_10 = FilenameOption(name="name", doc="name", default="/etc/file")
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_9 = OptionDescription(name="file", doc="file", children=[option_10, option_11])
option_9.impl_set_information('source', "file")
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
option_18 = BoolOption(name="activate", doc="activate", default=True)
option_19 = BoolOption(name="manage", doc="manage", default=True)
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
option_12 = BoolOption(name="activate", doc="activate", default=True)
option_13 = BoolOption(name="manage", doc="manage", default=True)
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_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])

View File

@ -11,66 +11,18 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -2,21 +2,9 @@
"rougail.general.condition": "non",
"rougail.general.mode_conteneur_actif": "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.owner": "root",
"services.test.files.file1.source": "file1",
"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.owner": "root",
"services.test.files.file2.source": "file2",
"services.test.files.file2.activate": true,
"services.test.activate": true,
"services.test.manage": true

View File

@ -11,66 +11,18 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": true

View File

@ -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_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_10 = StrOption(name="engine", doc="engine", default="creole")
option_11 = StrOption(name="group", doc="group", default="root")
option_12 = StrOption(name="included", doc="included", default="no")
option_13 = StrOption(name="mode", doc="mode", default="0644")
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")})))
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_19 = StrOption(name="engine", doc="engine", default="creole")
option_20 = StrOption(name="group", doc="group", default="root")
option_21 = StrOption(name="included", doc="included", default="no")
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_10 = FilenameOption(name="name", doc="name", default="/tmp/file1")
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_9 = OptionDescription(name="file1", doc="file1", children=[option_10, option_11])
option_9.impl_set_information('source', "file1")
option_13 = FilenameOption(name="name", doc="name", default="/tmp/file2")
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_12 = OptionDescription(name="file2", doc="file2", children=[option_13, option_14])
option_12.impl_set_information('source', "file2")
option_8 = OptionDescription(name="files", doc="files", children=[option_9, option_12])
option_15 = BoolOption(name="activate", doc="activate", default=True)
option_16 = BoolOption(name="manage", doc="manage", default=True)
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_15, option_16])
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])

View File

@ -11,34 +11,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": false

View File

@ -2,13 +2,7 @@
"rougail.general.condition": "non",
"rougail.general.mode_conteneur_actif": "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.owner": "root",
"services.test.files.file.source": "file",
"services.test.files.file.activate": false,
"services.test.activate": true,
"services.test.manage": true

View File

@ -11,34 +11,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": false

View File

@ -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_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_10 = StrOption(name="engine", doc="engine", default="creole")
option_11 = StrOption(name="group", doc="group", default="root")
option_12 = StrOption(name="included", doc="included", default="no")
option_13 = StrOption(name="mode", doc="mode", default="0644")
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_10 = FilenameOption(name="name", doc="name", default="/tmp/file")
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_9 = OptionDescription(name="file", doc="file", children=[option_10, option_11])
option_9.impl_set_information('source', "file")
option_8 = OptionDescription(name="files", doc="files", children=[option_9])
option_18 = BoolOption(name="activate", doc="activate", default=True)
option_19 = BoolOption(name="manage", doc="manage", default=True)
option_7 = OptionDescription(name="test", doc="test", children=[option_8, option_18, option_19])
option_12 = BoolOption(name="activate", doc="activate", default=True)
option_13 = BoolOption(name="manage", doc="manage", default=True)
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_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_6])

View File

@ -11,34 +11,10 @@
"owner": "default",
"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": {
"owner": "default",
"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": {
"owner": "default",
"value": false

Some files were not shown because too many files have changed in this diff Show More