voxpupuli/puppet-hiera

Confdir Variable is Not Working

Opened this issue · 0 comments

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 20181.8
  • Ruby:
  • Distribution:
  • Module version: Latest

How to reproduce (e.g Puppet code you use)

puppet apply -e 'notify { "Confdir is ${confdir}": }'

What are you seeing

puppet.conf is not being updated via the ini_setting in this module.

What behaviour did you expect instead

Expected to see puppet.conf populated with the confdir path, which should match puppet config print confdir

Output log

[root@xxxxxxxx ~]# puppet apply -e 'notify { "Confdir is ${confdir}": }'
Warning: Unknown variable: 'confdir'. (line: 1, column: 24)
Notice: Compiled catalog for xxxxxxxx.ercot.com in environment production in 0.02 seconds
Notice: Confdir is
Notice: /Stage[main]/Main/Notify[Confdir is ]/message: defined 'message' as 'Confdir is '
Notice: Applied catalog in 0.23 seconds

[root@xxxxxxxxxx ~]# puppet apply -e 'notify { "Confdir is ${puppet_confdir}": }'
Notice: Compiled catalog for xxxxxxxxxx.ercot.com in environment production in 0.02 seconds
Notice: Confdir is /etc/puppetlabs/puppet
Notice: /Stage[main]/Main/Notify[Confdir is /etc/puppetlabs/puppet]/message: defined 'message' as 'Confdir is /etc/puppetlabs/puppet'
Notice: Applied catalog in 0.22 seconds

Any additional information you'd like to impart

Puppet support confirmed that this variable does not work on 2018.1.8, and suggested using the variable 'puppet_confdir' as an alternative.