Vadym, This is not currently possible (but is a VERY wanted feature going back years). Most of us just use an Exec.
Trevor On Wed, Jun 4, 2014 at 11:34 AM, Vadym Chepkov <[email protected]> wrote: > > > On Wednesday, June 4, 2014 9:52:44 AM UTC-4, Felix.Frank wrote: >> >> Hi, >> >> On 06/04/2014 03:32 PM, Vadym Chepkov wrote: >> > File[ensure=>directory] -> Mount[type=nfs,ensure=>mounted] >> > >> > Is this possible or I have to maintain two sets of data? >> >> no, that is fine. The 'puppet magic' you are looking for is a defined >> type that accepts all the parameters you want to declare in your data. >> The implementation of the define should then "translate" them into the >> file and mount resources you want. >> >> See >> http://docs.puppetlabs.com/puppet/latest/reference/lang_ >> defined_types.html >> >> HTH, >> Felix >> > > Thank you, that is indeed what I need. > > I have one more related question though. Is it possible to create the > whole path, similar to mkdir -p for the mount points using File resource? > i.e. I will use /apps/oracle as a mount point. I want puppet to create > /apps for me. since /apps is not going to be a mount point, I would have to > track it separately and I would like to avoid it. > I suppose I can create yet another attribute, like "is_mount: false", but > I wonder if there is a better way to accomplish it? > > Thanks, > Vadym > > > > > > -- > 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/73bb5099-05e2-49a2-8dc2-2bf60ec36fdb%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/73bb5099-05e2-49a2-8dc2-2bf60ec36fdb%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Trevor Vaughan Vice President, Onyx Point, Inc (410) 541-6699 [email protected] -- This account not approved for unencrypted proprietary information -- -- 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/CANs%2BFoUEefNboqYiWu8aaUovDrAZ6YsCxDzMPszVEW-MF%2BBQug%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
