Last active
December 24, 2015 08:18
-
-
Save frozenfoxx/6769230 to your computer and use it in GitHub Desktop.
Dysfunctional Puppet code for doing a hiera lookup and realize.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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