Skip to content

Instantly share code, notes, and snippets.

@jrmoserbaltimore
Created February 2, 2013 20:30
Show Gist options
  • Save jrmoserbaltimore/4699125 to your computer and use it in GitHub Desktop.
Save jrmoserbaltimore/4699125 to your computer and use it in GitHub Desktop.
This shit doesn't work
---
classes:
- puppet
puppet::servername: 'hq-ext-puppet.sbgnet.com'
puppet::repository: 'puppetlabs'
puppet::environment: 'dmz'
puppet::environments:
- 'dmz'
class puppet(
$servername,
$server = $puppet::params::server,
$environment = $puppet::params::environment,
$environments = $puppet::params::environments,
$daemon = $puppet::params::daemon,
$repository = $puppet::params::repository,
) inherits puppet::params {
if ( $servername == '' ) {
fail('Must set servername => puppetmaster.example.com')
}
...
}
node 'puppetmaster' {
hiera_include('classes')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment