Skip to content
This repository was archived by the owner on Mar 28, 2019. It is now read-only.

Commit 583b20a

Browse files
committed
Merge pull request #127 from danieldreier/fix_readme
Fix example in README
2 parents 6572451 + a9a6f13 commit 583b20a

File tree

1 file changed

+32
-23
lines changed

1 file changed

+32
-23
lines changed

README.md

Lines changed: 32 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -26,29 +26,38 @@ If, however, the moon is in the next phase then you probably want to use
2626
something that scales a bit more.
2727

2828
``` Puppet
29-
class service::puppet::master($servertype, $ca = false) {
30-
31-
class { '::puppet::server':
32-
modulepath => [
33-
'$confdir/modules/site',
34-
'$confdir/env/$environment/dist',
35-
],
36-
storeconfigs => 'puppetdb',
37-
reporturl => 'https://my.puppet.dashboard/reports',
38-
servertype => 'unicorn',
39-
manifest => '$confdir/environments/$environment/site.pp',
40-
ca => $ca,
41-
reports => [
42-
'https',
43-
'graphite',
44-
'irccat',
45-
'store',
46-
],
47-
}
48-
49-
include puppet::deploy
50-
include puppet::reports::irccat
51-
include puppet::reports::graphite
29+
class { '::puppet::server':
30+
modulepath => [
31+
'$confdir/modules/site',
32+
'$confdir/env/$environment/dist',
33+
],
34+
storeconfigs => 'puppetdb',
35+
reporturl => "https://${::fqdn}/reports",
36+
servertype => 'unicorn',
37+
manifest => '$confdir/environments/$environment/site.pp',
38+
ca => true,
39+
reports => [
40+
'https',
41+
'graphite',
42+
'irccat',
43+
'store',
44+
],
45+
}
46+
47+
# in a real environment, you'll probably populate parameters on these
48+
# report classes from hiera. For this example, it's specified inline so that
49+
# the manifest works as-is
50+
51+
class { 'puppet::reports::graphite':
52+
server => $::fqdn,
53+
port => 2003,
54+
prefix => 'puppetmaster'
55+
}
56+
57+
class { 'puppet::reports::irccat':
58+
host => $::fqdn,
59+
githuburl => 'https://github.com/example/foo',
60+
dashboard => 'https://dashboard.example.com',
5261
}
5362
```
5463

0 commit comments

Comments
 (0)