From 2e457d5c0ee8c8008bde68b6abd1b8b2fe2a6911 Mon Sep 17 00:00:00 2001 From: Nick Walker Date: Tue, 25 Aug 2015 12:21:30 -0700 Subject: [PATCH] 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. --- manifests/site.pp | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 manifests/site.pp diff --git a/manifests/site.pp b/manifests/site.pp new file mode 100644 index 0000000..edde75c --- /dev/null +++ b/manifests/site.pp @@ -0,0 +1,45 @@ +## site.pp ## + +# This file (/etc/puppetlabs/puppet/manifests/site.pp) is the main entry point +# used when an agent connects to a master and asks for an updated configuration. +# +# Global objects like filebuckets and resource defaults should go in this file, +# as should the default node definition. (The default node can be omitted +# if you use the console and don't define any other nodes in site.pp. See +# http://docs.puppetlabs.com/guides/language_guide.html#nodes for more on +# node definitions.) + +## Active Configurations ## + +# PRIMARY FILEBUCKET +# This configures puppet agent and puppet inspect to back up file contents when +# they run. The Puppet Enterprise console needs this to display file contents +# and differences. + +# Define filebucket 'main': +filebucket { 'main': + #server should point to one master that will be the file bucket + #$servername is the closest thing to the current behavior of PE + #which hardcodes each master to point to itself for a file buckket + server => $servername, + path => false, +} + +# Make filebucket 'main' the default backup location for all File resources: +File { backup => 'main' } + +# DEFAULT NODE +# Node definitions in this file are merged with node data from the console. See +# http://docs.puppetlabs.com/guides/language_guide.html#nodes for more on +# node definitions. + +# The default node definition matches any node lacking a more specific node +# definition. If there are no other nodes in this file, classes declared here +# will be included in every node's catalog, *in addition* to any classes +# specified in the console for that node. + +node default { + # This is where you can declare classes for all nodes. + # Example: + # class { 'my_class': } +}