summaryrefslogtreecommitdiff
path: root/load_variables.rb
diff options
context:
space:
mode:
authorKrzysztof Wilczynski <krzysztof.wilczynski@linux.com>2011-04-23 01:56:30 +0100
committerKrzysztof Wilczynski <krzysztof.wilczynski@linux.com>2011-04-23 01:56:30 +0100
commit0b1aab2ed584aa79c14531e5c3d1b0c8a6c00511 (patch)
tree2a722933f6be35c0b393f13c25329e9d64a79a49 /load_variables.rb
parent54b0d37bacb8b95f1b22aa97bd958ed798da9342 (diff)
Small changes. Mainly to formatting of the help provided.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Diffstat (limited to 'load_variables.rb')
-rw-r--r--load_variables.rb26
1 files changed, 13 insertions, 13 deletions
diff --git a/load_variables.rb b/load_variables.rb
index a6ccc60..a5eb269 100644
--- a/load_variables.rb
+++ b/load_variables.rb
@@ -11,19 +11,19 @@ For example:
Given following content of the data.yaml file:
- ---
- host1.example.com:
- foo: bar
- baz: quux
- question: 42
- host2.example.com:
- abc: def
- this: that
- darth: vader
+ ---
+ host1.example.com:
+ foo: bar
+ baz: quux
+ question: 42
+ host2.example.com:
+ abc: def
+ this: that
+ darth: vader
Then calling load_variables in Puppet manifest file as follows:
- load_variables("/etc/puppet/data.yaml", $fqdn)
+ load_variables("/etc/puppet/data.yaml", $fqdn)
Will result in addition of variables $foo, $baz and $question
for matching host name as per the variable $fqdn ...
@@ -32,12 +32,12 @@ Another example which uses per-host file:
Given following content of the file data-host1.example.com.yaml:
- ---
- foo: bar
+ ---
+ foo: bar
Then when we call load_variables like this:
- load_variables("/etc/puppet/data-$fqdn.yaml")
+ load_variables("/etc/puppet/data-$fqdn.yaml")
This will result in a variable $foo being added and ready for use.
EOS