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

KNIFE-494 add options for secret and secret_file to support encrypted data bags #113

Merged
merged 2 commits into from
Jun 24, 2014
Merged

Conversation

jvervlied
Copy link

When using encrypted data bags, the current plugin uses the soon to be deprecated encrypted_data_bag_secret and encrypted_data_bag_secret_file options. This patch updates knife openstack server create to use the same functionality as knife bootstrap. Also it allows for command line switches to use this functionality instead of having to embed it in the knife.rb file.

The warning included was copied directly out of knife bootstrap.

@btm
Copy link
Contributor

btm commented Jun 23, 2014

It would be good to get some unit tests in here to ensure this functionality doesn't get lost, similar to knife-ec2/c28939.

But looks 👍. @mattray ?

ui.warn(<<-WARNING)
Specifying the encrypted data bag secret key using an 'encrypted_data_bag_secret'
entry in 'knife.rb' is deprecated. Please see CHEF-4011 for more details. You
can supress this warning and still distribute the secret key to all bootstrapped
Copy link
Contributor

Choose a reason for hiding this comment

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

I realize you copied this from another file, but suppress is the correct spelling and would be good to fix.

@jvervlied
Copy link
Author

My bad on the misspelling. I've corrected it.

mattray pushed a commit that referenced this pull request Jun 24, 2014
KNIFE-494 add options for secret and secret_file to support encrypted data bags
@mattray mattray merged commit 01da671 into chef:master Jun 24, 2014
@mattray
Copy link
Contributor

mattray commented Jun 24, 2014

This is included in knife-cloud, I believe we're close to a knife-openstack based on it.

@tas50 tas50 added Type: Enhancement Adds new functionality. and removed Enhancement labels Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Adds new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants