- From: Joshua Miller <
>
- To:
- Subject: [chef] Re: extending the resource
- Date: Thu, 29 Jul 2010 15:29:41 -0700
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=ahDacA+Tn8/7tCiQCvvWuKKxhKl0TtxBGwS71MRYS5+9iUsb+6NMfxwtNYrRTAi498 ++uk2q2glxJbNmqVp01vf/Wa0GFMCQNcpEqB3L+Fwj+xTwSljWiL9H4KLijjleIlqQ0t 20d70Y9ZbD6CzGaaNlx/PsZbuC9aoZbb4HJX8=
how are your users defined? I know that opscode is using a data bag, so you
could just add a field in there and have a recipe walk the user list and drop
in the ssh key for each user. Remember if your using a nfs home share only
run the recipe on one system to save a lot of data bag processing.
Joshua
On Jul 29, 2010, at 3:10 AM, Dmitry V'yal wrote:
>
Greetings,
>
>
Is there a convenient way to extend built-in chef resources? Right now I'm
>
thinking about the User resource. For my purposes it would be nice to have
>
an attribute for managing contents of ~/.ssh/authorized_keys. Of course, I
>
could have patched chef sources, but maybe a better way exists.
>
>
Thanks,
>
Dmitry
Archive powered by MHonArc 2.6.16.