On 6/16/2010 8:27 PM, Silviu Paragina wrote:
This is somewhat related to an older thread. The topic was how to
install some perquisite packages for puppet, like augeas, lsb-release,
cron to name just a few. Puppet is required to reinstall this packages
if they are accidentally uninstalled. Because of the nature of this
packages some puppet code should not run in this state.
/For example/ if lsb-release isn't installed, and clients are both
ubuntu and debian, the apt package shouldn't setup sources as it might
end up switching the distro. (if lsb-release isn't installed facter can
not distinguish debian from ubuntu)
Augeas resources if are included in the run end up failing the run, thus
not allowing augeas to be installed.
The following case will fail, is lsb-release is not installed:
case $lsbdistcodename {
"lenny": {...}
"lucid": {...}
}
Wouldn't that be enough?
Best Regards, David
--
dasz.at OG Tel: +43 (0)664 2602670 Web: http://dasz.at
Klosterneuburg UID: ATU64260999
FB-Nr.: FN 309285 g FB-Gericht: LG Korneuburg
--
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.