puppetdb on sles 11

asked 2016-02-18 10:15:38 -0500

btmike gravatar image

I'm currently running a puppet master installation (2.7.26) on SLES 11 SP3. I recently grabbed the puppetlabs-puppetdb module via puppet module install puppetlabs-puppetdb and followed the quick setup instructions after noting it's listed as working for SLES 11.

However, this is the result I get trying to run puppet with the puppet db instance configured for postgres:

Thu Feb 18 10:57:10 -0500 2016 Puppet (err): Unsupported managed repository for osfamily: Suse, operatingsystem: SLES, module postgresql currently only supports managing repos for osfamily RedHat and Debian at /etc/puppet/modules/postgresql/manifests/repo.pp:19 on node (OMITTED)
Thu Feb 18 10:57:10 -0500 2016 Puppet (err): Unsupported managed repository for osfamily: Suse, operatingsystem: SLES, module postgresql currently only supports managing repos for osfamily RedHat and Debian at /etc/puppet/modules/postgresql/manifests/repo.pp:19 on node (OMITTED)
Thu Feb 18 10:57:10 -0500 2016 Puppet (err): Report processor failed: cannot generate tempfile `/var/lib/puppet/reports/(OMITTED)/201602181557.yaml20160218-29050-8k3u30-9'

The omitted portion of course is my redaction. Beyond that, this is a verbatim copy/paste of the puppetmaster.log file. In checking the said repo file it's pretty clear that there's no support for SLES/zypper in any respect (not unusual for puppet). I can of course install either puppetdb (not practical as this is an instance that runs into the hundreds of nodes and per your own documentation will probably encounter memory issues) or I can install postgres94-server manually via zypper.

Unfortunately, I cannot quite figure out how to actually get the node manifest to register the installed postgres server.

Here's the node manifest as it stands:

import '/etc/puppet/classes/sudo.pp
import '/etc/puppet/classes/rootpw.pp'

import '/etc/puppet/classes/rootpw_toke.pp'

import '/etc/puppet/classes/deployqradar.pp'


node ldap_puppetdb {
        include sudo_all
        include rootpw
        include deployqradar
        class { 'puppetdb::database::postgresql':
                listen_addresses => 'localhost',
        }
}

node '(OMITTED)' inherits ldap_puppetdb { }

Any assistance would be appreciated. Thanks

edit retag flag offensive close merge delete