-
Notifications
You must be signed in to change notification settings - Fork 64
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
How do encrypted data bags work exactly #108
Comments
It seems it is also not valid json. What is it actually?
|
It is json but not valid, there is one , to many This thing only works on a Chef server it seems
Can encryped data bags be used when using hosted chef? |
@ostraaten seems you have a few issues going on. Your data bag is not the same as a knife config file which is what Here is an example of a knife config (ie. knife.rb) current_dir = File.dirname(__FILE__)
log_level :info
log_location STDOUT
node_name "client_name"
client_key "#{ENV['HOME']}/.chef/client.pem"
validation_client_name "chef-validator"
validation_key "#{ENV['HOME']}/.chef/chef-validator.pem"
chef_server_url "https://api.opscode.com/organizations/yourorgname"
cache_type 'BasicFile'
cache_options( :path => "#{ENV['HOME']}/.chef/checksums" )
cookbook_path ["#{current_dir}/../cookbooks",
"./cookbooks"]
cookbook_copyright "Mr. Cookbook"
cookbook_email "[email protected]"
cookbook_license "apachev2" Encrypted data bags can definitely be used with hosted chef. What I tend to do is use the knife solo data bag plugin to create my encrypted data bags:
This will create a data bag item in This is obviously not necessary, you can just:
but I like to load data bags from a file. |
The readme has some info on encrypted data bags but it still not clear to me how they can be used.
I created a file config similar to
Then when I run the command
So the command expects Ruby but the README uses Json.
The text was updated successfully, but these errors were encountered: