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

> On 12. Feb 2021, at 18:28, Spriya <supriya.uppalap...@gmail.com> wrote:
> 
> 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
> 
> -- 
> 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+unsubscr...@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.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/1AFF1561-A364-440E-B232-41041588CCD5%40gmail.com.

Reply via email to