http://docs.puppetlabs.com/facter/latest/core_facts.html#operatingsystemrelease

http://docs.puppetlabs.com/facter/latest/core_facts.html#operatingsystemmajrelease

http://docs.puppetlabs.com/references/latest/function.html#versioncmp

and an example:
http://www.mail-archive.com/puppet-users%40googlegroups.com/msg18460.html

And, if you have filebucket turned on, you can back out any changes made by a 
run.

On Apr 19, 2014, at 8:38 PM, Jasmine Lognnes 
<princess.jasmine.logn...@gmail.com> wrote:

> Dear all =)
> 
> I have a CentOS5 node that I would like to upgrade to CentOS6, but how can I 
> trust that my CentOS5 node manifest won't destroy the config files on the 
> CentOS6 node because the config files have changed from CentOS5 to CentOS6?
> 
> How do you prevent this kind of situation? Do you make a copy of all the 
> CentOS5 config files and diff them with the CentOS6 ones? If, how do you do 
> that in an automated way?
> 
> Kindest regards
> Jasmine =)
> 
> 
> 
> -- 
> 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 puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/37b6aaa9-e4ba-4f45-a743-be37c1a682e5%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

"Sometimes I think the surest sign that intelligent life exists elsewhere in 
the universe is that none of it has tried to contact us." 
Bill Waterson (Calvin & Hobbes)

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/28AFB3BC-74F4-4C19-B1C0-8B59E6B4F243%40comcast.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to