Skip to content
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

block creation of File['root_npmrc'] when running on Windows #364

Merged
merged 2 commits into from
May 7, 2018

Conversation

jhicks-camgian
Copy link
Contributor

File['root_npmrc'] resource causes module to fail on Windows.

This file resource causes the puppet-nodejs module to fail on Windows.

Excluding it seems to make the module work.   Installed node-red and node-red-contrib-amqp on Windows via npm package provider successfully with this change.
…s-elide-root_npmrc

block creation of File['root_npmrc'] when running on Windows
@juniorsysadmin juniorsysadmin added the bug Something isn't working label May 5, 2018
@juniorsysadmin
Copy link
Member

@jhicks-camgian Can you provide further detail - what Puppet version, log output etc?

@jhicks-camgian
Copy link
Contributor Author

jhicks-camgian commented May 5, 2018

Puppet 5.5.1 was used but this is an error that would seem to affect any version when used on Windows.

The code under the condition applied in the pull request assumes a Unix user/group schema with a root user.

When applied on a Windows system it attempts to create a '.npmrc' file in /root owned by uid root/gid 0 (which is not possible on Windows).

@juniorsysadmin
Copy link
Member

Have created #366 to track a proper fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants