-
Notifications
You must be signed in to change notification settings - Fork 22
/
technique-metadata-sample.xml
74 lines (65 loc) · 2.68 KB
/
technique-metadata-sample.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!--
This is a sample metadata.xml file to create a Rudder Technique.
You can use this as a starting point, and change the information below.
-->
<!-- The "technical name" for this Technique is the name of the directory
it is contained in. It must be unique across all Techniques. -->
<!-- The name here is the "human readable name" of this Technique.
It is displayed in the web interface as the main name for this Technique -->
<TECHNIQUE name="Sample Technique">
<!-- This description is displayed in detailed views in the interface.
It should be used to describe what this Technique does, in detail.
New lines will be ignored. -->
<DESCRIPTION>This sample technique actually does nothing, except demonstrate.</DESCRIPTION>
<!-- Can several Directives based on this Technique be applied to the same node?
If so, the Technique will have to be written to support multi-valued variables.
-->
<MULTIINSTANCE>false</MULTIINSTANCE>
<!-- List of .st files (also called templates or TMLS)
in this Technique to import and parse variables in.
Note: the ".st" extension will be added automatically, don't specify it here -->
<TMLS>
<TML name="sample_technique"/>
</TMLS>
<!-- List of CFEngine bundles in the above .st TMLS to call.
These will be added to the CFEngine bundlesequence.
Technically, they don't have to have the same name as the
TML, but if there is one bundle per TML, it is recommended. -->
<BUNDLES>
<NAME>sample_technique</NAME>
</BUNDLES>
<TRACKINGVARIABLE>
<!--<SAMESIZEAS>MOTD</SAMESIZEAS>-->
</TRACKINGVARIABLE>
<!-- From here on, define variables to display in the web interface
All variables must be contained in a section.
Sections may be multivalued, or not -->
<SECTIONS>
<SECTION name="MOTD entry" multivalued="false">
<INPUT>
<NAME>MOTD</NAME>
<DESCRIPTION>Message of the day (MOTD) to display</DESCRIPTION>
<CONSTRAINT>
<REGEX error="Please enter a valid motd, without quotes"><![CDATA[ ([^"]|(?<=\\)")* ]]></REGEX>
<TYPE>textarea</TYPE>
</CONSTRAINT>
</INPUT>
<SELECT1>
<NAME>MOTD_EMPTY</NAME>
<DESCRIPTION>Enforce this MOTD only</DESCRIPTION>
<LONGDESCRIPTION>This option will remove any existing messages in the motd file and replace them with the text provided above</LONGDESCRIPTION>
<ITEM>
<LABEL>Yes</LABEL>
<VALUE>true</VALUE>
</ITEM>
<ITEM>
<LABEL>No</LABEL>
<VALUE>false</VALUE>
</ITEM>
<CONSTRAINT>
<DEFAULT>false</DEFAULT>
</CONSTRAINT>
</SELECT1>
</SECTION>
</SECTIONS>
</TECHNIQUE>