i wonder why this case fail:
case puppetversion {
''0.22.4'':{
#ok
notice(''ok bonne version'')
}
default:{
fail("mauvaise version de puppet $puppetversion,
downgrade vers 0.22.4")
}
}
gives me:
protos:/usr/local/.aqadmin/home%(aqadmin)> facter puppetversion
0.22.4
protos:/usr/local/.aqadmin/home%(aqadmin)> /usr/bin/sudo
/usr/bin/puppetd --config /usr/local/.aqadmin/etc/puppetd.conf --onetime
--test
info: Loading fact local
info: Retrieving facts
info: Loading fact local
notice: Ignoring cache
err: Could not retrieve configuration: mauvaise version de puppet
0.22.4, downgrade vers 0.22.4 at /etc/puppet/manifests/site.pp:58
i try to force puppet to downgrade to 0.22.4 if it detect any other
version then stop. It seems detecting the version does not work as
espected from me and even with that i do not find a way to say "after
the upgrade stop or restart".
Any idea ?
--
Cordialement,
Ghislain
_______________________________________________
Puppet-users mailing list
Puppet-users@madstop.com
https://mail.madstop.com/mailman/listinfo/puppet-users