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

rh_subscription executes every time the manifest is applied regardless of the current subscription status. #150

Open
PsichoD opened this issue Nov 21, 2024 · 2 comments

Comments

@PsichoD
Copy link

PsichoD commented Nov 21, 2024

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 7.27
  • Ruby: ruby 3.0.7p220 (2024-04-23 revision 724a071175) [x86_64-linux]
  • Distribution: RedHat 9
  • Module version: v5.3.0

How to reproduce (e.g Puppet code you use)

include rhsm
rh_subscription { 'xxxxxxxxxxxxxxxxxxxxx':
  ensure => present,
}

What are you seeing

Notice: /Stage[main]/Profile::Base/Rh_subscription[xxxxxxxxxxxxxxxxxxxxx]/ensure: created (corrective)

What behaviour did you expect instead

Should only be applied when subscription is not enabled.

Output log

Any additional information you'd like to impart

@kallies
Copy link
Contributor

kallies commented Nov 21, 2024

Hello @PsichoD and thanks for reporting this. Is Simple Content Access enabled in your environment? Are you fetching your contents from the Red Hat CDN or from a Red Hat Satellite instance?

@PsichoD
Copy link
Author

PsichoD commented Nov 21, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants