./databases/puppetdb5 [fast, scalable, and reliable data warehouse for Puppet]
[+] Add this package to your ports tracker

[ CVSweb ] [ Homepage ] [ RSS feed ]

Version: 5.2.2, Package name: puppetdb-5.2.2
Maintained by: Sebastian Reitenbach
Master sites:
Description-main
PuppetDB is the fast, scalable, and reliable data warehouse for Puppet.
It caches data generated by Puppet, and gives you advanced features at
awesome speed with a powerful API.

Description-plugin
Connect Puppet to PuppetDB by setting up a terminus for PuppetDB.

README-main
$OpenBSD: README-main,v 1.1.1.1 2017/11/20 12:47:32 sebastia Exp $

+-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD
+-----------------------------------------------------------------------

Web frontend
------------
PuppetDB comes with a web frontend which reports various metric at:

http://:8080

Setting up SSL
--------------
In order for the PuppetDB to communicate with the Puppet Master you will need
to setup SSL.

As the Puppet Master need not to run on the same host as PuppetDB we will
assume your configuration is stored in ${SYSCONFDIR}/puppetlabs/puppet/ .

Now manually copy over the following .pem files from your Puppet Master into
${SYSCONFDIR}/puppetlabs/puppetdb/ssl/ (relative to ${SYSCONFDIR}/puppetlabs/puppet/):

ssl/certs/ca.pem
ssl/private_keys/.pem
ssl/certs/.pem

In order to finalize the setup now run these commands, though if the Puppet
Master runs on the same host as PuppetDB, the first command can be skipped:

# ${LOCALBASE}/share/puppetdb/cli/apps/puppetdb-ssl-setup
# puppetdb ssl-setup -f

Setup database
--------------

PuppetDB requires PostgreSQL and no longer supports the builtin KahaDB for
evaluation purposes. To setup a new database for the `puppetdb` user:

$ doas -u _postgresql createuser -U postgres puppetdb -P
$ doas -u _postgresql psql -U postgres
postgres=# create database puppetdb with owner puppetdb;

PostgreSQL indexes
------------------
When using the PostgreSQL database, it is strongly recommended to
create the pg_trgm indexes for the PuppetDB database. This extension
can be installed with:

# pkg_add postgresql-contrib

Then run the following command as the database super-user on the PuppetDB
database:

puppetdb=# CREATE EXTENSION pg_trgm;

And restart puppetdb:

# rcctl restart puppetdb

Configuring the Puppet Master
-----------------------------
Several steps are needed on the Puppet Master to make use of PuppetDB for
storing facts, reports as well as exported resources and stored
configurations.

First create ${SYSCONFDIR}/puppetlabs/puppet/routes.yaml so Puppet can store facts to PuppetDB:

---
master:
facts:
terminus: puppetdb
cache: yaml

Next create ${SYSCONFDIR}/puppetlabs/puppet/puppetdb.conf to teach Puppet how to reach PuppetDB:

[main]
server_urls = https://puppetdb.example.com:8081

`server_urls` can contain multiple values, separated by a `,` and HTTPS is required.

Finally instruct Puppet to use PuppetDB for stored configs and reports; in the
'[master]' section of ${SYSCONFDIR}/puppetlabs/puppet/puppet.conf:

reports = store,puppetdb
storeconfigs = true
storeconfigs_backend = puppetdb

PuppetDB terminus
-----------------
If the Puppet Master is running OpenBSD, you will need to install the PuppetDB
terminus plugin:

# pkg_add puppetdb-terminus



Filesize: 24840.23 KB
Version History (View Complete History)
  • (2018-04-26) Updated to version: puppetdb-5.2.2
  • (2018-03-02) Updated to version: puppetdb-5.2.0
  • (2017-12-04) Updated to version: puppetdb-5.1.3
  • (2017-11-20) Package added to openports.se, version puppetdb-5.1.1 (created)
[show/hide] View available PLISTS (Can be a lot of data)

CVS Commit History:

   2018-03-01 16:02:44 by Sebastian Reitenbach | Files touched by this commit (2)
Log message:
update to 5.2.0
   2018-03-01 16:02:44 by Sebastian Reitenbach | Files touched by this commit (2)
Log message:
update to 5.2.0
   2018-01-11 12:27:12 by Robert Peichaer | Files touched by this commit (624)
Log message:
Change the shebang line from /bin/sh to /bin/ksh in all ports rc.d
daemon scripts and bump subpackages that contain the *.rc scripts.
discussed with and OK aja@
OK tb
   2018-01-11 12:27:12 by Robert Peichaer | Files touched by this commit (624)
Log message:
Change the shebang line from /bin/sh to /bin/ksh in all ports rc.d
daemon scripts and bump subpackages that contain the *.rc scripts.
discussed with and OK aja@
OK tb