[Puppet Users] Re: Config files based on rpm version

2011-08-07 Thread John Martin
You could creat a fact that returns the version number of the package installed. Then in the configuration file use Boolean logic to set values and blocks of the config file templates accordingly. Note that there is a puppet function you will need to compare the version strings however I don't

[Puppet Users] Re: Config files based on rpm version

2011-08-07 Thread treydock
To get the version you'll likely have to use facts, but once you have the facts you can use something like the following... file { /etc/pam.d/system-auth-ac: source = $operatingsystemrelease ? {