On Thursday, February 09, 2023 14:51 CET, Giovanni Bechis 
<giova...@openbsd.org> wrote:

> On 1/30/23 21:42, Sebastian Reitenbach wrote:
> > Hi,
> >
> > with Puppet 5 now replaced by Puppet 7, the ability to run a Puppet master 
> > on OpenBSD was gone.
> > These two new packages replace the old PuppetDB 5, with PuppetDB 7 and 
> > introduces the new Puppetserver.
> >
> > Similarly to systuls/ruby-puppet, they go into branches based on the major 
> > version, to have future room for Puppet 8.
> > Their paths where software gets installed is aligned to Puppet, under 
> > /var/puppetlabs/... /usr/local/share/puppetlabs/... etc.
> >
> > Puppetserver usually comes bundled with a Ruby interpreter and Puppet 
> > agent. That doesn't work out
> > on OpenBSD. Therefore some bootstrapping has to be done manually that is 
> > OpenBSD specific, and noted
> > in the Puppetserver pkg/README.
> >
> >   A couple of tweaks I had to do to my hiera files, as well as to some of 
> > the modules, mostly updating
> > them. Overall, the changes weren't that big. As everyone might have 
> > different (custom) modules or
> > hiera plugins in use, ymmv. Therefore I can't really provide a step by step 
> > upgrade path. Install on a test
> > environment before attempting to upgrade/replace your former Puppet 5 
> > Master.
> > That said, Puppet 7 works for me standalone with puppet apply ... but also 
> > against this Puppetserver with PuppetDB backend, autosigning setup...
> >
> > comments to the ports, test reports, or maybe even OKs welcome ;)
> >
> > cheers,
> > Sebastian
> 
> Few issues:
> - puppetdb is missing pkg/README file in the tarball
> - puppetserver doesn't create /var/log/puppetlabs/puppetserver directory
revisited puppetdb and puppetserver packages. They now create 
/var/log/puppetlabs/XXX directories, as well
as I saw, also properly puppetdb vardir to the right position. While there 
exchanged a number of hardcoded /etc /var /usr/local
with respective variables. Updated dependencies a bit for puppetdb-termini. The 
main puppetdb is not really depending on it,
but puppetserver is, so made that one depending on the termini.

> - puppetserver doesn't start on my server log file attached, it seems there 
> is a dependency missing (no such file to load...).

To let the puppetserver startup properly, you have to take the initial 
bootstrapping steps as described in the README.
On other OS, puppetserver comes bundled with puppet, and a bundled Ruby etc. 
That's not possible for us, so have to
install puppet "within" puppetserver, so it's jruby interpreter can find and 
use it.

> New package doesn't upgrade from puppet5, a pkg_path is missing I think.
I'm lousy whith pkg_path thingies, and don't have a box where to properly test 
it out. those that still have Puppet5 are old,
and these that switched already, don't have puppet5 anymore. 

Esp. with the clean-up to the first two points, and taking puppetserver README 
into account, I believe things should now work
smoothly. They installed fine for me, as well as starting up.

More feedback welcome, other than that, OKs as well. If ther's oddities left, 
they can be fixed in-tree afterward.

cheers,
Sebastian

Attachment: puppetserver.tar.gz
Description: application/gzip

Attachment: puppetdb.tar.gz
Description: application/gzip

Attachment: ruby-puppetserver-ca.tar.gz
Description: application/gzip

Reply via email to