git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/manifests
diff options
context:
space:
mode:
authormail_redacted_for_web 2015-08-03 17:24:41 -0700
committermail_redacted_for_web 2015-08-03 17:24:41 -0700
commit921c83736ee9ec1ff48d3e18137292bb38829262 (patch)
tree1f757b5610230d806f07e7a684dc0fec367f69d1 /manifests
parentf5cb1fa75796327cefe8054efeab855c143ef2e3 (diff)
downloadcontrol-repo-template-921c83736ee9ec1ff48d3e18137292bb38829262.tar.bz2
Update site.pp to use a trusted fact role
Allow including a role if defined via a trusted fact on the node during provisioning time. This is how I will bootstrap any necessary configuration on the master, or other PE internal nodes.
Diffstat (limited to 'manifests')
-rw-r--r--manifests/site.pp5
1 files changed, 5 insertions, 0 deletions
diff --git a/manifests/site.pp b/manifests/site.pp
index b3319bd..cc02727 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -38,6 +38,11 @@ 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
+ include $trusted['extensions']['pp_role']
+
# This is where you can declare classes for all nodes.
# Example:
# class { 'my_class': }