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

2017-08-02 Thread David Schmitt
Hi, On 2 August 2017 at 16:15, RG wrote: > 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? > Yes! See https://docs.puppet.

[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

[Puppet Users] Puppet newbie question.

2017-07-26 Thread Randy Gould
Hello I am a newbie with puppet I am trying to take a module I cobbled together to run a script class mymodule::myscript { file { 'myscript': ensure => 'file', source => 'puppet:///modules/mymodule/myscript.sh', path => '/usr/local/bin/myscript.sh', owner => 'root'