Issue #9322 has been updated by James Turnbull. Category set to exec Status changed from Needs More Information to Accepted Assignee deleted (James Turnbull) Affected Puppet version set to 2.7.3
---------------------------------------- Bug #9322: Resource defaults are not seen in defines https://projects.puppetlabs.com/issues/9322 Author: Alexander Piavlo Status: Accepted Priority: Normal Assignee: Category: exec Target version: Affected Puppet version: 2.7.3 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.
