That's what the notify parameter in the mount resource does. -- Peter
> On Mar 24, 2014, at 5:38 AM, Dirk Heinrichs <[email protected]> wrote: > > Am 21.03.2014 18:48, schrieb Peter Bukowinski: > >> exec { 'fix_mount_perms': >> command => 'chmod 2755 /app_dir && chown root:root /app_dir', >> refreshonly => true, >> } >> >> Setting the exec's refreshonly parameter to true prevents it from running >> every time, but it will run any time the mount resource changes. > > Shouldn't you add "subscribe=>Mount['/app_dir']", then? Otherwise, there's > nothing that triggers the refresh. > > Bye... > > Dirk > -- > <Logo.gif> > Dirk Heinrichs, Senior Systems Engineer, Engineering Solutions > Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach > Tel: +49 2226 1596666 (Ansage) 1149 > Email: [email protected] > Skype: dirk.heinrichs.recommind > www.recommind.com > -- > 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/532FFD22.9040502%40recommind.com. > 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/CF965776-EECC-482E-B415-F8BC8D9A0604%40gmail.com. For more options, visit https://groups.google.com/d/optout.
