forked from Normation/rudder
/
some-groups.cf
49 lines (45 loc) · 2.52 KB
/
some-groups.cf
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
#####################################################################################
# Copyright 2015 Normation SAS
#####################################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
#####################################################################################
# This file contains all the groups where the node belongs to. The groups are available on two ways:
# 1/ two classes are added for each groups:
# - group_UUID with UUID replaced by the group unique identifier
# - group_NAME with NAME replaced by the transliteration of the group name to lower-case ascii, and the
# canonification of the result
# 2/ an array "by_uuid" of UUID -> ORIG_NAME, available as a global variable (for example for processing
# all node groups to use in templates)
#
# For example, if node belongs to group: (id: 64f85ba8-39c7-418a-a099-24c2c2909dfd ; name: "Serveurs pré-prod")
# we will have the following classes:
# - group_64f85ba8_39c7_418a_a099_24c2c2909dfd
# - group_serveurs_pre_prod
# and vars:
# - "by_uuid[64f85ba8-39c7-418a-a099-24c2c2909dfd]" = "Serveurs pré-prod"
# More over, each value of the array will have an attribute "meta": { "inventory", "attribute_name=rudder_groups" }
#
bundle common rudder_groups {
vars:
"by_uuid[c8813416-316f-4307-9b6a-ca9c109a9fb0]" string => "Serveurs [€ðŋ] cassés",
meta => { "inventory", "attribute_name=rudder_groups" };
"by_uuid[policyServer:root]" string => "special:policyServer_root",
meta => { "inventory", "attribute_name=rudder_groups" };
classes:
"group_c8813416-316f-4307-9b6a-ca9c109a9fb0" expression => "any";
"group_serveurs_______casses" expression => "any";
"group_policyserver_root" expression => "any";
"group_special_policyserver_root" expression => "any";
}