Skip to content
This repository was archived by the owner on Mar 28, 2019. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 32 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,38 @@ If, however, the moon is in the next phase then you probably want to use
something that scales a bit more.

``` Puppet
class service::puppet::master($servertype, $ca = false) {

class { '::puppet::server':
modulepath => [
'$confdir/modules/site',
'$confdir/env/$environment/dist',
],
storeconfigs => 'puppetdb',
reporturl => 'https://my.puppet.dashboard/reports',
servertype => 'unicorn',
manifest => '$confdir/environments/$environment/site.pp',
ca => $ca,
reports => [
'https',
'graphite',
'irccat',
'store',
],
}

include puppet::deploy
include puppet::reports::irccat
include puppet::reports::graphite
class { '::puppet::server':
modulepath => [
'$confdir/modules/site',
'$confdir/env/$environment/dist',
],
storeconfigs => 'puppetdb',
reporturl => "https://${::fqdn}/reports",
servertype => 'unicorn',
manifest => '$confdir/environments/$environment/site.pp',
ca => true,
reports => [
'https',
'graphite',
'irccat',
'store',
],
}

# in a real environment, you'll probably populate parameters on these
# report classes from hiera. For this example, it's specified inline so that
# the manifest works as-is

class { 'puppet::reports::graphite':
server => $::fqdn,
port => 2003,
prefix => 'puppetmaster'
}

class { 'puppet::reports::irccat':
host => $::fqdn,
githuburl => 'https://github.com/example/foo',
dashboard => 'https://dashboard.example.com',
}
```