Issue #9322 has been reported by Alexander Piavlo.
----------------------------------------
Bug #9322: Resource defaults are not seen in defines
https://projects.puppetlabs.com/issues/9322
Author: Alexander Piavlo
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
Get
err: Failed to apply catalog: 'npm install -g less' is not qualified and no
path was specified. Please qualify the command or specify a path.
For the following
<pre>
class nodejs::npm {
include nodejs
Exec {
path => "/bin:/sbin:/usr/bin:/usr/sbin"
}
define install() {
exec { "nodejs::npm::install::${name}":
command => "npm install -g ${name}",
cwd => "/tmp",
require => Exec["npm"]
}
}
...
}
</pre>
I have to add the path explicitly in Exec["nodejs::npm::install::${name}"]
definition
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" 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-bugs?hl=en.