Hi Puppet Users,
the situation is as follow. I have been trying to use the Data binding
feature of hiera for this module
https://forge.puppetlabs.com/jlambert121/puppet i have the following:
dist/profiles/manifests/puppet_master.pp
class profiles::puppet_master ($hello) {
include ::puppet
notify { $hello : }
}
dist/roles/manifests/puppet_master.pp
class roles::puppet_master {
include profiles::puppet_master
}
hieradata/node/example.domain.yaml
---
role:
- '::roles::puppet_master'
profiles::puppet_master::hello: 'Hello World'
puppet::server: true
puppet::server_version: 'latest'
puppet::dns_alt_names:
- 'puppet.domain'
puppet::puppetdb_server: 'puppet.domain'
puppet::puppetdb: true
puppet::manage_puppetdb: false
puppet::manage_hiera: false
puppet::firewall: true
puppetdb::listen_address: '0.0.0.0'
hiera::hierarchy:
- 'node/%%{::}{networking.fqdn}'
- 'type/%%{::}{type}'
- 'location/%%{::}{location}/%%{::}{type}'
- 'location/%%{::}{location}'
- 'common'
hiera::datadir:
'/etc/puppetlabs/code/environments/%%{::}{::environment}/hieradata'
r10k::version: '2.1.1'
r10k::sources:
environments:
remote: '[email protected]:puppet-control'
basedir: '%%{::}{settings.environmentpath}'
prefix: false
r10k::manage_modulepath: false
The thing is that i can mange to data bind with hiera the value
profiles::puppet_master::hello, but i'm unable to do the same thing for all
the other values.
Because of this they go to their defaults values and actually uninstall my
puppet server on the master :/
Can you guys help me out figuring why this is working for the puppet_master
class but not for the puppet module?
Thanks
Julio
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/7831831a-014d-4b75-81c7-09c9a14ba77f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.