Re: [Puppet Users] Is it possible to conditionally replace a file ?

2012-01-04 Thread Thomas Bellman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2011-11-28 16:01, Dan White wrote: In my users class, I want to be able to push out custom dot-files when the user account is first created. Unfortunately, if one sets user:managehome = true, the dotfiles are created by default and the custom

Re: [Puppet Users] Is it possible to conditionally replace a file ?

2011-11-29 Thread Martin Alfke
On 28.11.2011, at 19:18, Stefan Schulte wrote: [...] Thanks for responding. I agree, globally customizing the defaults is one way to go, but I am shooting for the second option. If you do not want the gobal defaults copied why are you using managehome = true? If you really have to

Re: [Puppet Users] Is it possible to conditionally replace a file ?

2011-11-29 Thread Daniel Pittman
On Tue, Nov 29, 2011 at 04:07, Martin Alfke tux...@gmail.com wrote: On 28.11.2011, at 19:18, Stefan Schulte wrote: [...] Thanks for responding. I agree, globally customizing the defaults is one way to go, but I am shooting for the second option. If you do not want the gobal defaults

[Puppet Users] Is it possible to conditionally replace a file ?

2011-11-28 Thread Dan White
As far as I can tell, the replace parameter is all or nothing. What I am looking for is something like the exec/onlyif parameter that I can use to conditionally replace a file. Any thoughts ? “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that

Re: [Puppet Users] Is it possible to conditionally replace a file ?

2011-11-28 Thread Bruce Richardson
On Mon, Nov 28, 2011 at 02:22:51PM +, Dan White wrote: As far as I can tell, the replace parameter is all or nothing. What I am looking for is something like the exec/onlyif parameter that I can use to conditionally replace a file. Any thoughts ? There is more than one way to do

Re: [Puppet Users] Is it possible to conditionally replace a file ?

2011-11-28 Thread Dan White
- Bruce Richardson itsbr...@workshy.org wrote: On Mon, Nov 28, 2011 at 02:22:51PM +, Dan White wrote: As far as I can tell, the replace parameter is all or nothing. What I am looking for is something like the exec/onlyif parameter that I can use to conditionally replace a file.

Re: [Puppet Users] Is it possible to conditionally replace a file ?

2011-11-28 Thread Bruce Richardson
On Mon, Nov 28, 2011 at 03:01:14PM +, Dan White wrote: Thanks for responding. Nice tag line. OK, more details: In my users class, I want to be able to push out custom dot-files when the user account is first created. Unfortunately, if one sets user:managehome = true, the dotfiles

Re: [Puppet Users] Is it possible to conditionally replace a file ?

2011-11-28 Thread Dan White
- Bruce Richardson itsbr...@workshy.org wrote: On Mon, Nov 28, 2011 at 03:01:14PM +, Dan White wrote: Thanks for responding. Nice tag line. OK, more details: In my users class, I want to be able to push out custom dot-files when the user account is first created.

Re: [Puppet Users] Is it possible to conditionally replace a file ?

2011-11-28 Thread Stefan Schulte
On Mon, Nov 28, 2011 at 04:00:48PM +, Dan White wrote: - Bruce Richardson itsbr...@workshy.org wrote: You realise that this is being done by Unix (Linux?), not Puppet? If you use puppet to replace the system's default dotfiles (on Linux, they'll be in /etc/skel) *before* creating