diff options
author | mail_redacted_for_web | 2015-11-24 11:16:51 -0800 |
---|---|---|
committer | mail_redacted_for_web | 2015-11-24 11:16:51 -0800 |
commit | afc9a358f30c51029d7a37122d4adfcc2add88a6 (patch) | |
tree | 655439e13d1cee28e254d6d92da6f13c4c5aa670 /manifests | |
parent | 869a5c3aa974b53e2f7f4c8fd8ab01fab0420f6d (diff) | |
parent | 7e40513c531d98015101367baf5d480d7ea6d2e3 (diff) | |
download | control-repo-template-afc9a358f30c51029d7a37122d4adfcc2add88a6.tar.bz2 |
Merge branch 'production' of https://github.com/npwalker/control-repo into merge_npwalker_control_repo
Diffstat (limited to 'manifests')
-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': } |