Yes, Ive adresses both points to have a robust deployment solution. BTW,
this link doesnt address writing to an encrypted databag, only a regular
one.
Regards,
-- Philippe Bérard
De : Jeremiah Snapp [mailto:jeremiah.snapp@gmail.com]
Envoyé : lundi 7 janvier 2013 15:59
À : chef@lists.opscode.com
Objet : [chef] Re: RE: Re: RE: Re: Managing passwords on multiple
webapp/users creation
The following link discusses databag editing from within a recipe. Be aware
that it does come with two warnings.
- Unexpected data loss if multiple nodes edit the same databag.
- Open source chef requires the node's API client to have admin rights.
http://docs.opscode.com/essentials_data_bags_use_recipe.html#creating-and-ed
iting-data-bag-within-a-recipe
On Jan 7, 2013 8:26 AM, "Philippe Bérard" philippe.berard@jalios.com
wrote:
OK, thanks AJ for pointing this out. Still no clue for writing to encrypted
databags, though, Ill see if theres any chance to have a working
Chef::EncryptedDataBagItem.save
Regards,
-- Philippe Bérard
De : AJ Christensen [mailto:aj@junglist.gen.nz]
Envoyé : lundi 7 janvier 2013 11:46
À : chef@lists.opscode.com
Objet : [chef] Re: RE: Re: Managing passwords on multiple webapp/users
creation
That blog post an ancient and isn't even the Chef encrypted data bags. It
was John's approach before encrypted data bags were made.
http://docs.opscode.com/essentials_data_bags_encrypt.html
Cheers,
AJ
On 7 January 2013 23:44, Philippe Bérard philippe.berard@jalios.com wrote:
Hello Seth and thanks for your answer,
I've tried, maybe the wrong way, to write to encrypted databags, with no
success.
I'll follow the instructions found here
(http://lusislog.blogspot.fr/2011/01/chef-and-encrypted-data-bags-revisted.h
<http://lusislog.blogspot.fr/2011/01/chef-and-encrypted-data-bags-revisted.h
tml>
tml) , though, and publish my findings if anyone's interested.
Regards,
-- Philippe Bérard
-----Message d'origine-----
De : Seth Falcon [mailto:seth@opscode.com]
Envoyé : lundi 7 janvier 2013 06:03
À : chef@lists.opscode.com
Objet : [chef] Re: Managing passwords on multiple webapp/users creation
On Jan 4, 2013, at 1:57 AM, Philippe Bérard wrote:
Ive tried to use encrypted databags but this kind of databag cant be
written by a recipe, only read.
I'm not sure that's true. Encrypted data bags are regular data bags that the
client treats specially to decrypt with a shared secret. If you have the
shared secret, you can update/add entries and make the API call to save the
data bag item.
So if the simple shared secret approach that encrypted data bags provides
will work for you, I think you can teach your recipes to updates encrypted
data bags.