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 ? {
/5.(\d)/ =
puppet:///modules/kerberize/system-auth-ac,
/6.(\d)/ =
puppet:///modules/kerberize/system-auth-ac.centos6,
},
That example points to a different configuration file based on the OS
release number (this example is for CentOS). So the first condition
is true if 5.x and the second for anything 6.0 and so on. Should be
similar once you have your custom fact made.
- Trey
On Aug 6, 2:08 am, carl carlla...@gmail.com wrote:
Hi,
I have a few virtuozzo servers that are running different versions.
Some are running 4.0 and some are running 4.6. I am having a hard time
figuring out how to set the configuration file based on the rpm
version that is currently installed. Is there a tutorial or page that
has an example of something like this?
Thanks
--
You received this message because you are subscribed to the Google Groups
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.