-
-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/usr/bin/npm doesn't exist when setting a nodejs::npm::global_config_entry #214
Comments
Not sure that it makes a difference, but I've also had the nodejs class like this:
and had the same results |
AFAIK, you can't have a require relationship on a define. However, it does seem like we should add an include ::nodejs to that define. |
Maybe split into two subclasses and contain them. Then order the two, Rob Nelson |
@dandunckelman Is this still an issue with the latest release? |
@juniorsysadmin yes. On a 2nd puppet run, it is resolved...so it's not a deal breaker |
Tagging @ghoneycutt as this looks like the problem that #221 was supposed to solve. |
You shouldn't need the arrow syntax. The define will include the nodejs class. You are mixing |
I've since updated my class to this:
and still receive the error on the first run when the ta_linux::ta_nodejs class is loaded by another class like this:
|
Can anyone else report that this is still occurring? |
Closing due to no further reports providing confirmation of a bug. |
On a fresh install of an Ubuntu v14.04 node I come across an issue where Puppet fails to set the global_config_entry because /usr/bin/npm doesn't exist.
Here's my manifest:
When I run my acceptance test for this manifest, it works as expected.
But when I run my acceptance test for another class that loads this ta_linux::ta_nodejs class, it results in this error:
I have the require relationship between the nodejs class and the global_config_entry define, but that doesn't enforce the installation of npm before trying to set that configuration option.
Obviously, this is pretty obscure and difficult to reproduce (outside of my own environment), but if anyone has any insight here, I'm all ears.
Thanks
The text was updated successfully, but these errors were encountered: