>
>Actually, it's pretty trivial.  Just put:
>Package { require => Exec["apt-get update"] }
>in the root of your manifests.  One typical place is the 
>beginning of site.pp.
>

The -y flag might be needed for it to work without user interaction.

>
>Technically, I recommend putting all your package init in a 
>class, and requiring that class in Package like this:
>Package { require => Class["apt-presetup"] }
>

This email communication and any files transmitted with it may contain 
confidential and or proprietary information and is provided for the use of the 
intended recipient only.  Any review, retransmission or dissemination of this 
information by anyone other than the intended recipient is prohibited.  If you 
receive this email in error, please contact the sender and delete this 
communication and any copies immediately.  Thank you.
http://www.encana.com


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to