- From: Russ Lavoy <
>
- To: Russ Lavoy <
>, Daniel DeLeo <
>
- Cc: "
" <
>
- Subject: [chef] Re: Re: Re: Re: Issue with encrypted data bags
- Date: Tue, 18 Jun 2013 13:32:34 -0700 (PDT)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=B72pHtmKUJA1c0NG83MdFnr+597m23uyMdVDaEbNOdweZTUpBLEmgluDFG8Pf+6tfrKHHq/Ue4p/Tj1GTWlefqKMGGVgCC6Rzt2a+ONcv+7waM+J4NyREPuJA3Qhb4imCnug7xGYAOJcfLTT0KiXrQQexfymqUidsNKFdJ1Y+Gg=;
I just upgraded the client on the vagrant system..
chef-client -v
Chef: 11.4.4
Still have the same issue.
Thanks
From: Russ Lavoy <
>
To: Daniel DeLeo <
>
Cc: "
" <
>
Sent: Tuesday, June 18, 2013 3:29 PM
Subject: [chef] Re: Re:
Re: Issue with encrypted data bags
My chef client on vagrant is:
chef-client -v
Chef: 10.14.2
My knife command was:
knife data bag create production passwords --secret-file
/etc/chef/encrypted_data_bag_secret
Thanks,
From: Daniel DeLeo <
>
To: Russ Lavoy <
>
Cc:
"
" <
>
Sent: Tuesday, June 18, 2013 3:22 PM
Subject: Re: [chef] Re: Re: Issue with encrypted data bags
I am having an issue with encrypted data bags with chef 11.4.4 and vagrant 1.2.2.
I was able to successfully create, show encrypted and decrypted data bags with no issue via knife.
But once I dropped it into a recipe it threw me an error.
Here is the portion of the recipe that does not error.
secret = Chef::EncryptedDataBagItem.load_secret("#{node[:production][:secretpath]}") - This spits back the contents of the /etc/chef/encrypted_data_bag_secret
When I add the below it throws an error
pass_keys = Chef::EncryptedDataBagItem.load("production", "passwords", secret)
<error>
[2013-06-18T18:43:48+00:00] FATAL: Chef::Exceptions::ValidationFailed: Data Bag Items must contain a Hash or Mash!
</error>
Not sure why I am getting this issue.
Any help would be good.
Thanks!
A few questions:
* How'd you upload the data bag item to the server? (Specific knife command)
* What version of Chef client is running?
--
Daniel DeLeo
Archive powered by MHonArc 2.6.16.