Puppet on OpenSuSE & SLES

3,703 views
Skip to first unread message

Julien C.

unread,
Mar 12, 2012, 10:19:24 AM3/12/12
to puppet...@googlegroups.com
Hi,

I'm a big fan of Puppet and managed to have my company accept it.
However, I'm having issues deploying it (I'm used to the debian version which works perfectly out of the box) :

- There doesn't seem to be an official repository for Suse (I've seen it mentionned in the bugtracker but yum.puppetlabs.com doesn't contain SUSE packages).
- I can't find a package for ruby-shadow.
- I can't find a package for augeas either.

I circumvented these problems by installing Puppet by hand (tarball) and writing ugly code (execs) to manage config files and user passwords. 
However, I'd like to know if I missed anything or if you can suggest solutions for any of these 3 issues...

Cheers,

Darin Perusich

unread,
Mar 12, 2012, 1:03:20 PM3/12/12
to puppet...@googlegroups.com
Hi Julien,

While there is no "official" repo from puppet labs for OpenSuSE/SuSE
systems, there is an up to date repo in OBS,
home:/eclipseagent:/puppet, see link below. Ben, the maintainer, and I
make a pretty good effort to ensure the packages are updated, tested,
and include all those dependencies not distributes to SuSE. We've also
had some minimal discussion about pushing these packages into the
"sysetmsmanagement" OBS repo but we just haven't had the time. I also
maintain the "zypprepo" module which can be gotten from Puppet Forge,
again link below.

I build the srpm's and deploy from a local repo to all my hosts,
instead of pointing them at OBS. It's a little more work on my part,
but it affords me tighter control on the packages so I can test things
before I deploy.

http://download.opensuse.org/repositories/home:/eclipseagent:/puppet/
http://download.opensuse.org/repositories/systemsmanagement/
http://forge.puppetlabs.com/darin/zypprepo
--
Later,
Darin

> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/vbFHM5R8Q_4J.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.

Julien C.

unread,
Mar 12, 2012, 1:47:30 PM3/12/12
to puppet...@googlegroups.com
Hi, thank you for your answer, I didn't know about your repository. It will definitely help on my most recent servers.

However, that only solves part of my problem : about two thirds of my servers still run SLES 10.
Even if SLES 10 isn't listed in the Supported Operating Systems page, puppet (installed by hand) runs fine on it.

Darin Perusich

unread,
Mar 12, 2012, 2:26:19 PM3/12/12
to puppet...@googlegroups.com
You can still build for unsupported SuSE distro's via the build
service, we're doing this in the server:monitoring repo for SLES10,
you just need to manually add. them. It shouldn't be a problem as long
as all the ruby requirements are there. I'll take a look at enabling
this.

--
Later,
Darin

> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/puppet-users/-/viotSZofy8MJ.

Julien C.

unread,
Mar 12, 2012, 2:40:44 PM3/12/12
to puppet...@googlegroups.com
That would be great! Anything I can do to help?

Jeffrey Watts

unread,
Mar 12, 2012, 4:46:17 PM3/12/12
to puppet...@googlegroups.com
I took the RHEL/EPEL RPMs for ruby-shadow and puppet and rebuilt them for SLES.  There are very few things that need changing.  The RHEL/EPEL RPMs have really well put together SPECfiles.

I believe I posted the SPECfile diff for puppet to this list a month or so ago.  You might search the archives.  Mostly what I did was comment out the Red Hat specific dependencies - it was really easy.  You can build without Augeas if you're not using it.

Good luck.
Jeffrey.

Julien C.

unread,
Mar 13, 2012, 11:38:10 AM3/13/12
to puppet...@googlegroups.com
By the way, I just noticed the version in your repo is 2.7.10, which shouldn't be used according to puppetlabs.
Any chance you can make the time to push a new version ?

Dan White

unread,
Mar 13, 2012, 11:48:37 AM3/13/12
to puppet...@googlegroups.com
You mean like 2.7.12 that was just announced ?

http://www.mail-archive.com/puppet...@googlegroups.com/msg29190.html

:)

----- Julien C. <corn...@gmail.com> wrote:
> By the way, I just noticed the version in your repo is 2.7.10, which
> shouldn't be used according to puppetlabs.
> Any chance you can make the time to push a new version ?

“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)

Julien C.

unread,
Mar 13, 2012, 1:00:55 PM3/13/12
to puppet...@googlegroups.com
Or fallback to 2.7.9 maybe ?

Darin Perusich

unread,
Mar 14, 2012, 2:05:03 PM3/14/12
to puppet...@googlegroups.com
The package has been updated to 2.7.14 in the repo.

--
Later,
Darin

>> > puppet-users...@googlegroups.com.


>> > For more options, visit this group at
>> > http://groups.google.com/group/puppet-users?hl=en.
>

> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/puppet-users/-/yfkT93nEabAJ.


>
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to

> puppet-users...@googlegroups.com.

Julien C.

unread,
Mar 14, 2012, 6:14:10 PM3/14/12
to puppet...@googlegroups.com
Wow, I didn't even know it was out. Thanks !

>> > puppet-users+unsubscribe@googlegroups.com.


>> > For more options, visit this group at
>> > http://groups.google.com/group/puppet-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/yfkT93nEabAJ.
>
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to

> puppet-users+unsubscribe@googlegroups.com.

r0k5t4r

unread,
Mar 29, 2012, 9:03:42 AM3/29/12
to puppet...@googlegroups.com, wa...@jayhawks.net
Hi,

would you mind sharing the specfile you have used to build ruby-shadow?

Regards,
Oliver

r0k5t4r

unread,
Mar 29, 2012, 9:10:10 AM3/29/12
to puppet...@googlegroups.com, wa...@jayhawks.net

Darin Perusich

unread,
Mar 29, 2012, 1:03:36 PM3/29/12
to puppet...@googlegroups.com, wa...@jayhawks.net
You can grab the .spec from the build service project or the srpm links below.

http://download.opensuse.org/repositories/home:/eclipseagent:/puppet/
https://build.opensuse.org/project/show?project=home%3Aeclipseagent%3Apuppet

--
Later,
Darin

> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/puppet-users/-/z_oXvCuaLJsJ.


>
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to

> puppet-users...@googlegroups.com.

Darin Perusich

unread,
Oct 22, 2012, 3:57:00 PM10/22/12
to puppet...@googlegroups.com
Hi Niels,

The only thing those SuSE packages are missing, imo, is the
ruby-shadow packages and dependency. I've been meaning to submit
ruby-shadow and an updated spec to systemsmanagement:puppet just
haven't had the time.

--
Later,
Darin


On Mon, Oct 22, 2012 at 1:18 AM, Niels Abspoel <abo...@gmail.com> wrote:
> Or you can go to https://build.opensuse.org/
>
> They have two projects running:
> 2.7.19: systemsmanagement-puppet
>
> 3.0.0: systemsmanagement-puppet-devel-package=puppet
>
> and my own
> 3.0.1: home-Aaboe76-branches-systemsmanagement-puppet-devel
>
> These are packages build for suse and tested on my machine.
>
> Greetz,
> Niels
>
>
> Op donderdag 29 maart 2012 15:03:36 UTC+2 schreef Darin Perusich het
> volgende:
>>
>> You can grab the .spec from the build service project or the srpm links
>> below.
>>
>> http://download.opensuse.org/repositories/home:/eclipseagent:/puppet/
>>
>> https://build.opensuse.org/project/show?project=home%3Aeclipseagent%3Apuppet
>>
>> --
>> Later,
>> Darin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/-vYDo6vaqmIJ.

Niels Abspoel

unread,
Oct 23, 2012, 9:14:48 PM10/23/12
to puppet...@googlegroups.com
I see, just finished puppet 3.0.1 package in my home projects and made a request to systemsmanagement:puppet:devel to be included.

To make it fully functional we need ruby-shadow package in some suse repo...
maybe we can use the same sources as :rubygem-hiera and adjust it for ruby-shadow



Op maandag 22 oktober 2012 17:57:27 UTC+2 schreef Darin Perusich het volgende:

Niels Abspoel

unread,
Oct 23, 2012, 9:55:55 PM10/23/12
to puppet...@googlegroups.com
Hi Darin,

To save you some time:
can you take a look at this package:

Somebody on opensuse build service made a very old ruby-shadow package and I updated the spec file for ruby-shadow 2.1.4.
I also cleaned the old sources and patches.

https://build.opensuse.org/package/show?package=ruby-shadow&project=home%3Aaboe76%3Abranches%3Ahome%3Amcadet

Op maandag 22 oktober 2012 17:57:27 UTC+2 schreef Darin Perusich het volgende:

Niels Abspoel

unread,
Oct 29, 2012, 6:32:38 AM10/29/12
to puppet...@googlegroups.com
Hi Darin,

The puppet package has been updated in systemsmanagement:puppet:devel in opensuse build service to include ruby-shadow.
Hope this package will become the new puppet package in opensuse 12.3. en SLES.

It works great on my own machine. Maybe we can update the spec file with the spec file from opensuse build service?

Darin Perusich

unread,
Oct 30, 2012, 2:43:39 PM10/30/12
to puppet...@googlegroups.com
Why did they put it in systemsmanagement:puppet:devel instead of
systemsmanagement:puppet? Having a separate devel project seems kinda
fragmented and unnecessary to me.

Is the a reason for packaging it as a gem? I haven't done any ruby
packaging in OBS, only perl, so i dont' know if that's preferred. The
spec should also be updated with a Provides: ruby-shadow so any
systems that have a ruby-shadow package installed trigger a conflict.

--
Later,
Darin
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/LujHjEL98JwJ.

Niels Abspoel

unread,
Oct 31, 2012, 6:44:12 AM10/31/12
to puppet...@googlegroups.com
Darin,

I don't know why they made it a rubygem-ruby-shadow package, in my own repo, it is ruby-shadow.
Will ask on irc when I have some time.

I think the reason is that the systemsmanagement:puppet code is used by many users, and to
develop a build with opensuse it is easier to branch and merge back.

systemsmanagement:puppet:devel looks like a separate repo, but is a branch of systemsmanagement:puppet,
Only one merge command and it will be the default in systemsmanagement:puppet.

Need to ask the maintainer about the changes, and see if it can be included.

--
Niels

Op dinsdag 30 oktober 2012 15:44:31 UTC+1 schreef Darin Perusich het volgende:

Ashley Gould

unread,
Nov 21, 2012, 8:59:04 PM11/21/12
to puppet...@googlegroups.com, Ashley Gould
Hello Niels,

I found this thread and I am installing puppet-3.0.1-2.1.x86_64.rpm from
http://download.opensuse.org/repositories/systemsmanagement:/puppet/SLE_11_SP2/

The init script /etc/init.d/puppet in this rpm has an error and will not run on
puppet 3.0, because the script sets the puppet binary to /usr/sbin/puppetd,
which no longer is used.

I have revised the script for my site, but I would like to see this fixed
in the OBS repo as well. Who should I contact to help contribute changes?
I have not use OBS before to maintain packages.




On Mon, Oct 22, 2012 at 08:08:50AM -0700, Niels Abspoel wrote:
> If you don't want to compile it yourself:
>
> Look at these:
> home project:
> https://build.opensuse.org/package/show?package=puppet&project=home%3Aaboe76%3Abranches%3Asystemsmanagement%3Apuppet%3Adevel
>
> devel project maintainer opensuse
> https://build.opensuse.org/project/show?project=systemsmanagement%3Apuppet%3Adevel
>
> official maintainer project:
> https://build.opensuse.org/package/show?package=puppet&project=systemsmanagement%3Apuppet
>
>
> Op donderdag 29 maart 2012 15:03:36 UTC+2 schreef Darin Perusich het
> volgende:
> >
> > You can grab the .spec from the build service project or the srpm links
> > below.
> >
> > http://download.opensuse.org/repositories/home:/eclipseagent:/puppet/
> >
> > https://build.opensuse.org/project/show?project=home%3Aeclipseagent%3Apuppet
> >
> > --
> > Later,
> > Darin
> >
> > On Thu, Mar 29, 2012 at 5:03 AM, r0k5t4r <oliver_...@gmx.de <javascript:>>
> > wrote:
> > > Hi,
> > >
> > > would you mind sharing the specfile you have used to build ruby-shadow?
> > >
> > > Regards,
> > > Oliver
> > >
> > > Am Montag, 12. M�rz 2012 17:46:17 UTC+1 schrieb Jeffrey Watts:
> > >>
> > >> I took the RHEL/EPEL RPMs for ruby-shadow and puppet and rebuilt them
> > for
> > >> SLES. There are very few things that need changing. The RHEL/EPEL RPMs
> > >> have really well put together SPECfiles.
> > >>
> > >> I believe I posted the SPECfile diff for puppet to this list a month or
> > so
> > >> ago. You might search the archives. Mostly what I did was comment out
> > the
> > >> Red Hat specific dependencies - it was really easy. You can build
> > without
> > >> Augeas if you're not using it.
> > >>
> > >> Good luck.
> > >> Jeffrey.
> > >>
> > >> On Mon, Mar 12, 2012 at 5:19 AM, Julien C. <corn...@gmail.com<javascript:>>
> > wrote:
> > >>>
> > >>> Hi,
> > >>>
> > >>> I'm a big fan of Puppet and managed to have my company accept it.
> > >>> However, I'm having issues deploying it (I'm used to the debian version
> > >>> which works perfectly out of the box) :
> > >>>
> > >>> - There doesn't seem to be an official repository for Suse (I've seen
> > it
> > >>> mentionned in the bugtracker but yum.puppetlabs.com doesn't contain
> > SUSE
> > >>> packages).
> > >>> - I can't find a package for ruby-shadow.
> > >>> - I can't find a package for augeas either.
> > >>>
> > >>> I circumvented these problems by installing Puppet by hand (tarball)
> > and
> > >>> writing ugly code (execs) to manage config files and user passwords.
> > >>> However, I'd like to know if I missed anything or if you can suggest
> > >>> solutions for any of these 3 issues...
> > >>>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Puppet Users" group.
> > > To view this discussion on the web visit
> > > https://groups.google.com/d/msg/puppet-users/-/z_oXvCuaLJsJ.
> > >
> > > To post to this group, send email to puppet...@googlegroups.com<javascript:>
> > .
> > > To unsubscribe from this group, send email to
> > > puppet-users...@googlegroups.com <javascript:>.
> > > For more options, visit this group at
> > > http://groups.google.com/group/puppet-users?hl=en.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/jTcQeG0uAvwJ.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>

--

-ashley

Did you try poking at it with a stick?

Darin Perusich

unread,
Nov 22, 2012, 12:45:04 AM11/22/12
to puppet...@googlegroups.com, Ashley Gould
Ashley,

One of the nice things about OBS is you can "branch" the package,
update it, and "submit" your changes back and if/once accepted they'll
be built, packed and available in the repo for general consumption.

--
Later,
Darin

Niels Abspoel

unread,
Nov 27, 2012, 6:35:55 AM11/27/12
to puppet...@googlegroups.com, Ashley Gould
Darin has given the right answer,

Just branch the package, and submit a request.
Don't forget to add a comment in puppet.changes file before you submit it.

--
Niels


Ashley Gould

unread,
Dec 1, 2012, 12:08:04 AM12/1/12
to puppet...@googlegroups.com, Ashley Gould
Thank you for this tip. OBS is sweet, but I'm still feeling my way around.

I have branched and built locally with modified puppet-3.0.1-init.diff.
I will let my patched init script run in the wild for a week or so
and then (figure out how to) submit.

Are you aware of anyone building puppet 3.0.* for SLES10? Can we
add a SLES10 repo to the systemsmanagement:puppet project?


Darin Perusich

unread,
Dec 3, 2012, 1:21:30 PM12/3/12
to puppet...@googlegroups.com, Ashley Gould
EOL distro's can be enabled manually but you'll need to contact one of the the repo maintainers to do so. Click on the "users" tab in the webui and email one or all of the maintainers.

--
Later,
Darin


--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
Reply all
Reply to author
Forward
0 new messages