As most of you know, we haven't been keeping up to date in our Rails
dependencies - until 0.25, Puppet only worked with Rails 2.0 or so.
As an attempt to fix this, we've made sure we're now compatible with
2.3, and I've set up the dependencies so that it *only* works with
2.3. I did this because it seems better to fail immediately than deal
with the stupidities resulting from incompatibilities.
It's been brought to my attention that, at the least, this change in
requirement should be listed on the release doc for 0.25 (which it
definitely should), but that also most distros are running far behind
2.3, and are more likely to be running something like 2.1.
Does anyone know enough about Rails to know whether we can reasonably
provide compatibility to a range of releases? Are we being too
restrictive by requiring a specific version?
--
It is odd, but on the infrequent occasions when I have been called upon
in a formal place to play the bongo drums, the introducer never seems
to find it necessary to mention that I also do theoretical physics.
-- Richard Feynman
---------------------------------------------------------------------
Luke Kanies -|- http://reductivelabs.com -|- +1(615)594-8199
[*snip*]
> Does anyone know enough about Rails to know whether we can reasonably
> provide compatibility to a range of releases? Are we being too
> restrictive by requiring a specific version?
I'm not a 'rails guy' but in general I think that might be too
restrictive (at least for my production environment). In that case what
I would probably end up doing, because (for me) disk space is cheap,
would be to compile a custom version of ruby/rails/other dependencies
and point puppet at that tree.
Is the situation bad enough to say you need at least >=2.0?
I actually don't mind having the restriction I'll just need to hack
around it :)
Cheers,
Ryan
>
> Actually I was curious if puppet could include it's own vendor
> dependencies in much the same way that a rails app would include a
> vendor directory?
>
> Might make it easier to just include what you need and not fall back
> on
> external dependencies other than ruby.
This is one of the things I hate most about the Rails community -- I
complain about it so loudly that some Rails dev friends of mine make a
shirt that says "I just put it in vendor!".
Basically, if you do this you're saying that you don't need or trust
packaging, which is the road to support nightmares.
I'd rather spend a bit of extra effort in Puppet trying to support
multiple versions than try to ship Rails (which is huge, relatively
speaking) as part of Puppet.
--
He is indebted to his memory for his jests and to his imagination for
his facts. --Richard Brinsley Sheridan
> I use puppet to manage my rails servers and can personally tell you
> it is a best practice with Rails applications to lock them to a
> specific version. This is because so much changes in the underlying
> versions.
>
> As far as distros being behind and around 2.1. This is mostly true,
> but at the same time, puppet in most distros is behind also. If you
> are installing puppet via gems it is not difficult also install
> rails via gems. If you are installing from source then the
> installing probably has the knowledge required to install rails 2.3
> also.
>
> So as a user I would actually prefer puppet being locked to the most
> recent supported version of rails. It would make life easier for me.
> As I currently have to have two separate rails profiles to handle
> rails on the puppet server and rails on a rails server.
Is there something about Rails discussions that suddenly makes people
top-reply? :)
We can handle gems requiring the correct version pretty easily, but
managing the distros is less easy.
Seems like we should either require an older version, or see if we can
support, say, 2.1-2.3.
Is anyone in a position to be able to test the current code (minus the
2.3 restriction) on these three versions of Rails?
--
Criminal: A person with predatory instincts who has not sufficient
capital to form a corporation. --Howard Scott
Are you thinking of f0eaf20 (Fixing #2764 ActiveRecord 2.1 support)?
(Not that this proves you are _not_ crazy or anything.)
--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I am in shape. Round is a shape.