Puppet agent 3.8.x on AIX 7.x

516 views
Skip to first unread message

Jean-Francois Gratton

unread,
Nov 2, 2015, 3:33:51 PM11/2/15
to Puppet Users, jean-franc...@banquelaurentienne.ca
Hi,

I've looked around to find an answer, all I could find seemed to be badly outdated.

I'm looking to either sources or binaries to get a Puppet 3.8.x agent working on AIX 7.x .

I understand I might get into dependency hell, or whatnot. I don't mind; I don't mind having to build my own ruby/puppet/facter/ssl stack if it's absolutely needed.


Any pointers on where I could get an answer ? As I said, everything I've found seemed to be quite outdated (either old Puppet version, or older AIX version, sometimes both).

Regards,

--Jeff

Michael Stahnke

unread,
Nov 2, 2015, 6:08:31 PM11/2/15
to puppet...@googlegroups.com, jean-franc...@banquelaurentienne.ca
On Mon, Nov 2, 2015 at 11:46 AM, Jean-Francois Gratton <grat...@gmail.com> wrote:
Hi,

I've looked around to find an answer, all I could find seemed to be badly outdated.

I'm looking to either sources or binaries to get a Puppet 3.8.x agent working on AIX 7.x .

Welcome to the fun :) 

I understand I might get into dependency hell, or whatnot. I don't mind; I don't mind having to build my own ruby/puppet/facter/ssl stack if it's absolutely needed.

You can take the sources from github at a tag (like 3.8.3 of puppet) and the versions of that stack for facter/hiera/ Also all sources for our projects have tarballs up at downloads.puppetlabs.com

There are a few odd issues with Ruby on AIX, I'd use 1.9.3 as Puppet 3.8 isn't guaranteed against Ruby 2.1.  

 


Any pointers on where I could get an answer ? As I said, everything I've found seemed to be quite outdated (either old Puppet version, or older AIX version, sometimes both).

We also sell that with Puppet Enterprise if building it yourself sounds less than fun. (PS it's not that fun sometimes, as that's what my team does for Puppet Enterprise). 

 

Regards,

--Jeff

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/218eab52-8477-41a7-8489-a19dc92629a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jean-Francois Gratton

unread,
Nov 3, 2015, 8:59:50 AM11/3/15
to Puppet Users, jean-franc...@banquelaurentienne.ca

That was a fast answer, Michael, I appreciate.

 

I’ll have a go at it this week and will report on how much fun it was :-)

 

I don't mind building stuff, actually (although on AIX that'd be a first for me : let's double the fun !).


Regarding PE, I wouldn't mind, provided I can get the buy-in from Management; I'm having an expanded PoC with the Community version, and, if it succeeds I'll try to pressure Management to get the funds and from there.


Regards,

 

--Jeff

Zee Alexander

unread,
Nov 3, 2015, 12:58:03 PM11/3/15
to Puppet Users, jean-franc...@banquelaurentienne.ca
It's worth noting that Facter is no longer really maintained as a Ruby application. It's now a C++ application.

Today you can use a recent version of Puppet with the last version of Facter released as a pure Ruby application. This means that for the most part, all you need to get working to get Puppet functional on AIX is Ruby (and maybe some native gems that need to be compiled).

Eventually, one would assume recent versions of Puppet will start requiring more recent versions of Facter, written in C++, and you'll have figure out how to compile that for AIX. You're probably going to have a bad time :)

I'm a huge fan of Puppet Open Source, but if you are trying to run Puppet on AIX, Puppet Enterprise is really your best bet.

Jean-Francois Gratton

unread,
Nov 3, 2015, 1:06:39 PM11/3/15
to Puppet Users, jean-franc...@banquelaurentienne.ca
Thanks for the heads up for Facter. Thing is, unless I really want to recompile everything, I'm stuck for the time being a mix of Puppet 3.4.x and 3.8.x (Solaris offers 3.4 right now, and I don't have the courage, basically, to recompile/repackage it if I can avoid it; AIX, I cannot avoid it, so far).

I've no objection to go with PE, but as I said, I'm afraid I won't be able to get Management on my side for this. I hear there's a 20nodes version of PE available, I'll have to check its licensing to see if I'm allowed to use it in a corporate environment as a PoC. This might help me get the buy-in.

--Jeff

On Monday, 2 November 2015 15:33:51 UTC-5, Jean-Francois Gratton wrote:

Zee Alexander

unread,
Nov 3, 2015, 1:33:17 PM11/3/15
to puppet...@googlegroups.com
Well, you do still have the option of compiling C++ Facter for AIX, if you want to go that route.

--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/2t38s3PJWcw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/00a1114e-9fa0-4ea8-b694-353c66998e9f%40googlegroups.com.

Ryan Anderson

unread,
Nov 3, 2015, 9:48:36 PM11/3/15
to Puppet Users
I've gotten puppet open source 3.7.x working on AIX, I haven't updated to 3.8, but I'm sure that would be trivial. The steps are basically:
- Install the ruby 2.0.0 AIX rpm from perzl.org, plus its dependencies
- Create directories: mkdir -p /etc/puppet /var/lib/puppet
- Use the ruby gems to install puppet and its dependencies from rubygems.org: /opt/freeware/bin/gem install puppet -v 3.8.4
- Create a working /etc/puppet/puppet.conf
- Run puppet: /opt/freeware/bin/puppet agent -t
- Create a traditional init script + links
- For convenience: cd /usr/bin; ln -s /opt/freeware/bin/puppet; ln -s /opt/freeware/bin/facter
- Note: you won't see 'puppet' in the default ps output, it will show up as 'ruby'

Michael Stahnke

unread,
Nov 3, 2015, 10:17:48 PM11/3/15
to puppet...@googlegroups.com
For this one, there's a patch we created in Ruby 2.1 for PE and it's in Ruby 2.2 that fixes that issue. 

--

You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c951e768-fcf2-497a-834c-a175cee1b1da%40googlegroups.com.

Zee Alexander

unread,
Nov 3, 2015, 10:52:55 PM11/3/15
to puppet...@googlegroups.com
I believe they actually accepted the patch upstream...finally. No telling when that'll make it into the easily accessible Ruby builds for AIX though.

--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/2t38s3PJWcw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMto7L%2BG5qVgttzgwfXFEqv3aRjTuFZ2Ym7n%2BdzL-F1zsNVObw%40mail.gmail.com.

Toni Schmidbauer

unread,
Nov 8, 2015, 4:13:27 AM11/8/15
to Jean-Francois Gratton, Puppet Users, jean-franc...@banquelaurentienne.ca
Jean-Francois Gratton <grat...@gmail.com> writes:
> I'm looking to either sources or binaries to get a Puppet 3.8.x agent
> working on AIX 7.x .

we are building rpms for puppet on aix, the spec files are available on
github:

https://github.com/nosolutions/puppet-aix

it's a little bit outdated, but upgrading the specs to 3.8.4 should be no
problem.

one requirement is xlc, the ibm c compiler. we are using a 60 day test
license which is available from ibm. afaik you just download the xlc
compiler and it includes the eval license.

hth,
toni

Toni Schmidbauer

unread,
Nov 8, 2015, 4:16:54 AM11/8/15
to Jean-Francois Gratton, Puppet Users, jean-franc...@banquelaurentienne.ca
Jean-Francois Gratton <grat...@gmail.com> writes:
> 3.4.x and 3.8.x (Solaris offers 3.4 right now, and I don't have the
> courage, basically, to recompile/repackage it if I can avoid it; AIX,
> I cannot avoid it, so far).

regarding solaris you could always switch to opencsw:

https://www.opencsw.org/packages/CSWpuppet3/

it currently comes with 3.7.4, but an upgrade to 3.8.4 is planed.
we are using opencsw puppet on solaris 10/11 sparc and i86pc.

toni

Jean-Francois Gratton

unread,
Nov 9, 2015, 10:09:31 AM11/9/15
to Puppet Users, grat...@gmail.com, jean-franc...@banquelaurentienne.ca
I'm actually using the CSW packages for Solaris, even though I don't like the idea of having a whole lot of dependencies attached to a few needed binaries/packages (but hey, that's CSW for you !).

For the AIX rpms, I have a whiz for building on AIX (which is not my OS of choice), I'll let you know what goes with this.

thanks for your replies !

--Jeff

Omen Wild

unread,
Nov 9, 2015, 6:53:07 PM11/9/15
to puppet...@googlegroups.com, Jean-Francois Gratton, jean-franc...@banquelaurentienne.ca
Quoting Toni Schmidbauer <toni+pup...@stderr.at> on Sun, Nov 08 10:16:
>
> regarding solaris you could always switch to opencsw:
>
> https://www.opencsw.org/packages/CSWpuppet3/
>
> it currently comes with 3.7.4, but an upgrade to 3.8.4 is planed.

Any idea what the timeframe for the 3.8.4 packages is? We have been using
OpenCSW for a while, but we have a Puppet 4 migration planned for any day
now. Having a 3.8.4 package would prevent me from having to move to GEM
based Puppet for our Solaris(ish) boxes.

Thanks

--
Omen Wild
Systems Administrator
Metro Cluster

Toni Schmidbauer

unread,
Nov 10, 2015, 11:55:02 AM11/10/15
to Omen Wild, puppet...@googlegroups.com, Jean-Francois Gratton, jean-franc...@banquelaurentienne.ca
Omen Wild <om...@ucdavis.edu> writes:

> Quoting Toni Schmidbauer <toni+pup...@stderr.at> on Sun, Nov 08 10:16:
>>
>> regarding solaris you could always switch to opencsw:
>>
>> https://www.opencsw.org/packages/CSWpuppet3/
>>
>> it currently comes with 3.7.4, but an upgrade to 3.8.4 is planed.
>
> Any idea what the timeframe for the 3.8.4 packages is? We have been using
> OpenCSW for a while, but we have a Puppet 4 migration planned for any day
> now. Having a 3.8.4 package would prevent me from having to move to GEM
> based Puppet for our Solaris(ish) boxes.

ok, i'll try to push 3.8.4 to the unstable catalog in the next
days. hopefully i just have to bump the version :-)

i'll announce the upgraded package on the csw-users list.

toni
--
Don't forget, there is no security | toni at stderr dot at
-- Wulfgar | Toni Schmidbauer

Toni Schmidbauer

unread,
Nov 11, 2015, 7:35:38 AM11/11/15
to Omen Wild, puppet...@googlegroups.com, Jean-Francois Gratton, jean-franc...@banquelaurentienne.ca
Omen Wild <om...@ucdavis.edu> writes:
> Any idea what the timeframe for the 3.8.4 packages is? We have been using
> OpenCSW for a while, but we have a Puppet 4 migration planned for any day
> now. Having a 3.8.4 package would prevent me from having to move to GEM
> based Puppet for our Solaris(ish) boxes.

so there's an experimental puppet 3.8.4 package available for puppet.
it would be great if you could give it a try:

pkgutil -t http://buildfarm.opencsw.org/opencsw/experimental/puppet3 -u puppet3

if it works for you, i'm going to push it to unstable.

thanks for your help
toni

Omen Wild

unread,
Nov 12, 2015, 1:03:10 PM11/12/15
to Toni Schmidbauer, puppet...@googlegroups.com, Jean-Francois Gratton, jean-franc...@banquelaurentienne.ca
Quoting Toni Schmidbauer <toni+pup...@stderr.at> on Wed, Nov 11 13:35:
>
> so there's an experimental puppet 3.8.4 package available for puppet.
> it would be great if you could give it a try:
>
> pkgutil -t http://buildfarm.opencsw.org/opencsw/experimental/puppet3 -u puppet3
>
> if it works for you, i'm going to push it to unstable.

This version of Puppet looks like it works on a test OmniOS box (small
caveat on CSWfacter, see below). It installed, and applied no resources,
just like I would expect since nothing had changed on the server.

One thing that would be nice is if puppet3 could depend on the CSWfacter2
package. The upgrade to the experimental Puppet removed CSWfacter2 and
re-installed CSWfacter. I manually installed CSWfacter2 (pkgutil -i
CSWfacter2) and it works without any issues for me.

Thanks for the updated package!

Toni Schmidbauer

unread,
Nov 12, 2015, 2:48:32 PM11/12/15
to Omen Wild, Toni Schmidbauer, puppet...@googlegroups.com, Jean-Francois Gratton, jean-franc...@banquelaurentienne.ca
Omen Wild <om...@ucdavis.edu> writes:
> One thing that would be nice is if puppet3 could depend on the CSWfacter2
> package. The upgrade to the experimental Puppet removed CSWfacter2 and
> re-installed CSWfacter. I manually installed CSWfacter2 (pkgutil -i
> CSWfacter2) and it works without any issues for me.

thanks for testing. the issue with facter2 is that i took over
maintainer-ship of the package and it already had a dependency on facter. i
didn't change this because suddenly people would get facter2 when
updating the puppet3 package.

i'm going to push the package to unstable within the next days.

thanks
toni
Reply all
Reply to author
Forward
0 new messages