Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pxp-agent config URI change in initial config vs first puppet run #18

Open
bastelfreak opened this issue Apr 8, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@bastelfreak
Copy link

Describe the Bug

On a fresh PE 2021.7.7 I see the following diff on the first puppet run:

...
Info: Applying configuration version '1712581904'
Notice: /Stage[main]/Puppet_enterprise::Pxp_agent/File[/etc/puppetlabs/pxp-agent/pxp-agent.conf]/content:
--- /etc/puppetlabs/pxp-agent/pxp-agent.conf	2024-04-08 13:08:36.275535186 +0000
+++ /tmp/puppet-file20240408-35967-vbdbl1	2024-04-08 13:12:06.056965244 +0000
@@ -1 +1 @@
-{"broker-ws-uris":["wss://pe.tim.betadots.training:8142/pcp2/"],"pcp-version":"2","master-uris":["https://pe.tim.betadots.training:8140"],"primary-uris":["https://pe.tim.betadots.training:8140"],"ssl-crl":"/etc/puppetlabs/puppet/ssl/crl.pem","max-message-size":67108864,"ssl-key":"/etc/puppetlabs/puppet/ssl/private_keys/pe.server.local.pem","ssl-cert":"/etc/puppetlabs/puppet/ssl/certs/pe.server.local.pem","ssl-ca-cert":"/etc/puppetlabs/puppet/ssl/certs/ca.pem","loglevel":"info"}
\ No newline at end of file
+{"broker-ws-uris":["wss://pe.tim.betadots.training:8142/pcp2/"],"pcp-version":"2","master-uris":["pe.tim.betadots.training:8140"],"primary-uris":["pe.tim.betadots.training:8140"],"ssl-crl":"/etc/puppetlabs/puppet/ssl/crl.pem","max-message-size":67108864,"ssl-key":"/etc/puppetlabs/puppet/ssl/private_keys/pe.server.local.pem","ssl-cert":"/etc/puppetlabs/puppet/ssl/certs/pe.server.local.pem","ssl-ca-cert":"/etc/puppetlabs/puppet/ssl/certs/ca.pem","loglevel":"info"}
\ No newline at end of file
...

Why has the original config file https://pe.server.local:8140 but Puppet updates it to pe.server.local:8140? Why isn't it written correctly on the first place?

Expected Behavior

A config file that doesn't change on the first puppet run

Steps to Reproduce

curl --remote-header-name --location --remote-name 'https://pm.puppet.com/cgi-bin/download.cgi?dist=el&rel=8&arch=x86_64&ver=2021.7.7'
tar xf puppet-enterprise-2021.7.7-el-8-x86_64.tar.gz
rm -f puppet-enterprise-2021.7.7-el-8-x86_64.tar.gz
cd puppet-enterprise-2021.7.7-el-8-x86_64/
./puppet-enterprise-installer 

Environment

  • PE 2021.7.7
  • Alma 8

Additional Context

Add any other context about the problem here.

@bastelfreak bastelfreak added the bug Something isn't working label Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant