diff options
author | mail_redacted_for_web | 2015-11-25 16:51:43 +0000 |
---|---|---|
committer | mail_redacted_for_web | 2015-11-25 16:51:43 +0000 |
commit | 2859cffba989f4751d60ab0127e7ad5e7b65278a (patch) | |
tree | d74953d5f0595d1e1082dfece1f22e97111f7a51 /manifests/site.pp | |
parent | c2bd0d3ca1fd4e9f2fce24196201835272fd1e21 (diff) | |
parent | 10732cf3700bce033091fc3d0e1e5d9bb643932d (diff) | |
download | control-repo-template-2859cffba989f4751d60ab0127e7ad5e7b65278a.tar.bz2 |
Merged from upstream
Diffstat (limited to 'manifests/site.pp')
-rw-r--r-- | manifests/site.pp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/manifests/site.pp b/manifests/site.pp index edde75c..65650cf 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -19,9 +19,7 @@ # 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, + server => "${settings::server}", path => false, } @@ -39,6 +37,14 @@ File { backup => 'main' } # specified in the console for that node. node default { + #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 + + if !empty( $trusted['extensions']['pp_role'] ) { + include "role::${trusted['extensions']['pp_role']}" + } + # This is where you can declare classes for all nodes. # Example: # class { 'my_class': } |