Facter can help you there.
Puppet uses it to determine a bunch of facts about your server.
You don't have to have puppet to use it, if you use RHEL or Centos, you
can get it through yum.
If you run facter lsbdistrelease, will give your version.
On 8/8/11 4:30 PM, "Steve" wrote:
>That's good to k
On Aug 8, 4:48 pm, Steve 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 s
Create a custom fact for your own needs.
FYI $operatingsystemrelase (or some facts) may need the "*lsb*" packages.
(I don't have the exact name, redhat-lsb, I think, if redhat)
On Mon, Aug 8, 2011 at 6:30 PM, Steve wrote:
> That's good to know that there is '$operatingsystemrelease' built-in
>
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" wrote:
> >I'm trying to write a