add jinja template with include

This commit is contained in:
Emmanuel Garette 2021-02-20 19:54:30 +01:00
parent 20d8242d47
commit 710711b253
7 changed files with 16 additions and 2 deletions

View File

@ -4,6 +4,7 @@
<services> <services>
<service name="test"> <service name="test">
<file>/etc/file</file> <file>/etc/file</file>
<file engine="jinja2">/etc/file2</file>
</service> </service>
</services> </services>

View File

@ -1 +1 @@
{"rougail.general.mode_conteneur_actif": "non", "services.test.files.file.engine": "creole", "services.test.files.file.group": "root", "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} {"rougail.general.mode_conteneur_actif": "non", "services.test.files.file.engine": "creole", "services.test.files.file.group": "root", "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.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}

View File

@ -0,0 +1 @@
non

View File

@ -1,2 +1,4 @@
C /etc/file 0644 root root - /usr/local/lib/etc/file C /etc/file 0644 root root - /usr/local/lib/etc/file
z /etc/file - - - - - z /etc/file - - - - -
C /etc/file2 0644 root root - /usr/local/lib/etc/file2
z /etc/file2 - - - - -

View File

@ -22,7 +22,15 @@ option_12 = StrOption(name="owner", doc="owner", default="root")
option_13 = StrOption(name="source", doc="source", default="file") option_13 = StrOption(name="source", doc="source", default="file")
option_14 = BoolOption(name="activate", doc="activate", default=True) option_14 = 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_7 = OptionDescription(name="file", doc="file", children=[option_8, option_9, option_10, option_11, option_12, option_13, option_14])
option_6 = OptionDescription(name="files", doc="files", children=[option_7]) option_16 = StrOption(name="engine", doc="engine", default="jinja2")
option_17 = StrOption(name="group", doc="group", default="root")
option_18 = StrOption(name="mode", doc="mode", default="0644")
option_19 = FilenameOption(name="name", doc="name", default="/etc/file2")
option_20 = StrOption(name="owner", doc="owner", default="root")
option_21 = StrOption(name="source", doc="source", default="file2")
option_22 = BoolOption(name="activate", doc="activate", default=True)
option_15 = OptionDescription(name="file2", doc="file2", children=[option_16, option_17, option_18, option_19, option_20, option_21, option_22])
option_6 = OptionDescription(name="files", doc="files", children=[option_7, option_15])
option_5 = OptionDescription(name="test", doc="test", children=[option_6]) option_5 = OptionDescription(name="test", doc="test", children=[option_6])
option_4 = OptionDescription(name="services", doc="services", children=[option_5], properties=frozenset({"hidden"})) option_4 = OptionDescription(name="services", doc="services", children=[option_5], properties=frozenset({"hidden"}))
option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_4]) option_0 = OptionDescription(name="baseoption", doc="baseoption", children=[option_1, option_4])

View File

@ -0,0 +1 @@
{% include "incfile2" %}

View File

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