Re: [Puppet Users] Re: Control directory mode only on creation?

2013-06-21 Thread Robin Lee Powell
Yeah, that's what I thought; I just hate execs. :) Thanks! On Thu, Jun 20, 2013 at 06:03:54PM -0700, Michael Dodwell wrote: exec { command = mkdir /somedir; chown newuser /somedir, unless = test -d /somedir } On Friday, June 21, 2013 8:24:59 AM UTC+10, Robin Powell wrote: Is

[Puppet Users] Re: Control directory mode only on creation?

2013-06-20 Thread Michael Dodwell
exec { command = mkdir /somedir; chown newuser /somedir, unless = test -d /somedir } On Friday, June 21, 2013 8:24:59 AM UTC+10, Robin Powell wrote: Is there a way to make a directory and set its owner and mode and so on only if it didn't exist? That is: I don't want to *reset* the