[OmniOS-discuss] Question on puppet agent for OmniOS

Schweiss, Chip chip at innovates.com
Thu Feb 18 21:12:13 UTC 2016


The version in OpenCSW is quite old.  If you're starting fresh with Puppet
start with the newest version possible.   Upgrades can be very painful.

I run Puppet 4.3.2 installed from a gem.   I use Ruby from OpenCSW to make
this possible.

It's still in early development, but is working very well.   I've been
running Puppet for 5 years on Linux, just recently on OmniOS.

Soon the provision script will be on our public repo.  If any would like to
look at it now, email me and I'll send you a copy.

I have to update ruby gems before installing puppet.  The important
snippets from my provision script:

RUBYGEMS_VERSION="2.0.15"RUBYGEMS_UPDATE="rubygems-update-${RUBYGEMS_VERSION}.gem"RUBYGEMS_UPDATE_SOURCE="https://github.com/rubygems/rubygems/releases/download/v${RUBYGEMS_VERSION}"
current_gems_version=`/opt/csw/bin/gem --version`if [
"$current_gems_version" != "${RUBYGEMS_VERSION}" ]; then    wget
${RUBYGEMS_UPDATE_SOURCE}/${RUBYGEMS_UPDATE}    /opt/csw/bin/gem
install --local ${RUBYGEMS_UPDATE} && rm ${RUBYGEMS_UPDATE}fi
/opt/csw/bin/gem install --no-rdoc --no-ri puppet

-Chip


On Wed, Feb 17, 2016 at 6:01 PM, Trey Palmer <trey at mailchimp.com> wrote:

> I should add, I'd use the niksula package over CSW if you can.   I really
> appreciate their repo (and OmniOS).
>
> We only use the CSW package because at the time the available version
> happened to line up with what we were running everywhere else.   As a
> general rule, the agents shouldn't be an earlier version than your masters.
>
>
> Now niksula has 3.8.5 which I might actually be able to change to.   Using
> CSW packages intended for a diverging closed source Solaris is obviously
> gonna bite me sooner or later.
>
> As far as the manifest/method, if you run the daemon you can have puppet
> install them on the first run, and puppet's standard service resource has a
> "manifest" parameter that will "svccfg import" for you.
>
> But Lauri is right that there's no real reason to run the daemon vice from
> cron except to standardize with the rest of your org.
>
>    -- Trey
>
>
>
> On Wed, Feb 17, 2016 at 4:59 PM, Lauri Tirkkonen <lotheac at iki.fi> wrote:
>
>> On Wed, Feb 17 2016 15:52:00 -0600, Paul Jochum wrote:
>> >     Thanks for responding.  I am new to puppet, and curious, why do you
>> run
>> > it from cron, instead of in daemon mode?  Is it more secure, or is there
>> > something else I am missing?
>>
>> It used to be that the agent was leaking memory in version 2.something
>> when we first started using it. 'puppet kick' also existed then, to
>> trigger an agent run from the master, but it doesn't anymore; we don't
>> think there's any reason to run the agent as a daemon.
>>
>> --
>> Lauri Tirkkonen | lotheac @ IRCnet
>> _______________________________________________
>> OmniOS-discuss mailing list
>> OmniOS-discuss at lists.omniti.com
>> http://lists.omniti.com/mailman/listinfo/omnios-discuss
>>
>
>
> _______________________________________________
> OmniOS-discuss mailing list
> OmniOS-discuss at lists.omniti.com
> http://lists.omniti.com/mailman/listinfo/omnios-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://omniosce.org/ml-archive/attachments/20160218/7e75f65f/attachment.html>


More information about the OmniOS-discuss mailing list