<file> is not necessarily a template + add <override> tag to override systemd service
This commit is contained in:
@ -32,6 +32,10 @@
|
||||
<property>mandatory</property>
|
||||
<value>file</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="templating" type="boolean">
|
||||
<property>mandatory</property>
|
||||
<value>True</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="activate" type="boolean">
|
||||
<property>mandatory</property>
|
||||
<property expected="oui" inverse="False" source="creole.general.condition" type="calculation">disabled</property>
|
||||
|
@ -18,7 +18,7 @@
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="name" type="string">
|
||||
<property>mandatory</property>
|
||||
<value>/tmp/file</value>
|
||||
<value>/etc/file</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="owner" type="string">
|
||||
<property>mandatory</property>
|
||||
@ -32,6 +32,10 @@
|
||||
<property>mandatory</property>
|
||||
<value>file</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="templating" type="boolean">
|
||||
<property>mandatory</property>
|
||||
<value>True</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="activate" type="boolean">
|
||||
<property>mandatory</property>
|
||||
<property expected="oui" inverse="False" source="creole.general.condition" type="calculation">disabled</property>
|
||||
|
@ -0,0 +1 @@
|
||||
|
61
tests/templates/20notemplating/00-base.xml
Normal file
61
tests/templates/20notemplating/00-base.xml
Normal file
@ -0,0 +1,61 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<creole>
|
||||
<family name="services">
|
||||
<family name="service0" doc="test">
|
||||
<family doc="files" name="files">
|
||||
<family doc="file0" name="file0">
|
||||
<variable doc="" multi="False" name="group" type="string">
|
||||
<property>mandatory</property>
|
||||
<value>root</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="mkdir" type="boolean">
|
||||
<property>mandatory</property>
|
||||
<value>False</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="mode" type="string">
|
||||
<property>mandatory</property>
|
||||
<value>0644</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="name" type="string">
|
||||
<property>mandatory</property>
|
||||
<value>/etc/file</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="owner" type="string">
|
||||
<property>mandatory</property>
|
||||
<value>root</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="rm" type="boolean">
|
||||
<property>mandatory</property>
|
||||
<value>False</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="source" type="string">
|
||||
<property>mandatory</property>
|
||||
<value>file</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="templating" type="boolean">
|
||||
<property>mandatory</property>
|
||||
<value>False</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="activate" type="boolean">
|
||||
<property>mandatory</property>
|
||||
<value>True</value>
|
||||
</variable>
|
||||
</family>
|
||||
</family>
|
||||
<property>basic</property>
|
||||
</family>
|
||||
</family>
|
||||
<family doc="" name="creole">
|
||||
<family doc="general" name="general">
|
||||
<property>normal</property>
|
||||
<variable doc="No change" multi="False" name="mode_conteneur_actif" type="choice">
|
||||
<choice type="string">oui</choice>
|
||||
<choice type="string">non</choice>
|
||||
<property>mandatory</property>
|
||||
<property>normal</property>
|
||||
<value type="string">non</value>
|
||||
</variable>
|
||||
</family>
|
||||
<separators/>
|
||||
</family>
|
||||
</creole>
|
1
tests/templates/20notemplating/result/etc/file
Normal file
1
tests/templates/20notemplating/result/etc/file
Normal file
@ -0,0 +1 @@
|
||||
%%condition
|
2
tests/templates/20notemplating/result/rougail.conf
Normal file
2
tests/templates/20notemplating/result/rougail.conf
Normal file
@ -0,0 +1,2 @@
|
||||
C /etc/file 0644 root root - -
|
||||
z /etc/file - - - - -
|
1
tests/templates/20notemplating/tmpl/file
Normal file
1
tests/templates/20notemplating/tmpl/file
Normal file
@ -0,0 +1 @@
|
||||
%%condition
|
41
tests/templates/20override/00-base.xml
Normal file
41
tests/templates/20override/00-base.xml
Normal file
@ -0,0 +1,41 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<creole>
|
||||
<family name="services">
|
||||
<family name="service0" doc="test">
|
||||
<family doc="overrides" name="overrides">
|
||||
<family doc="override0" name="override0">
|
||||
<variable doc="" multi="False" name="name" type="string">
|
||||
<property>mandatory</property>
|
||||
<value>test.service</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="source" type="string">
|
||||
<property>mandatory</property>
|
||||
<value>test.service</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="templating" type="boolean">
|
||||
<property>mandatory</property>
|
||||
<value>True</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="activate" type="boolean">
|
||||
<property>mandatory</property>
|
||||
<value>True</value>
|
||||
</variable>
|
||||
</family>
|
||||
</family>
|
||||
<property>basic</property>
|
||||
</family>
|
||||
</family>
|
||||
<family doc="" name="creole">
|
||||
<family doc="general" name="general">
|
||||
<property>normal</property>
|
||||
<variable doc="No change" multi="False" name="mode_conteneur_actif" type="choice">
|
||||
<choice type="string">oui</choice>
|
||||
<choice type="string">non</choice>
|
||||
<property>mandatory</property>
|
||||
<property>normal</property>
|
||||
<value type="string">non</value>
|
||||
</variable>
|
||||
</family>
|
||||
<separators/>
|
||||
</family>
|
||||
</creole>
|
1
tests/templates/20override/result/rougail.conf
Normal file
1
tests/templates/20override/result/rougail.conf
Normal file
@ -0,0 +1 @@
|
||||
|
@ -0,0 +1 @@
|
||||
non
|
1
tests/templates/20override/tmpl/test.service
Normal file
1
tests/templates/20override/tmpl/test.service
Normal file
@ -0,0 +1 @@
|
||||
%%mode_conteneur_actif
|
@ -32,6 +32,10 @@
|
||||
<property>mandatory</property>
|
||||
<value>mailname</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="templating" type="boolean">
|
||||
<property>mandatory</property>
|
||||
<value>True</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="activate" type="boolean">
|
||||
<property>mandatory</property>
|
||||
<value>True</value>
|
||||
|
@ -32,6 +32,10 @@
|
||||
<property>mandatory</property>
|
||||
<value>mailname</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="templating" type="boolean">
|
||||
<property>mandatory</property>
|
||||
<value>True</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="activate" type="boolean">
|
||||
<property>mandatory</property>
|
||||
<value>True</value>
|
||||
|
@ -31,6 +31,10 @@
|
||||
<property>mandatory</property>
|
||||
<value>mailname</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="templating" type="boolean">
|
||||
<property>mandatory</property>
|
||||
<value>True</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="activate" type="boolean">
|
||||
<property>mandatory</property>
|
||||
<value>True</value>
|
||||
|
@ -31,6 +31,10 @@
|
||||
<property>mandatory</property>
|
||||
<value>mailname</value>
|
||||
</variable>
|
||||
<variable doc="" multi="False" name="templating" type="boolean">
|
||||
<property>mandatory</property>
|
||||
<value>True</value>
|
||||
</variable>
|
||||
<variable multi="False" name="variable" opt="creole.general.var" type="symlink">
|
||||
<property>mandatory</property>
|
||||
</variable>
|
||||
|
Reference in New Issue
Block a user