Re: [Puppet Users] Puppet hiera variable

2018-04-04 Thread Jagga Soorma
Thanks Peter :) that fixed the issue. Appreciate your help with this. -J On Tuesday, April 3, 2018 at 10:50:08 PM UTC-7, Peter Bukowinski wrote: > > Jagga, > > It’s a simple error. You need to remove the square brackets from around > your conditional test. Puppet is evaluating it as an array,

Re: [Puppet Users] Puppet hiera variable

2018-04-03 Thread Peter Bukowinski
Jagga, It’s a simple error. You need to remove the square brackets from around your conditional test. Puppet is evaluating it as an array, and since puppet treats all non-boolean values (other than undef) as true, you will never get to the else block. — Peter > On Apr 3, 2018, at 10:13 PM, Ja

[Puppet Users] Puppet hiera variable

2018-04-03 Thread Jagga Soorma
Hi Guys, I am using foreman and puppet to provision/manage systems. I have a simple motd module that I was using for all my systems but now have a need to setup a different motd for a specific hostgroup/type of systems. So, I though I would use the hostgroup hiera setup from foreman/puppet to