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

infra_inventory.txt has no proper line termination #22

Open
bastelfreak opened this issue Apr 11, 2024 · 0 comments
Open

infra_inventory.txt has no proper line termination #22

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

Comments

@bastelfreak
Copy link

Describe the Bug

PE writes to /etc/puppetlabs/puppet/ssl/ca/infra_inventory.txt but doesn't add a \n to the end. This violates the FHS

Output from the second puppet agent run on a new PE 2021.7.7 installation:

--- /etc/puppetlabs/puppet/ssl/ca/infra_inventory.txt	2024-04-11 08:14:12.112439910 +0000
+++ /tmp/puppet-file20240411-40569-37n4xt	2024-04-11 08:38:46.755463754 +0000
@@ -0,0 +1 @@
+pe.bastelfreak.local
\ No newline at end of file
# file /etc/puppetlabs/puppet/ssl/ca/infra_inventory.txt
/etc/puppetlabs/puppet/ssl/ca/infra_inventory.txt: ASCII text, with no line terminators
#

Expected Behavior

I expect a \n at the end of every line

Steps to Reproduce

  • Download PE 2021.7.7
  • run installer
  • run puppet agent -t twice

Environment

  • PE 2021.7.7
  • Alma 8

Additional Context

I would have submitted a patch, but the source code isn't available.

@bastelfreak bastelfreak added the bug Something isn't working label Apr 11, 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