ReleaseEngineering/PuppetAgain/Modules/config: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "This module handles retrieving and access of the site specific config values. == Summary == We handle config variables via puppets <tt>extlookup()</tt> function, which reads da...")
 
No edit summary
Line 21: Line 21:
  class foo {
  class foo {
   include config
   include config
   if ($config::builder_username == '')
   if ($config::builder_username == "")
       fail("bad settings")
       fail("bad settings")
   }
   }
Line 27: Line 27:


'''in templates''' (note use of empty namespace designation)
'''in templates''' (note use of empty namespace designation)
  Hash is ${::config::builder_username}
  Username is ${::config::builder_username}


==== Variables ====
==== Variables ====
Line 46: Line 46:
  class foo {
  class foo {
   include config
   include config
   if ($config::secrets::builder_password == '')
   if ($config::secrets::builder_password == "")
       fail("missing password")
       fail("missing password")
   }
   }
Account confirmers, Anti-spam team, Confirmed users, Bureaucrats and Sysops emeriti
1,529

edits

Navigation menu