If you are actually managing apt and need to trigger an apt-update
before a package install I can highly recommend the puppetlabs/apt
module on puppet forge I am using it in my environments and it does a
very good job at managing all of apt and friends.
https://forge.puppetlabs.com/puppetlabs/apt

If that really isn't the case and that was just an example the require
metaparameter is probably what you are looking for.
http://docs.puppetlabs.com/references/stable/metaparameter.html#require

On 25 July 2014 01:42, Dimitris Stafylarakis <[email protected]> wrote:
> Hi all,
>
> I have a question for the experts in the group:
>
> say there's an exec resource dependent on some other resource and
> refreshonly=> true. As we know already, a change in the dependent resource
> will send a refresh event to the exec resource. This will however be
> scheduled for AFTER the change in the dependent resource (e.g. change a
> configuration file for apache and then reload the service). I'd like to know
> if it's possible to schedule the exec resource BEFORE the change (e.g. run
> apt-get update before upgrading a package).
>
> Any insights? Thanks in advance
>
> Best regards,
> Dimitris
>
> --
> 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/6e39d56f-234c-4e30-a645-b2c941020bc3%40googlegroups.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/CAJ8DPF79GAigC1P5%2BcGnLtH8RUi5cXqviQpvck7KTBc%3DZk4YYw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to