Skip to content

Commit 2e457d5

Browse files
committed
Add a site.pp
I needed to modify the site.pp to use $servername so it would work out of the box and that is the closest thing to the current behavior.
1 parent 3284233 commit 2e457d5

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

manifests/site.pp

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
## site.pp ##
2+
3+
# This file (/etc/puppetlabs/puppet/manifests/site.pp) is the main entry point
4+
# used when an agent connects to a master and asks for an updated configuration.
5+
#
6+
# Global objects like filebuckets and resource defaults should go in this file,
7+
# as should the default node definition. (The default node can be omitted
8+
# if you use the console and don't define any other nodes in site.pp. See
9+
# http://docs.puppetlabs.com/guides/language_guide.html#nodes for more on
10+
# node definitions.)
11+
12+
## Active Configurations ##
13+
14+
# PRIMARY FILEBUCKET
15+
# This configures puppet agent and puppet inspect to back up file contents when
16+
# they run. The Puppet Enterprise console needs this to display file contents
17+
# and differences.
18+
19+
# Define filebucket 'main':
20+
filebucket { 'main':
21+
#server should point to one master that will be the file bucket
22+
#$servername is the closest thing to the current behavior of PE
23+
#which hardcodes each master to point to itself for a file buckket
24+
server => $servername,
25+
path => false,
26+
}
27+
28+
# Make filebucket 'main' the default backup location for all File resources:
29+
File { backup => 'main' }
30+
31+
# DEFAULT NODE
32+
# Node definitions in this file are merged with node data from the console. See
33+
# http://docs.puppetlabs.com/guides/language_guide.html#nodes for more on
34+
# node definitions.
35+
36+
# The default node definition matches any node lacking a more specific node
37+
# definition. If there are no other nodes in this file, classes declared here
38+
# will be included in every node's catalog, *in addition* to any classes
39+
# specified in the console for that node.
40+
41+
node default {
42+
# This is where you can declare classes for all nodes.
43+
# Example:
44+
# class { 'my_class': }
45+
}

0 commit comments

Comments
 (0)