- From: Peter Donald <
>
- To:
- Subject: [chef] Re: lwrp based on the omnibus configuration DSL ?
- Date: Wed, 31 Jul 2013 12:52:07 +1000
Hi,
On Fri, Jul 26, 2013 at 2:29 AM, Bryan Berry
<
>
wrote:
>
Some time ago, I created the ark LWRP to handle the unpack, configure, link,
>
install dance. I was never quite happy with it, primarily because it
>
conflated two separate concerns that are best handled by diffferent LWRPS,
>
1) getting a tarball and 2) configuring its contents along the
>
configure-make-symlink lines. I have written a new LWRP for doing the
>
download part and I hope I get the chance to open-source it some time soon.
Just as a heads up I started down the same path with [1] and have
started using it fairly extensively on both windows and linux. I did
run into a few issues with regards to symlinks under windows as the
builtin link resource does not work on windows when the target is
updated.
Other than that I am fairly happily using it to do versioned archive
downloads on multiple platforms. On both platforms I tend to have
downstream build steps that use notifications.
One of the pain points was different applications requiring/wanting
different layouts. Although it has yet to be fully merged upstream I
ended up going down the path of having to support multiple strategies
for dealing with different layouts. From memory, some of the
strategies looked like
/usr/local/foo -> /usr/local/foo-2.3
vs
/usr/local/foo/versions/current -> /usr/local/foo/versions/2.3
vs
/usr/local/foo/cur -> /usr/local/foo/2.3
etc
Anyhoo I would e very interested in seeing what you have come up with.
As the work on archive was initially inspired by ark
[1]
https://github.com/realityforge/chef-archive
--
Cheers,
Peter Donald
Archive powered by MHonArc 2.6.16.