That's good to know that there is '$operatingsystemrelease' built-in variable. But I have other applications with version files and I need to run specific class/command based on versions. Any suggestions how I should go around it?
On Aug 8, 2:52 pm, "Kinzel, David" <david.kin...@encana.com> wrote: > >I'm trying to write a script that runs command based on version of > >Redhat OS. For example, if the RHEL version is 6.0, it will run > >command. I was able to write file read script in ruby that would read > >file and execute but it didn't seem to work in puppet script. Has > >anyone done something like this? > > Look at the pre-built $operatingsystemrelease fact before you try to > roll your own. > > This email communication and any files transmitted with it may contain > confidential and or proprietary information and is provided for the use of > the intended recipient only. Any review, retransmission or dissemination of > this information by anyone other than the intended recipient is prohibited. > If you receive this email in error, please contact the sender and delete this > communication and any copies immediately. Thank you.http://www.encana.com -- 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.