2015-08-25 19:21:30 +00:00
|
|
|
## 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 ##
|
|
|
|
|
2015-12-07 16:03:13 +00:00
|
|
|
# Disable filebucket by default for all File resources:
|
|
|
|
#http://docs.puppetlabs.com/pe/latest/release_notes.html#filebucket-resource-no-longer-created-by-default
|
|
|
|
File { backup => false }
|
2015-08-25 19:21:30 +00:00
|
|
|
|
|
|
|
# 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 {
|
2015-08-04 00:24:41 +00:00
|
|
|
#incude a role on any node that specifies it's role via a trusted fact at provision time
|
|
|
|
#https://docs.puppetlabs.com/puppet/latest/reference/lang_facts_and_builtin_vars.html#trusted-facts
|
|
|
|
#https://docs.puppetlabs.com/puppet/latest/reference/ssl_attributes_extensions.html#aws-attributes-and-extensions-population-example
|
2015-12-07 16:03:13 +00:00
|
|
|
|
2015-10-22 21:25:17 +00:00
|
|
|
if !empty( $trusted['extensions']['pp_role'] ) {
|
2015-10-22 21:15:13 +00:00
|
|
|
include "role::${trusted['extensions']['pp_role']}"
|
|
|
|
}
|
2015-08-04 00:24:41 +00:00
|
|
|
|
2015-08-25 19:21:30 +00:00
|
|
|
# This is where you can declare classes for all nodes.
|
|
|
|
# Example:
|
|
|
|
# class { 'my_class': }
|
|
|
|
}
|