Re: [Puppet Users] Deployed but unmanaged file

2011-06-29 Thread Craig White
On Jun 29, 2011, at 9:14 AM, Brian Gallew wrote: > On Jun 29, 2011, at 9:05 AM, Nigel Kersten wrote: > >> I've long wanted the equivalent of a "conffile" in Puppet. >> >> e.g. "replace this file if it's still the same as the one Puppet put down, >> but if it's been modified from the default, d

Re: [Puppet Users] Deployed but unmanaged file

2011-06-29 Thread Craig White
Thanks - answers inline... On Jun 29, 2011, at 8:57 AM, Daniel Piddock wrote: > On 29/06/11 16:34, Craig White wrote: >> This seems to work but it does seem perilous and ugly. A meta description of >> what I am trying to do is: >> - install firebird sql server >> - replace the 'security' file wi

Re: [Puppet Users] Deployed but unmanaged file

2011-06-29 Thread Aaron Grewell
That would be sweet. For system-level files I want to overwrite and keep a known state, but at the user level I would love to be able to push a default and then let them customize. You can get something similar with concat by including a local file with additions but since modifications to the co

Re: [Puppet Users] Deployed but unmanaged file

2011-06-29 Thread Brian Gallew
On Jun 29, 2011, at 9:05 AM, Nigel Kersten wrote: > I've long wanted the equivalent of a "conffile" in Puppet. > > e.g. "replace this file if it's still the same as the one Puppet put down, > but if it's been modified from the default, don't replace it" > > I've wanted this in the past for thin

Re: [Puppet Users] Deployed but unmanaged file

2011-06-29 Thread Nigel Kersten
I've long wanted the equivalent of a "conffile" in Puppet. e.g. "replace this file if it's still the same as the one Puppet put down, but if it's been modified from the default, don't replace it" I've wanted this in the past for things like a user .rc file, where you want to be able to continuall

Re: [Puppet Users] Deployed but unmanaged file

2011-06-29 Thread Craig White
That's what I was thinking too but I worry that someone may feel compelled to tidy things up ;-) I can see it now... echo "Delete me and you will die" > /root/firebird_security_file_deployed_do_not_delete Craig On Jun 29, 2011, at 9:00 AM, Aaron Grewell wrote: > I'd be tempted to write a

Re: [Puppet Users] Deployed but unmanaged file

2011-06-29 Thread Aaron Grewell
I'd be tempted to write another file as well as part of the initial config (/var/lib/firebird/configured or something), then check for its (non)existence before pushing the file out. On Wed, Jun 29, 2011 at 8:34 AM, Craig White wrote: > This seems to work but it does seem perilous and ugly. A me

Re: [Puppet Users] Deployed but unmanaged file

2011-06-29 Thread Daniel Piddock
On 29/06/11 16:34, Craig White wrote: > This seems to work but it does seem perilous and ugly. A meta description of > what I am trying to do is: > - install firebird sql server > - replace the 'security' file with a known file > - restart the firebird service > > I'm not going to include firebird

[Puppet Users] Deployed but unmanaged file

2011-06-29 Thread Craig White
This seems to work but it does seem perilous and ugly. A meta description of what I am trying to do is: - install firebird sql server - replace the 'security' file with a known file - restart the firebird service I'm not going to include firebird::install class because the part that worries me i