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

encrypted_data_bag_secret not found #24

Closed
devilankur18 opened this issue Nov 28, 2013 · 3 comments
Closed

encrypted_data_bag_secret not found #24

devilankur18 opened this issue Nov 28, 2013 · 3 comments

Comments

@devilankur18
Copy link

I am using encrypted data bag secret in my recipe. So when I run it using this plugin its breaking due to following error

Errno::ENOENT

No such file or directory - file not found '/tmp/kitchen/encrypted_data_bag_secret'

Any thoughts on how to make it work ?

@fnichol
Copy link
Contributor

fnichol commented Nov 30, 2013

Sorry about this, I believe that test-kitchen/test-kitchen@76bf1ca in Test Kitchen core will address this. New RC release that contains the fix very shortly.

You can confirm this works in a 1.0.0.rc.1 release or higher by typing kitchen list --debug and inspecting the value of encrypted_data_bag_secret_key_path in the configuration output.

Now you can put the encrypted_data_bag_secret_key_path option under a suite (as before), or in a provisioner block that could be located in a suite, platform, in the root of the YAML document:

---
driver:
  name: vagrant

provisioner:
  name: chef_solo
  encrypted_data_bag_secret_key_path: /a/custom/path

platforms:
  - name: ubuntu-12.04
    provisioner:
      encrypted_data_bag_secret_key_path: relative/paths/are/expanded

suites:
  - name: server
    encrypted_data_bag_secret_key_path: /this/is/now/a/legacy/location/which/is/maintained
    provisioner:
      encrypted_data_bag_secret_key_path: /this/works

Also, Test Kitchen will automatically look for the following files which will enable the option (first match wins):

  1. test/integration/<suite_name>/encrypted_data_bag_secret_key
  2. test/integration/encrypted_data_bag_secret_key
  3. ./encrypted_data_bag_secret_key

If you're still having an issue and the above doesn't address it, please reopen.

Hope this helps!

@fnichol fnichol closed this as completed Nov 30, 2013
@devilankur18
Copy link
Author

Thanks @fnichol I have tried moving it ./encrypted_data_bag_secret_key and it worked perfectly.

@fnichol
Copy link
Contributor

fnichol commented Nov 30, 2013

Woot, great!

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

2 participants