[openstack-dev] [puppet] Running Debian packages on top of Trusty
iberezovskiy at mirantis.com
Fri Oct 2 14:35:45 UTC 2015
thanks for bringing up this topic, that's what I wanted to discuss on next
puppet-openstack irc meeting.
So, user case is following: users may want to install Debian packages on
Ubuntu host or vice versa,
the same problem can probably happen with CentOS, RHEL, Fedora; or users
may use non-official
package repositories with their own package (service) naming strategy and
Current situation in puppet modules is following that package and service
names are (let's say)
hardcoded in 'params' class (e.g. ). But in situation that I've
described it won't work.
Puppet will try to use Ubuntu names on Ubuntu host and it won't allow to
install and work with
I've researched puppet modules and found an interesting example which can
help to solve
this issue. It's implemented in puppetlabs mongodb module:
they have 'globals' class  that allows to override most part of
parameters from 'params' class .
So, I've decided to rework this soltuion and use it in OpenStack modules.
As result I got draft patch
for ceilometer module . By default we use parameters from 'params'
class, but every parameter
can be now overridden using 'globals' class.
OpenStack Puppet team, what do you think about this solution?
Also, I'l bring up this topic on weekly puppet-openstack irc meeting.
 - https://review.openstack.org/#/c/229918/
2015-10-02 15:43 GMT+03:00 Ivan Udovichenko <iudovichenko at mirantis.com>:
> On 10/02/2015 03:15 PM, Emilien Macchi wrote:
> > Hey Thomas,
> > On 10/02/2015 04:33 AM, Thomas Goirand wrote:
> > [...]
> >> We also may need, at some point, to add the type mosdebian and moscentos
> >> to the list of supported package suite, as there still will be some
> >> differences between the upstream Debian or CentOS packages. What is the
> >> best way to add this variable values?
> >> Could you Puppet experts explain to me and my Mirantis colleagues again?
> > So we partially discussed about that during our last weekly meeting 
> > and it come out the best way to support both Debian & Ubuntu are Puppet
> > conditionals, like we already have in place.
> > 
> It does not solve the original problem. Let's say you want to install
> Debian packages on-top of Ubuntu, it will fail and you will have to use
> workarounds, for example in the params.pp  you have specified.
> > See the example with puppet-nova |2] where we use $::operatingsystem
> > fact  to detect if we're running Ubuntu or Debian.
> > If we're running Ubuntu, we take reference from UCA packaging. If
> > Debian, we take your work as reference.
> > 
> >  https://puppetlabs.com/facter
> What we need is some variable which can override the decision which
> Operating System is used and thereby required packages will be
> installed. At least for Debian, that is what we really need.
> I'd be grateful if you look into it. Thank you.
> >> Sorry that I didn't take notes about it and couldn't explain,
> >> Cheers,
> >> Thomas Goirand (zigo)
> >> P.S: Where may I find the best tutorial to get up-to-speed about puppet,
> >> so that I know what I'm talking about next time?
> > I personally learnt (and am still learning) by using official
> > documentation , that I suggest you to start with.
> >  http://docs.puppetlabs.com/puppet/
> > Hope it helps,
> > OpenStack Development Mailing List (not for usage questions)
> > Unsubscribe:
> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
Thanks, Ivan Berezovskiy
MOS Puppet Team Lead
at Mirantis <https://www.mirantis.com/>
phone: + 7-960-343-42-46
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev