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

also chain private keys from puppet-certs correctly #755

Merged
merged 1 commit into from
May 5, 2022
Merged

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented May 5, 2022

No description provided.

@evgeni
Copy link
Member Author

evgeni commented May 5, 2022

the problem is that ssl_key.pem in a Katello deployment is a private_key from the certs module, and while that does define a file internally (https://github.com/theforeman/puppet-certs/blob/5ce5b4b9e8a13a7a630cc607ecfa5e48991a2aa9/lib/puppet/type/private_key.rb#L64) those are not available for matching of a collector:

https://puppet.com/docs/puppet/6/lang_collectors.html:

Collectors can search only on attributes that are present in the manifests

(the file resource is not in the manifest, the private_key is)

the problem is that `ssl_key.pem` in a Katello deployment is a `private_key`
from the `certs` module, and while that *does* define a `file` internally
(https://github.com/theforeman/puppet-certs/blob/5ce5b4b9e8a13a7a630cc607ecfa5e48991a2aa9/lib/puppet/type/private_key.rb#L64)
those are not available for matching of a collector.

https://puppet.com/docs/puppet/6/lang_collectors.html:
> Collectors can search only on attributes that are present in the manifests

(the `file` resource is not in the manifest, the `private_key` is)
@evgeni evgeni merged commit 9319a59 into master May 5, 2022
@evgeni evgeni deleted the more-notify branch May 5, 2022 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants