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

Manage /root/.npmrc #216

Merged
merged 1 commit into from
Apr 20, 2016
Merged

Manage /root/.npmrc #216

merged 1 commit into from
Apr 20, 2016

Conversation

ghoneycutt
Copy link
Member

This is necessary to specify the _auth config key which cannot be set
using 'npm config set _auth'.

This is necessary to specify the _auth config key which cannot be set
using 'npm config set _auth'.
@ghoneycutt
Copy link
Member Author

I'm using Artifactory with an internal NPM registry. Part of that configuration is specifying _auth, though this cannot be done using npm config set _auth, which is nice, as it would expose the credentials. This PR is meant to allow that functionality.

The README states that the module manages the npmrc, which it does not, until now, though it specifically manages /root/.npmrc.

@@ -107,6 +108,12 @@
validate_string($npm_package_name)
}

if $npmrc_auth {
if is_string($npmrc_auth) == false {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did this instead of validate_string because I wanted to check for the Puppet::Error and a specific error string which can change quite a bit using validate_string() on different platforms.

@jyaworski jyaworski merged commit dc08606 into voxpupuli:master Apr 20, 2016
@ghoneycutt
Copy link
Member Author

@jyaworski Thank you!

Could you please create a new tagged release with this commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants