Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confdir Variable is Not Working #282

Open
jcitarello-ercot opened this issue Feb 14, 2020 · 0 comments
Open

Confdir Variable is Not Working #282

jcitarello-ercot opened this issue Feb 14, 2020 · 0 comments

Comments

@jcitarello-ercot
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant