Bug #9322
Resource defaults are not seen in defines
| Status: | Accepted | Start date: | 09/04/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% | |
| Category: | exec | |||
| Target version: | - | |||
| Affected Puppet version: | 2.7.3 | Branch: | ||
| Keywords: | ||||
Description
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
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"]
}
}
...
}
I have to add the path explicitly in Exec[“nodejs::npm::install::${name}”] definition
History
#1
Updated by James Turnbull over 1 year ago
- Status changed from Unreviewed to Needs More Information
- Assignee set to Alexander Piavlo
What version is this?
#2
Updated by Alexander Piavlo over 1 year ago
It was 2.7.3 the last time i’ve checked
#3
Updated by Alexander Piavlo over 1 year ago
- Assignee changed from Alexander Piavlo to James Turnbull
#4
Updated by James Turnbull over 1 year ago
- Category set to exec
- Status changed from Needs More Information to Accepted
- Assignee deleted (
James Turnbull) - Affected Puppet version set to 2.7.3