[Puppet Users] init config once

2021-01-28 Thread Steve McKuhr
I'd like to initialize a user config file once, at software install time, then allow application admins to manage the file contents via web interface (add/remove users, etc.) - I have come up with the following: file { 'users': ensure => present, content => template('my-template'), validat

Re: [Puppet Users] init config once

2021-01-28 Thread Steve McKuhr
the replace attribute on the file resource. > > https://puppet.com/docs/puppet/latest/types/file.html#file-attribute-replace > > > > On Thu, Jan 28, 2021 at 9:57 AM Steve McKuhr wrote: > > I'd like to initialize a user config file once, at software install time, > &

Re: [Puppet Users] init config once

2021-01-28 Thread Steve McKuhr
In an effort to avoid errors triggered by validate_cmd, I ended up using a conditional based on a File.exists custom fact. I'm still open to suggestions, this is all new territory to me. On Thu, 2021-01-28 at 17:13 -0800, Steve McKuhr wrote: > I've just realized that my problem

Re: [Puppet Users] init config once

2021-03-15 Thread Steve McKuhr
; > > Besides this: Bolt must be executed manually > > > > > On 29. Jan 2021, at 06:03, Benjamin Ridley wrote: > > > > > > You might be better off using something like Puppet Bolt to deploy the > > > file as a one off task at provisioning, rather t