Questions tagged [puppetdb]

PuppetDB is the next-generation performance-centric version of Puppet Stored Configs. PuppetDB manages storage and retrieval of all platform-generated data.

PuppetDB is a Puppet data warehouse; it manages storage and retrieval of all platform-generated data. Currently, it stores catalogs and facts; in future releases, it will expand to include more data, like reports.

34 questions
11
votes
1 answer

Could Puppet-reports be removed once these have been processed by Puppet-dashboard or PuppetDB?

Puppet-reports are using a lot of diskspace in: /var/lib/puppet/reports /var/lib/mysql The assumption is that it stores all reports in the MySQL database, because both paths are about the same size. The resource_statuses table consist of rows that…
ujjain
  • 3,963
  • 15
  • 50
  • 88
6
votes
4 answers

PuppetDB: Failed to submit 'replace facts' command

I recently revoked/cleaned a Puppet agent cert, and this seems to have negative effects in PuppetDB. I see a bug has been filed here with some instructions on fixing the issue. A user had a similar issue here, but none of this is working for…
Banjer
  • 3,854
  • 11
  • 40
  • 47
5
votes
1 answer

PuppetDB: unable to get local issuer certificate

I'm attempting to use puppetdb on but I'm running into some issues. I have a node called puppet. It is the master as well as where I've installed puppetdb. It's also a node that puppet manages. When I run puppet -t on the puppet node I…
Kyle Decot
  • 311
  • 1
  • 6
  • 13
5
votes
1 answer

Manage ssh_known_hosts with puppet

I'm new to Puppet (open source version) and have a relatively straightforward question. When I bring up a new host, I'd like the puppetmaster to add the new host's public rsa key to /etc/ssh/ssh_known_hosts, and so the updated ssh_known_hosts file…
Banjer
  • 3,854
  • 11
  • 40
  • 47
4
votes
1 answer

Puppet reporting without master

I am planning a Puppet infrastructure for about 100-200 servers. This is the design so far: Stash (git) for storing puppet config (not planning on using a master). Hiera to query either yaml, json, or possibly couchdb for sensitive (passwords)…
Progger
  • 253
  • 2
  • 5
3
votes
1 answer

PuppetDB: Connection refused

I'm trying to get PuppetDB to run on my puppetmaster machine. The problem is that I always get the following message when doing an agent run: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to submit 'replace facts'…
Kai
  • 315
  • 1
  • 4
  • 14
2
votes
1 answer

puppet code design: how to collect arguments into a string (avoiding possible duplicate declaration errros)

I'm having trouble with puppet (version 5.5) code design. I've written a component module to deal with ucarp. It make use of the module eyp-systemd to register an ucarp service within systemd. Now I would like to consume the ucarp module from two…
2
votes
2 answers

Removing old node from puppetdb

Running Puppet Server open source with Puppet DB 4.8 I recently changed the name of one of my servers and now have two instances of the same machine on puppetdb. I am trying to remove the NODE by performing the following command: puppet node…
Ankh2054
  • 1,404
  • 13
  • 23
2
votes
2 answers

How do I downgrade puppetdbquery?

I'm getting an error on puppet runs which use puppetdb queries: Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Error: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `server_urls' for…
lucas
  • 200
  • 3
  • 10
2
votes
2 answers

Puppet storeconfigs confusion

I'm fighting with Puppet storeconfigs of many hours and finally I found one thing which confusing me. I would like to set up storeconfigs, but when I set storeconfigs and storeconfigs_backend values in /etc/puppet/puppet.conf files [master] section…
kiuru
  • 21
  • 1
2
votes
1 answer

What are storeconfigs in Puppet and what is their purpose?

As far as I understand it, storeconfigs are about storing the client data in the MySQL database. I assume this is the data that is also stored in the .yaml-files in /var/lib/puppet/yaml/node/, that would be stored in the MySQL…
ujjain
  • 3,963
  • 15
  • 50
  • 88
1
vote
1 answer

Puppet caching resources

I'm trying to debug a caching issue with Puppet on RedHat 7. My versions are at the bottom of this question. Below is an excerpt from my site.pp manifest. This is all fine and the Nagios check is installed on the foo.example.com node. node…
wsams
  • 121
  • 4
1
vote
2 answers

sudden "Could not evaluate: Field 'key' is required" errors when generating exported SSH keys

Without changing anything to the puppet configuration suddenly, some of our hosts started with "Could not evaluate: Field 'key' is required" errors, when creating exported SSH keys but interestingly not all SSH keys fail on all hosts, here one…
Sebastian
  • 61
  • 3
1
vote
1 answer

Connect several puppet masters to one puppetdb

I have installed a puppetdb on one of my puppetmaster and it works. But I'm not able to connect a second one to the puppet master. The command "puppet agent -t" works on my 2nd master. Each master deals with their own nodes (their is no LB). Here is…
Skullone
  • 195
  • 1
  • 1
  • 10
1
vote
1 answer

Difference in time stamps via puppetdb query and mysql query

I store reports from nodes in puppetdb. I want to check time when reports received from specific node via the following query: curl -sk http://pdb:8080/v3/reports --data-urlencode 'query=["=", "certname", "host.mydomain.com"]' | grep…
1
2 3