Hi Sean/Juan,
Yes, the redhat-lsb package is installed on my RedHat 6.4 machine which is
my Puppet Client server. Puppet server is Ubuntu 14.04.
root@box27:~# rpm -qa | grep redhat-lsb
redhat-lsb-graphics-4.0-7.el6.x86_64
redhat-lsb-compat-4.0-7.el6.x86_64
redhat-lsb-core-4.0-7.el6.x86_64
redhat-lsb-4.0-7.el6.x86_64
redhat-lsb-printing-4.0-7.el6.x86_64
root@box27:~#
Also, facter is also displaying desired values.
root@box27:~# facter | egrep 'lsbdistrelease|operatingsystemrelease'
lsbdistrelease => 6.4
operatingsystemrelease => 6.4
root@box27:~#
And, I am using puppet v3.6.2-1 (installed through RPMs).
Not sure what I am missing. I have also tried to use file resource with
various combinations to make the variables work as below in vain.
file {'/etc/yum.repos.d/RHEL-6.4.repo':
ensure => present,
mode => '0644',
owner => 'root',
group => 'root',
source => 'puppet:///modules/repo/rhel-${lsbdistrelease}_64.repo',
or
source => 'puppet:///modules/repo/rhel-$lsbdistrelease_64.repo',
or
source
=> 'puppet:///modules/repo/rhel-'$lsbdistrelease'_64.repo',
or
source
=> 'puppet:///modules/repo/rhel-"$lsbdistrelease"_64.repo',
}
Any other ideas.
Regards,
Vikas
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/3f42cef1-c4ff-400d-aaee-c530028c82c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.