Hi Jose,
I tried this, didn't worked for me :(
'6': {
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',
}
Got this message in the log file.
Fri Jul 25 12:51:12 +0530 2014 /Stage[main]/Repo::Rhel/File[/etc/yum.repos.d
/RHEL-6.4.repo] (err): Could not evaluate: Could not retrieve information
from environment production source(s) puppet:
///modules/repo/rhel-${::lsbdistrelease}_64.repo
This is the file on the server.
# ls -l /etc/puppet/modules/repo/files/rhel-6.4_64.repo
-rw-r--r-- 1 root root 205 Jul 24 12:09 /etc/puppet/modules/repo/files/rhel-
6.4_64.repo
#
Have I made a mistake anywhere ?
Thanks in advance.
Regards,
Vikas
On Friday, 25 July 2014 17:03:34 UTC+10, Jose Luis Ledesma wrote:
>
> If you interpolate variable you have to use " instead of '.
> So it should be
> source => "puppet:///modules/repo/rhel-${::lsbdistrelease}_64.repo",
>
> Regards,
>
--
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/f23af645-db50-4f84-bd42-544cd1e4dec4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.