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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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 <nyshadhamsri...@gmail.com> 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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Sriram Nyshadham
2011-Jul-07 19:17 UTC
Re: [Puppet Users] Re: $pdprop doesnt work with folder?
Thanks Luke. I fixed it. On Thu, Jul 7, 2011 at 8:55 PM, Luke Bigum <Luke.Bigum@lmax.com> wrote:> 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 <nyshadhamsri...@gmail.com> 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 puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.