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

Gitlab only accepts a deploy key to one project #34

Open
esalberg opened this issue Jul 29, 2016 · 4 comments
Open

Gitlab only accepts a deploy key to one project #34

esalberg opened this issue Jul 29, 2016 · 4 comments

Comments

@esalberg
Copy link

If you have one master that will be accessing two Gitlab projects (e.g. puppet_control and puppet_hiera), Gitlab will only let you create a deploy key to one of the two projects. The other project gets (in the UI) a section called: "Deploy keys from projects you have access to" that shows the server key that was added to the first project and has a button to click to enable it on the second as well.

If attempting to have matching deploy key resources to both projects, the following error occurs:

Error: gitlab_deploy_key::create: gitlab_deploy_key::create: #<Net::HTTPBadRequest 400 Bad Request readbody=true>
Error: /Stage[main]/Profile::Pe::Master/Git_deploy_key[add_deploy_key_to_hieradata]/ensure: change from absent to present failed: gitlab_deploy_key::create: gitlab_deploy_key::create: #<Net::HTTPBadRequest 400 Bad Request readbody=true>

The simple workaround is to go into the UI and click the button, but I wanted to raise it in case someone knew an easy way to extend the provider to handle this case.

@abrader
Copy link
Owner

abrader commented Aug 2, 2016

@esalberg I noted this before as well. I am doing a self.instances rewrite of this provider in the near future. I will keep you posted as I work to resolve this and therefore make it more useful.

@pawilon
Copy link

pawilon commented Dec 12, 2016

Definitely could use this feature as well! :)

@logicminds
Copy link

might be easier to use the gitlab gem and a few execs in the midterm

@seanodea
Copy link

seanodea commented Feb 8, 2019

Has this been resolved?

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

5 participants