bastelfreak
11/21/2022, 10:02 AMbastelfreak
11/21/2022, 10:02 AMGareth McGrillan
11/21/2022, 10:02 AMGareth McGrillan
11/21/2022, 10:03 AMGareth McGrillan
11/21/2022, 10:03 AMbastelfreak
11/21/2022, 10:04 AMbastelfreak
11/21/2022, 10:04 AMGareth McGrillan
11/21/2022, 10:09 AMbastelfreak
11/21/2022, 10:10 AMvchepkov
11/21/2022, 6:55 PM2022-11-21T13:54:12.903-05:00 ERROR [clojure-agent-send-off-pool-141473] [p.e.s.f.file-sync-storage-core] Failed to commit repo ':ssl-data', from staging dir '/etc/puppetlabs/puppet/ssl'.
Slackbot
11/21/2022, 6:55 PMMarty Ewings
11/21/2022, 10:03 PMvchepkov
11/21/2022, 11:55 PMNickB
11/22/2022, 5:25 AM/etc/puppetlabs/puppet/ssl/ca
, then this means promoting your replica is going to result in a CA that’s only up to date since the last time it was able to sync. If your CA is in the new location (/etc/puppetlabs/puppetserver/ca
I think it is), then it doesn’t matter so much as that’s handled separately with a different file sync, if I recall correctly.
If it is file sync getting tripped up, usually deleting the file sync cache can fix that. https://puppet.com/docs/pe/2021.7/filesync_about.html#filesync_resetting
If your CA is churning through a bunch of certs on a regular basis, this is more likely to happen. We’re currently looking at ways to make this better. Using file sync to sync the CA data isn’t really great, since we don’t care at all about the history.NickB
11/22/2022, 5:26 AM/etc/puppetlabs/puppet/ssl/ca
, then this means promoting your replica is going to result in a CA that’s only up to date since the last time it was able to sync. If your CA is in the new location (/etc/puppetlabs/puppetserver/ca
I think it is), then it doesn’t matter so much as that’s handled separately with a different file sync, if I recall correctly.
If it is file sync getting tripped up, usually deleting the file sync cache can fix that. https://puppet.com/docs/pe/2021.7/filesync_about.html#filesync_resetting
If your CA is churning through a bunch of certs on a regular basis, this is more likely to happen. We’re currently looking at ways to make this better. Using file sync to sync the CA data isn’t really great, since we don’t care at all about the history, and files changing in the middle of JGit doing its thing tends to break it.Robert Waffen
11/23/2022, 1:28 PMGareth McGrillan
11/23/2022, 4:32 PMSlackbot
11/24/2022, 10:17 AMRobert Waffen
11/24/2022, 11:45 AMSlackbot
11/24/2022, 12:43 PMbastelfreak
11/24/2022, 12:43 PM/opt/puppetlabs/bolt
. That's created by the bolt rpm. Now when we do a backup and restore it on a new server, the bolt dir is restored, but the package isn't installed (at least not by the package). That can cause some conflicts. I think puppet-backup should globally exclude:
• /opt/puppetlabs/bin/bolt
• /opt/puppetlabs/bin/bolt-inventory-pdb
• /opt/puppetlabs/boltn3snah
11/27/2022, 11:46 PMglee
11/27/2022, 11:50 PMVariables set in the console become top-scope variables available to all Puppet manifests.
n3snah
11/27/2022, 11:52 PMglee
11/27/2022, 11:55 PMTips for specifying parameter and variable values
Parameters and variables can be structured as JSON. If they can't be parsed as JSON, they're treated as strings.
Parameters and variables can be specified using these data types and syntax:
• Strings (for example,)"centos"
◦ Variable-style syntax, which interpolates the result of referencing a fact (for example,)"I live at $ipaddress."
◦ Expression-style syntax, which interpolates the result of evaluating the embedded expression (for example,)${$os"release"}
> Note: Strings must be double-quoted, because single quotes aren't valid JSON.
> Tip: To enter a value in the console that contains a literal dollar sign, like a password hash — for example,— escape each dollar sign with a backslash to disable interpolation.$1$nnkkFwEc$safFMXYaUVfKrDV4FLCm0/
• Booleans (for example,ortrue
)false
• Numbers (for example,)123
• Hashes (for example,){"a": 1}
> Note: Hashes must use colons rather than hash rockets.
• Arrays (for example,see also: Variable-style syntax: https://puppet.com/docs/pe/2019.8/grouping_and_classifying_nodes.html#tips_for_specifying_parameter_and_variable_values-variable-syntax Expression-style syntax: https://puppet.com/docs/pe/2019.8/grouping_and_classifying_nodes.html#tips_for_specifying_parameter_and_variable_values-expression-syntax)["1","2.3"]
Slackbot
11/28/2022, 4:28 PMsimonhoenscheid
11/29/2022, 3:23 PMhttps://<PUPPETSERVER_FQDN>:8140/status/v1/services?level=debug
This can be found in the puppetserver-access.log:
192.168.0.1 - - [19/Nov/2022:00:00:09 +0100] "GET /status/v1/services?level=debug HTTP/1.1" 200 63513 "-" "Ruby" 1589 - -
192.168.0.1 - - [19/Nov/2022:00:00:09 +0100] "POST /metrics/v2/read HTTP/1.1" 200 927 "-" "Ruby" 3 432 -
I have a few questions:
1. Does the GET request trigger/rely on the POST request?
2. If the GET request runs into a timeout, will the POST request run until it's finished?
3. How much of the data and duration of the GET request, is created by the POST request? Is there a way to track this or do I need to measure it myself?Slackbot
11/29/2022, 4:26 PMMarty Ewings
11/29/2022, 4:37 PMMarty Ewings
11/29/2022, 4:37 PM