Your variable $pdprop is not being expanded as a variable as you've
got the string enclosed in single quotes ''.

Try:

source  => "puppet:///modules/nrpe/plugins/tomcat-$pdprop"

-Luke

On Jul 7, 1:51 pm, Sriram Nyshadham <[email protected]> wrote:
>  Hi,
>
> Could someone please confirm if the following works or not?
>
> file {
>     '/usr/lib64/nagios/plugins/tomcat':
>       ensure => directory,
>       ignore => '.svn',
>       recurse => true,
>       recurselimit => 1,
>       owner => sega, group => sega, mode => 755,
>       source  => [
>          'puppet:///modules/nrpe/plugins/tomcat-$pdprop',
>          #'puppet:///modules/nrpe/plugins/tomcat'
>            ];
>
> When use this code, I am getting the following error on client:
>
> err: //nrpe::tomcat/File[/usr/lib64/nagios/plugins/tomcat]: Failed to
> retrieve current state of resource: Could not retrieve information from
> source(s) puppet:///modules/nrpe/plugins/tomcat-$pdprop at
> /home/snyshadham/puppet/modules/nrpe/manifests/init.pp:154
>
> It works when I use it for a single file.
>
> Any help would be greatly appreciated.
>
> Thanks,
> Sri

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to