No subname set in the "database" config

382 views
Skip to first unread message

Spriya

unread,
Feb 12, 2021, 5:28:46 PM2/12/21
to Puppet Users
Hi,

I am trying to setup new open source puppetmaster and database. And i am seeing this error

Feb 12 17:1***** puppetdb[59445]: No subname set in the "database" config.

And i have the configuration file in 

cat /etc/puppetlabs/puppet/puppetdb.conf
[main]
server_urls = https://********:8081

[global]
vardir = /var/lib/puppetdb
logging-config = /var/lib/puppetdb/logback.xml

[database]
subname = //localhost:5432/puppetdb

[puppetdb]
certificate-allowlist = /etc/puppetlabs/puppetdb/ssl/ca.pem
disable-update-checking = false

[jetty]
port = 8080


Please guide me

Martin Alfke

unread,
Feb 13, 2021, 10:58:26 AM2/13/21
to Puppet Users
Hi Spriya,

are you managing puppetdb with puppetdb module?
https://puppet.com/docs/puppetdb/latest/install_via_module.html

node <hostname> {
# Configure puppetdb and its underlying database
class { 'puppetdb': }
# Configure the Puppet master to use puppetdb
class { 'puppetdb::master::config': }
}

This should take care on proper config.
Also note, that there are two config files: one for puppet (to make Puppet aware of puppetdb) and one for puppetdb itself.
Config for Puppet is in /etc/puppetlabs/puppet/pupeptdb.conf
Config for PupeptDB is spread over multiple files in /etc/puppetlabs/puppetdb/conf.d directory.

Maybe you missed the config in the puppetdb conf.d directory.

hth,
Martin
> --
> 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/302ccd48-ea72-4c8b-9cf2-11242992af0dn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages