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

PE 2019.8.12 and newer: r10k.yaml is updated even when code-manager is used #47

Open
bastelfreak opened this issue Jul 27, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@bastelfreak
Copy link

Describe the Bug

I added the following two parameters to my new PE installation:

"puppet_enterprise::profile::master::code_manager_auto_configure": true,
"puppet_enterprise::profile::master::r10k_remote": "https://github.com/bastelfreak/testcontrolrepo.git",

The following puppet run will update /opt/puppetlabs/server/data/code-manager/r10k.yaml and /etc/puppetlabs/r10k/r10k.yaml. But /etc/puppetlabs/r10k/r10k.yaml isn't, as far as I know, used by code-manager?

Expected Behavior

Don't update /etc/puppetlabs/r10k/r10k.yaml when it isn't needed.

Steps to Reproduce

  • Add "puppet_enterprise::profile::master::code_manager_auto_configure": true to the PE Master node group or hiera
  • Add "puppet_enterprise::profile::master::r10k_remote": "https://github.com/bastelfreak/testcontrolrepo.git", to the PE Master node group or hiera
  • run puppet agent -t

Environment

  • PE 2019.8.12
  • PE 2021.7.8

Additional Context

  • I would have submitted a patch for puppet_enterprise/manifests/profile/master.pp but the repo is private and nobody commented on Make the PE specific puppet modules public #10
  • This is important because I'm doing some mass PE upgrades. This can fail for various reasons. Unnecessary diffs make it hard to debug failed PE upgrades. During the upgrades I'm replacing puppet_enterprise::profile::master::r10k_remote with puppet_enterprise::profile::master::sources
@bastelfreak bastelfreak added the bug Something isn't working label Jul 27, 2024
@bastelfreak
Copy link
Author

support ticket #01247428

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