Please review pull request #53: Display an example of using $settings:: opened by (glarizza)

Description:

Previously, we explained how $settings:: could be used to display
configuration settings inside your Puppet manifests. This commit adds an
example using puppet apply -ve from the command line.

  • Opened: Thu Mar 01 16:53:52 UTC 2012
  • Based on: puppetlabs:master (6741b28826c6f657be261b6d82a0dfbab3213d21)
  • Requested merge: glarizza:feature/master/faq_puppet-e (a137c7b40f67c603edb63e2f99bdfcd0e027d37e)

Diff follows:

diff --git a/source/guides/faq.markdown b/source/guides/faq.markdown
index 569c91a..8774b6b 100644
--- a/source/guides/faq.markdown
+++ b/source/guides/faq.markdown
@@ -358,7 +358,9 @@ master's certname is set to something other than its fully-qualified domain
 name, this variable will still contain the server's fqdn.)
 * `$serverip` --- Provided by the puppet master; contains the master server's IP address.
 * `$serverversion` --- Provided by the puppet master; contains the puppet master's current version.
-* `$settings::<name of setting>` --- Provided by the puppet master; exposes all of the master's [configuration settings](./configuring.html) as variables in the `settings` namespace. Note that other than `$environment`, the agent's settings aren't available in manifests. Added in Puppet 2.6.0.
+* `$settings::<name of setting>` --- Provided by the puppet master; exposes all of the master's [configuration settings](./configuring.html) as variables in the `settings` namespace. Note that other than `$environment`, the agent's settings aren't available in manifests. Added in Puppet 2.6.0. For example, to display your certname:
+
+    puppet apply -ve 'notify {"My certname is: ${settings::certname}":}'
 
 ### Can I access environment variables with Facter?
 

    

--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to