- From: Dreamcat4 <
>
- To:
- Subject: [chef] Re: Re: Custom resources and providers
- Date: Tue, 18 Jan 2011 21:35:35 +0000
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=L504YAaU95BFdAViN7mi9B1pQyt/SNjmF3WRVCbtC5+2R5pVBE7vDdsmtL4nnb+5ow XIGCIyKJ/YzR5zxkDODZbLDluG6WhBfcPo7umK1R4PzYSlGVYcsSMuFzA9TUNw+8s/+7 wEyRTZzaS55+aKmvR3Xm5HMuLYhwnDUARpm5g=
Well I have written a few custom Chef Resources in my cookbooks.
Those cookbooks are: dreamcat4/site-cookbooks/restart and
dreamcat4/site-cookbooks/rvm on GitHub. Actually the file is always in
/libraries/ subfolder of the cookbook.
But whatever your preconceptions - we all recommend that you give LWRP
a shot first of all. Its reasonably powerful and if you can do it in
LWRP then thats going to be the preferred / supported way.
Although im not sure exactly what Opscode would want from you in terms
of contributing an LWRP Mercurial VCS Resource back into their
codebase - its an afterthought. I assume thats what you were really
trying to figure out there.
On Mon, Jan 17, 2011 at 10:08 PM, Stephen Nelson-Smith
<
>
wrote:
>
Hi Niall,
>
>
A lightweight resource provider that implemented mercurial calls would be
>
amazingly valuable, especially as we seek to reach out to the Python/Django
>
community. Not sure what your time constraints are, but we're putting on
>
Chef training at the end of the month, and Joshua would be around to give
>
some direction on this. The training will cover LWRP at a high level - the
>
advanced training in Ghent at the end of that week will cover it in more
>
detail.
>
>
In the meantime, if you fancy meeting up for a coffee to chat about it, or
>
to pair for a couple of hours, give me a shout - I'm in London a few days a
>
week.
>
>
Best,
>
>
S.
>
>
On 17 Jan 2011, at 20:48, Niall Napier wrote:
>
>
> Hi,
>
>
>
> I use Mercurial to manage my software repositories and would like to
>
> deploy them with Chef. I have been unable to find any information about
>
> this online and I have found limited documentation that explains how to
>
> roll your own Resources and Providers.
>
>
>
> Is it possible to write a Provider/Resource that implements SCM and is
>
> part of a chef cookbook rather than the installed chef package? I found
>
> the following page on the Opscode wiki
>
> http://wiki.opscode.com/display/chef/Providers but it suggests that
>
> implementing a Provider should be integrated into the chef package.
>
>
>
> Any information you can provide would be greatly appreciated.
>
> Niall Napier
>
> London, United Kingdom
>
>
>
> | www.napes.co.uk
>
>
>
>
>
>
Archive powered by MHonArc 2.6.16.