Revision fae00a62
Added by François ARMAND over 7 years ago
4_advanced_usage/45_node_properties_in_directives.txt | ||
---|---|---|
|
||
----
|
||
|
||
${node.properties[datacenter][id] | "LON2" }
|
||
${node.properties[datacenter][name] | """Co-location with "Hosting Company" in Paris (allows quotes)""" }
|
||
${node.properties[datacenter][id] | ${rudder.param.default_datacenter} }
|
||
${node.properties[netbios_name] | ${rudder.node.hostname} }
|
||
${node.properties[dns_suffix] | ${node.properties[datacenter][dns_suffix] | "${rudder.node.hostname}.example.com" }
|
||
${node.properties[datacenter][id] | default = "LON2" }
|
||
${node.properties[datacenter][name] | default = """Co-location with "Hosting Company" in Paris (allows quotes)""" }
|
||
${node.properties[datacenter][id] | default = ${rudder.param.default_datacenter} }
|
||
${node.properties[netbios_name] | default = ${rudder.node.hostname} }
|
||
${node.properties[dns_suffix] | default = ${node.properties[datacenter][dns_suffix] | default = "${rudder.node.hostname}.example.com" }
|
||
|
||
#or even use cfengine variables in the default
|
||
${node.properties[my_override] | default = "${cfengine.key}"}
|
||
|
||
----
|
||
|
Also available in: Unified diff
Fixes #9800: Missing \"default =\" word in node properties expansion documention