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

Credentials does not update existing credential #379

Open
Perdjesk opened this issue Sep 24, 2015 · 1 comment
Open

Credentials does not update existing credential #379

Perdjesk opened this issue Sep 24, 2015 · 1 comment
Labels
bug Something isn't working

Comments

@Perdjesk
Copy link

Starting configuration

site.pp

node default {
 jenkins::credentials { '[email protected]':
  password => '',
  private_key_or_path => hiera('blu::deploy_key'),
  uuid => 'cf2baae7-a2c0-4fda-ba23-88c816aaef68',
 }
}

base.yaml

blu::deploy_key: "privatekey"

Apply

puppet apply site.pp

The credential is created and set to file path "privatkey"

Modify hiera

Modification of hiera to change the private key.

base.yaml

blu::deploy_key: "privatekey2nd"
puppet apply site.pp

The value of the credential is still "privatekey".

It seems that the 'grep' at this line should contain all the information of the credential and not only the title.

@Perdjesk Perdjesk changed the title Credentials does not update extisting credential Credentials does not update existing credential Sep 26, 2015
@jhoblitt
Copy link
Member

jhoblitt commented Oct 2, 2015

@Perdjesk I have posted an alternative type named jenkins_credentials that could potentially replace jenkins::credentials. I wouldn't suggest trying it "in production" but it may be worth testing to see if it resolves this issue. #382

@jhoblitt jhoblitt added the bug Something isn't working label Oct 12, 2015
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

No branches or pull requests

2 participants