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

PermissionsException when using nexus_proxy_repository #106

Open
fletchowns opened this issue Jan 6, 2015 · 4 comments
Open

PermissionsException when using nexus_proxy_repository #106

fletchowns opened this issue Jan 6, 2015 · 4 comments

Comments

@fletchowns
Copy link

In my recipe I have:

nexus_user "admin" do
    email "somebody@somewhere.com"
    old_password "admin123"
    password "shhh"
    action :change_password
end

nexus_proxy_repository "jboss-public-releases" do
    url "https://repository.jboss.org/nexus/content/groups/public-jboss/"
end

My chef run fails on the nexus_proxy_repository line with:

NexusCli::PermissionsException
------------------------------
Your request was denied by the Nexus server due to a permissions error. You will need to administer the Nexus or use a different user/password in .nexus_cli.

Where does nexus_proxy_repository get the credentials from?

@fletchowns
Copy link
Author

I've also noticed the behavior is different depending on if I'm doing testing in vagrant + chef-solo vs. a real node interacting with chef-server. It seems to work fine in local testing and then fails on the real node.

@fletchowns
Copy link
Author

@KAllan357 would this conditional ever evaluate to true? I can't figure out where default_admin_credentials_updated gets assigned to true.

@KAllan357
Copy link
Contributor

Its possible this is an edge case. It has been a while since I wrote that particular bit, it could be that I was expecting this attribute to be set on the Chef Environment after you know that the password has changed.

I'd be happy to accept a change to make any of this flow a bit nicer. It might be valid to expect an encrypted databag to hold some special "Chef" user in Nexus who's creds you can us on all Chef runs. Otherwise, an alternative I've been suggesting is to abandon the LWRP style of converging a Nexus server and just using a template for the different XML files that configure your server.

@fletchowns
Copy link
Author

Cool, thanks for the info. I'll take a stab at reworking the flow a bit.

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

No branches or pull requests

2 participants