- From: Seth Falcon <
>
- To:
- Cc: "
" <
>
- Subject: [chef] Re: omnibus thoughts
- Date: Wed, 04 Sep 2013 14:53:02 -0700
Lusis,
A few comments below...
writes:
>
Omnibus is obviously very focused on the idea of building fat packages for
>
Opscode's various products. Not a big deal and totally understandable. It
>
feels like at this point though, omnibus has grown into a product in its
>
own right and has a community entirely outside of Chef users (folks are
>
packaging puppet this way, for instance). I feel like there's a bit of
>
conflict in those two things.
I think we'd all benefit from Omnibus being generally useful. The
conflict I'm aware of here at Opscode is one of available time. And it
is true that, at present, building mind share around omnibus is not a
top priority.
>
Right now, the omnibus-software repo is the master source/fallback for all
>
things. I haven't looked to see if this is hardcoded into omnibus itself or
>
if I'm missing something simple to override that. The software definitions
>
in omnibus-software are always going to be designed to be for
>
building/packaging all the bits of a chef-server/chef-client package.
>
They're carefully curated to ensure they all play nice with each other.
>
>
This is great for reuse/community as long as the omnibus-software repo
>
versions of packages are what you need. But if they aren't, you have to
>
start copying out individual software files into your own project. If you
>
have multiple projects internally that you build with omnibus, you have to
>
duplicate that effort across all the projects.
>
>
So I have a proposal that I think would at least help part of that (and
>
leads to a bigger question):
>
>
- Extended the project DSL to support defining an alternate source at the
>
project level as well as at the individual dependency level. Obviously the
>
sane default here (and sane default for fallback) is the opscode
>
omnibus-software repo. Something like this (in config/projects/foo.rb)
Extending things to allow specifying a list of omnibus software repos
such that package search does PATH style lookup in the repo list sounds
like a nice enhancement.
>
name 'foo'
>
master_source '<some git uri or even a remote tarball>, :branch => 'master'
>
>
dependency 'erlang', :source => '<http url or an alternate repository>'
>
dependency 'nginx' # checks local 'software' dir first -> checks
>
'master_source' -> checks opscode upstream
If you can specify the location on a per dependency basis, what happens
when two different things depend on 'nginx' from two different sources?
Is the per dependency thing something you are sure you need? Seems
easier to reason about a list of software repos defining a software
package search path.
Thinking out loud here... I could see a desire to be able to install
different versions of the same thing in a given package. It's unclear to
me if that would be best managed within omnibus or by the user
(e.g. create packages nginx-1.2, nginx-2.0).
>
The questions are if opscode would merge something like this functionality
>
being that omnibus is so sensitive to the needs of building chef packages
>
first and foremost?
The short answer is: yes, this sounds like a good change and we'd love
to see omnibus be more generally useful.
If our omnibus projects contined to work with the patch, that would make
merging it much easier.
>
"The first version of this project used Opscode's tool, but they don't seem
>
to take pull requests, so I enhanced bernd's superb fpm-cookery to create
>
Omnibus packages, and switched this project to use it." (from here:
>
https://github.com/andytinycat/puppet-omnibus/blob/master/README.md)
The context of that was very much: we open sourced a project as soon as
we could, but were super busy with six other projects and just couldn't
prioritize looking at PRs at the time. That sucks, I know, but it was
absolutely not a "we don't take pull requests" and instead a "we opened
this project while we were very busy and didn't plan ahead on responding
to PRs for it" thing.
Cheers,
+ seth
--
Seth Falcon | Development Lead | Opscode | @sfalcon
Archive powered by MHonArc 2.6.16.