A lot cleaner! Always used creates for unzipping, didn't though about using it for mkdir
Thanks! El 23/03/2014 09:56, "Stefan Schulte" <[email protected]> escribió: > On 21.03.2014 19:53, José Luis Ledesma wrote: > > I prefer the exec resource to create the mount point ( with onlyif ! > > Test-d mountpoint) and the file resource to set the proper permissions. > > > > Regards, > > That's what I'd do, too. But you can use `creates` paramter to do the > check, there is no need to invoke an external command. > > exec { 'create_mntpoint_/mnt/foo': > command => '/bin/mkdir -m 0755 /mnt/foo', > creates => '/mnt/foo', > } > > -Stefan > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/532EA212.3060008%40taunusstein.net > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAF_B3dfVkXS62kncUenVvMF9vPWizCfwv8AX%3DO8QH6Uz%2BOvHdA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
