Skip to content

Instantly share code, notes, and snippets.

@frozenfoxx
Last active December 24, 2015 08:18
Show Gist options
  • Save frozenfoxx/6769230 to your computer and use it in GitHub Desktop.
Save frozenfoxx/6769230 to your computer and use it in GitHub Desktop.
Dysfunctional Puppet code for doing a hiera lookup and realize.
# Puppet Master
node "puppet.somecompany.local" inherits default {
notice ( "Notice from puppetmaster" )
$repositories = hiera_hash('centos5repositories')
create_resources('yumrepo', $repositories)
class { 'hosts': hostClass => 'somelocation' }
class { 'ntp': ntpClass => 'client' }
class { 'sudo': sudoUsers => [user1,user2,user3] }
class { 'logstash': status => "enable", role => "puppetmaster", environment => "internal", version => "1.2.1" }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment