sameer
09/19/2022, 10:08 AMSlackbot
09/19/2022, 11:35 AMMarty Ewings
09/19/2022, 11:44 AMYorokobi
09/19/2022, 12:36 PM/opt/puppetlabs/puppet/public/last_run_summary.yaml
world readable? I see in PA-3253 that there was a similar request but the conversation looks like it turned to cache/ (and possibly the CVE related to the last_run_report.yaml file).
The agent's puppet.rb sets the public directory to 0755 but there's no mention of the summary file therein.Yorokobi
09/19/2022, 12:43 PM[agent]
lastrunfile = $publicdir/last_run_summary.yaml {mode = 0644}
sameer
09/19/2022, 2:01 PMSlackbot
09/19/2022, 2:03 PMbastelfreak
09/19/2022, 3:35 PMSlackbot
09/19/2022, 4:58 PMnatemccurdy
09/19/2022, 5:11 PMnatemccurdy
09/19/2022, 5:11 PMTOTAL_JRUBIES = (total_num_of_agents * (avg_catalog_compile_time_in_seconds * 2)) / run_interval_in_seconds)
TOTAL_PUPPETSERVERS = TOTAL_JRUBIES / max-active-instances
bastelfreak
09/19/2022, 6:52 PMbastelfreak
09/19/2022, 6:52 PMSlackbot
09/19/2022, 9:18 PMSlackbot
09/19/2022, 9:25 PMnatemccurdy
09/19/2022, 9:32 PMnotify +> Foo[something]
in a collector, it’d add the relationship.bastelfreak
09/19/2022, 9:34 PMnatemccurdy
09/19/2022, 9:36 PM[]
to clear out all relationships.binford2k
09/19/2022, 10:01 PMCallum McCrorie
09/20/2022, 10:34 AMError: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Failed to execute '/pdb/cmd/v1?checksum=6a4a91357c1cc0a61f1fc3e24be4de52c03dfe15&version=5&certname=<http://puppet.company.com|puppet.company.com>&command=replace_facts&producer-timestamp=2022-09-20T10:01:38.018Z' on at least 1 of the following 'server_urls': <https://puppetdb:8081>
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
The scripts for puppetdb are:
puppetboard.pp
class profiles::puppetboard {
require docker
docker::image { '<http://ghcr.io/voxpupuli/puppetboard:3.5.0|ghcr.io/voxpupuli/puppetboard:3.5.0>':
notify => Docker::Run['puppetboard'],
}
docker::run { 'puppetboard':
image => '<http://ghcr.io/voxpupuli/puppetboard:3.5.0|ghcr.io/voxpupuli/puppetboard:3.5.0>',
env => [
'PUPPETDB_HOST=127.0.0.1',
'PUPPETDB_PORT=8080', # I have also tried changing this to _Port=8081 and revive the same error.
'PUPPETBOARD_PORT=9090',
],
net => 'host',
}
}
and
puppet.company.com.yaml
---
classes:
- 'puppetdb'
- 'puppetdb::master::config'
- 'docker'
- 'profiles::puppetboard'
- 'r10k'
- 'r10k::webhook::config'
- 'r10k::webhook'
puppetdb::master::config::manage_report_processor: true
puppetdb::master::config::enable_reports: true
puppetdb::node_ttl: '7d'
puppetdb::node_purge_ttl: '7d'
puppetdb::report_ttl: '7d'
puppetdb::manage_firewall: false
r10k::remote: 'git@github.com:company/control-repo.git'
r10k::webhook::config::use_mcollective: false
r10k::webhook::config::enable_ssl: false
r10k::webhook::config::protected: false
r10k::webhook::config::user: 'puppet'
r10k::webhook::config::pass: 'puppet'
r10k::webhook::use_mcollective: false
r10k::webhook::user: 'puppet'
r10k::webhook::group: 'puppet'
The name of the puppetserver is puppet.company for this reference.
I am hoping that someone will be able to point me in the right direction with this please.Dr Bunsen Honeydew
09/20/2022, 10:34 AMSlackbot
09/20/2022, 12:50 PMDr Bunsen Honeydew
09/20/2022, 12:50 PMpuppetlabs-puppetdb
module at https://forge.puppet.com/puppetlabs/puppetdb?src=slack&channel=puppetJohn Ratliff
09/20/2022, 8:08 PMnatemccurdy
09/20/2022, 8:11 PMmapped_paths
example here: https://puppet.com/docs/puppet/7/hiera_config_yaml_5.html#specifying_file_pathsnatemccurdy
09/20/2022, 8:12 PM- name: Example
mapped_paths: [host_tags, tag, "host_tags/%{tag}.eyaml"]
John Ratliff
09/20/2022, 8:15 PMhost_tags
, the first param would be host_tags
, and not something like %{facts.host_tags}
? Not clear on what scope variable
means.natemccurdy
09/20/2022, 8:18 PMhost_tags
works, since all facts are also top-scope variables.
But I don’t know how you could explicitly specify a fact vs. a scope variable like you can in other parts of Hiera.natemccurdy
09/20/2022, 8:19 PMfacts.host_tags
, but I’m not sure.John Ratliff
09/20/2022, 8:19 PM