Created
October 15, 2013 07:31
-
-
Save VMTrooper/6987872 to your computer and use it in GitHub Desktop.
Sample Site.pp from my puppet-lint error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 => 'learn.localdomain', | |
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': } | |
include ntp | |
#include apache | |
} | |
node 'agent1.localdomain' { | |
include apache | |
include motd | |
class {'ntp': | |
enable => true, | |
ensure => running, | |
} | |
} | |
node 'agent2.localdomain' { | |
include motd | |
class {'ntp': | |
enable => true, | |
ensure => running, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment