Fix some quoting issues and add role:: to the include in site.pp

This commit is contained in:
Nick Walker 2015-08-13 15:41:11 -07:00
parent b0c5ac495c
commit 70690333ee
2 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ 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']
include "role::${trusted['extensions']['pp_role']}"
# This is where you can declare classes for all nodes.
# Example:

View File

@ -2,11 +2,11 @@ class profile::puppetmaster {
class { 'hiera':
hierarchy => [
"nodes/%{::trusted.certname}",
:common",
"\"nodes/%{::trusted.certname}\"",
"common",
],
hiera_yaml => '/etc/puppetlabs/code/hiera.yaml',
datadir => "/etc/puppetlabs/code/environments/%{environment}/hieradata",
datadir => "\"/etc/puppetlabs/code/environments/%{environment}/hieradata\"",
owner => 'root',
group => 'root',
}