> If anybody has a need for a build module, please feel free to download
> it from github:
>
> http://github.com/jfqd/puppet-module-build

Thanks, this was very useful!

Maybe this deserves a new thread, but I don't think some of the logic
is working right.  Maybe its a difference with 0.25.5, but all the
execs "want" to be executed, and the download just doesn't happen if
the final build install target exists (which is an odd way of thinking
about it too ... I could see not downloading if $cwd/$filename
existed.  Maybe in 2.6 (which I haven't upgraded to) the unless
resolving to false makes the require chain break?

Anyhow, I both needed this working today and was feeling productive so
I made some modifications, hope they are helpful, including: 0.25.5
compatible (switched some ruby stuff to puppet regsubst function),
redo format/extension determining (code wouldn't let you have a custom
extension .myunusualtarball if you had defined pkg_format to be a
known type) and allow extensionless files, added "zip0" format for zip
files that don't have an initial nested directory (this "feature"
untested!!), tarballs without configure now scripts work, and the
whole thing is idempotent using notify/subscribe so you don't need
wrapper logic, the reinstall will only happen if filename/basename in
the URL changes (i.e. version) or the $creates target doesn't exist.

Oh, and since I'm on a different platform (CentOS) and I didn't want
to change the command variables in such a way that it broke for you
people that have tar in /usr/sbin (strange place to have it...), I
ended up using "path" attributes instead.   So I guess this *is*
relevant to the original post after all! ;-)

http://pastie.org/1241991

Eric

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to