Hi Stefan

you're solution is what I did before I posted to the list, but I feel it's
too much of a hack and think that there are cleaner and better ways to do
it.


On Sun, Mar 23, 2014 at 9:57 AM, Stefan Schulte <
[email protected]> wrote:

> 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/CA%2BB25Bx1UUNStJ9rd2%3DoCbdvDfj-0MfUxj9TeLCGs6%3DfeKrSpw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to