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

Add gpg-check to user_install recipe. #298

Merged
merged 2 commits into from
Mar 6, 2015

Conversation

cmluciano
Copy link
Contributor

RVM fails on machines with gpg installed. It checks for the
existence of gpg on the system in a ruby_block and imports the . This will allow for some
code reuse for the LWRP release.

RVM fails on machines with gpg installed. This fix checks for the
existence of gpg on the system and imports the appropriate key as
defined by the attribute. Use of a ruby_block will allow for some
code reuse in the LWRP release.
@cmluciano
Copy link
Contributor Author

I'm not sure why this test is failing. I don't have a loop as part of my ruby_block.

@cmluciano
Copy link
Contributor Author

ping @martinisoft @fnichol

@martinisoft
Copy link
Contributor

@cmluciano I'm venturing a guess that it is because you are running that resource from within the block started on line 22. Don't have an alternate suggestion at this time though.

@martinisoft
Copy link
Contributor

I'll go ahead and merge this despite the foodcritic complaint. We can address it later.

@@ -26,6 +26,27 @@
# if user hash is not a hash (i.e. set to true), init an empty Hash
opts = Hash.new if opts == true

ruby_block 'Conditionally add RVM gpg key' do
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps try changing this to:

ruby_block "Conditionally add RVM gpg key for #{user}" do

@cmluciano
Copy link
Contributor Author

Yay it works!

@cmluciano
Copy link
Contributor Author

@martinisoft Are you cool with me merging this?

@martinisoft
Copy link
Contributor

@cmluciano Go for it 👍

cmluciano added a commit that referenced this pull request Mar 6, 2015
Add gpg-check to user_install recipe.
@cmluciano cmluciano merged commit fe59ff3 into sous-chefs:master Mar 6, 2015
@cmluciano cmluciano deleted the drag00n/gpguserinstall branch March 6, 2015 16:40
@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants