hi,

i get the following error:

Parameter path failed on File[${nagiospluginsdir}/${pname}]: File paths
must be fully qualified, not '${nagiospluginsdir}/${pname}'

plugin.pp:

define nrpeplugins::plugin(
  $nagiospluginsdir = $nrpeplugins::params::nagiospluginsdir,
  $nrpepluginsdir = $nrpeplugins::params::nrpepluginsdir,
  $nrpeservice = $nrpeplugins::params::nrpeservice,
  $pname = $title
) {

  file { '${nrpepluginsdir}/${pname}.cfg':
#  file { 'newnrpe':
#    path => '${nrpepluginsdir}/${pname}.cfg',
    ensure => file,
    owner => root,
    group => root,
    mode => '0644',
    content => template('nrpeplugins/nrped.erb'),
    notify => Service['${nrpeservice}']
  }

  file { '${nagiospluginsdir}/${pname}':
#  file { 'newscript':
#    path => '${nagiospluginsdir}/${pname}',
    ensure => file,
    owner => root,
    group => root,
    mode => '0755',
    source  => 'puppet:///modules/nrpeplugins/${pname}'
  }

}

thanks,
peter

-- 
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/CAKiz-NeK2sHR7oCNdybEwxbwKx0M0n5bfk1mf%2BHnxScoq3bUHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to