git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/manifests
diff options
context:
space:
mode:
authormail_redacted_for_web 2015-10-22 14:15:13 -0700
committermail_redacted_for_web 2015-10-22 14:15:13 -0700
commit9d1b750d743a4060101949de41838fec61985862 (patch)
tree5ba0c5a3446f233635e6fbbc06a3ca29456fb5c9 /manifests
parent2ffc83ac7c702ab96a604baea7ddf3b454b1f9ab (diff)
downloadcontrol-repo-template-9d1b750d743a4060101949de41838fec61985862.tar.bz2
fix site.pp to not include a role that is empty
Diffstat (limited to 'manifests')
-rw-r--r--manifests/site.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/manifests/site.pp b/manifests/site.pp
index 5ba0af4..7f7b8db 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -41,7 +41,10 @@ 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 "role::${trusted['extensions']['pp_role']}"
+
+ if !empty( ${trusted['extensions']['pp_role']} ) {
+ include "role::${trusted['extensions']['pp_role']}"
+ }
# This is where you can declare classes for all nodes.
# Example: