[Puppet Users] Puppet newbie question about facts and config files

2017-08-02 Thread RG
I am trying to write my first puppet module. I need to be able to pull a value from a custom fact and write a value in a config file based on a value in the fact. Can I do and "if-then" statement like in bash? Thanks for any guidance. -- You received this message because you are subscribed

Re: [Puppet Users] problem with function lookup provider.

2016-02-25 Thread RG
have new mail in /var/spool/mail/root Its the client that is not getting the data. I can put the function in the modules namespace, but it seemed like the documentation says you dont need to.. On Wednesday, February 24, 2016 at 11:56:38 PM UTC-5, Henrik Lindberg wrote: > > On 24/02/16 21:57,

[Puppet Users] problem with function lookup provider.

2016-02-24 Thread RG
I am using puppet 4.3 and it looks like the new function lookup provider is not working, unless i am missing something. I am working from this: https://docs.puppetlabs.com/puppet/latest/reference/lookup_quick_module.html I am just testing with this simple example. % puppet status { "is_ali

Re: [Puppet Users] Upper case Key in hiera hash

2014-06-13 Thread RG
11:12:17 AM UTC-7, Garrett Honeycutt wrote: > > On 6/13/14, 2:06 PM, RG wrote: > > Hi, > > > > Can i have upper case key in hiera? > > > > I have a setenv_sh class that will take a key:value defined in hiera and > > put it in setenv.sh file > &g

[Puppet Users] Upper case Key in hiera hash

2014-06-13 Thread RG
Hi, Can i have upper case key in hiera? I have a setenv_sh class that will take a key:value defined in hiera and put it in setenv.sh file test.yaml: class::subclass1::setenv_sh: INSTALL_SCRIPT: value: '/opt/install.sh' Thanks, RG -- You received this message becau