If you interpolate variable you have to use " instead of '.
So it should be
source => "puppet:///modules/repo/rhel-${::lsbdistrelease}_64.repo",

Regards,
El 25/07/2014 01:44, "Vikas Kumar" <[email protected]> escribió:

Hi CD,

Just tried these too, but somehow puppet is not honoring any variables in
the resources.

baseurl     => http://192.168.1.100/centos/$releasever/os/$basearch,
and
baseurl     => "http://192.168.1.100/centos/$releasever/os/$basearch";,

Somehow, notify is working fine.

notify {'FYI': message => "Setting up Repo for a $operatingsystem
$lsbdistrelease system", }


Regards,
Vikas



On Friday, 25 July 2014 09:37:17 UTC+10, CD wrote:
>
> Hi Vikas,
>
> This is not the solution to your question but possibly alternative option.
>
> It seems you want to generate a yum repo url for specific OS version so
> that it picks-up correct version arch etc.
>
> How about if you use following and set up repos to match.
> baseurl=http://<repo server>/centos/$releasever/os/$basearch/
>
> Regards,
> CD
>
>  --
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/c6a8075c-7596-4d16-bae5-21fa0d99a520%40googlegroups.com
<https://groups.google.com/d/msgid/puppet-users/c6a8075c-7596-4d16-bae5-21fa0d99a520%40googlegroups.com?utm_medium=email&utm_source=footer>
.

For more options, visit https://groups.google.com/d/optout.

-- 
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/CAF_B3ddTAtO8JUuKGCTq2m6gw7Qe1LboaPie6s%2BVYxUMmzbKpA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to