|
| 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 => 'puppetfactory.puppetlabs.vm', |
| 22 | + path => false, |
| 23 | +} |
| 24 | + |
| 25 | +# Make filebucket 'main' the default backup location for all File resources: |
| 26 | +File { backup => 'main' } |
| 27 | + |
| 28 | +# DEFAULT NODE |
| 29 | +# Node definitions in this file are merged with node data from the console. See |
| 30 | +# http://docs.puppetlabs.com/guides/language_guide.html#nodes for more on |
| 31 | +# node definitions. |
| 32 | + |
| 33 | +# The default node definition matches any node lacking a more specific node |
| 34 | +# definition. If there are no other nodes in this file, classes declared here |
| 35 | +# will be included in every node's catalog, *in addition* to any classes |
| 36 | +# specified in the console for that node. |
| 37 | + |
| 38 | +node default { |
| 39 | + # This is where you can declare classes for all nodes. |
| 40 | + # Example: |
| 41 | + # class { 'my_class': } |
| 42 | + notify { "Hello, my name is ${::hostname}": } |
| 43 | +} |
0 commit comments