Re: [Puppet Users] Puppet creates a file even though an exec fails

2012-11-07 Thread Mason Turner
You want refreshonly = true on file2, as well. On Nov 7, 2012, at 3:56 PM, Chris Hirsch ch...@base2technology.com wrote: Hi all, I'm trying to figure out if my expectations are correct for this class. Basically I'd like to have file1 created and then run an exec. If that exec should

Re: [Puppet Users] Puppet creates a file even though an exec fails

2012-11-07 Thread Chris Hirsch
Except my resource is a File and not an Exec. refreshonly is invalid for a File afik. Are there alternatives you may suggest to accomplish the same? You want refreshonly = true on file2, as well. On Nov 7, 2012, at 3:56 PM, Chris Hirsch ch...@base2technology.com wrote: Hi all, I'm

Re: [Puppet Users] Puppet creates a file even though an exec fails

2012-11-07 Thread R.I.Pienaar
- Original Message - From: Chris Hirsch ch...@base2technology.com To: puppet-users@googlegroups.com Sent: Wednesday, November 7, 2012 9:18:15 PM Subject: Re: [Puppet Users] Puppet creates a file even though an exec fails Except my resource is a File and not an Exec. refreshonly

Re: [Puppet Users] Puppet creates a file even though an exec fails

2012-11-07 Thread Chris Hirsch
Except my resource is a File and not an Exec. refreshonly is invalid for a File afik. Are there alternatives you may suggest to accomplish the same? I believe this is http://projects.puppetlabs.com/issues/5876 in action :( Bummer! Especially since I added a me-too to that bug over a

Re: [Puppet Users] Puppet creates a file even though an exec fails

2012-11-07 Thread Chris Hirsch
This example *may* be able to get me though this: file{/tmp/file1: content=file1} ~ exec{ /bin/false: refreshonly = true, notify = Exec[file2]} - exec {file2: command = touch /tmp/file2, refreshonly = true } of course I'll have to create the file though the file2 exec instead. -- You