Add fact for remote-execution pubkey#1222
Closed
bastelfreak wants to merge 1 commit intotheforeman:masterfrom
Closed
Add fact for remote-execution pubkey#1222bastelfreak wants to merge 1 commit intotheforeman:masterfrom
bastelfreak wants to merge 1 commit intotheforeman:masterfrom
Conversation
This exposes the pubkey from the forman-proxy for remote execution. ``` root@foreman:~# puppet facts show foreman_remote_execution_pubkey --value ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDj/Sz9g2bUlqK5lP0ErpqX5XkDH3gknPPRKYt9rzA7YkVUoIfvpKh8qs4qJDzDEHJobfnDTmL+p2rMXFv2EzUJUNjUhPjm1WzcB2yOKvgAKGi+AN0iJXTbOU+PWR+oqK/xs33SkDGbG5UAFXwkBCI5NRK+QNhCXXoI0FDssMp0oTq1DhGRS9uhr/K3NLRDRfxcjsTJshm+33vYLXi+/GSxpzlpdcRjceqG46WvCeESoFZAqR3+YYCi8UF5ijhqwRRaeHOnumfRA4UzFLpvs9NzQLwvBCYynnyujDhaOQlmcurhMAW5WlWgE+nNjt9YFXlSsKmuyjGWOP8mH62WwxnCAvOnb1HAhDN9IePLEiIqkCrK9IKEx1fEouCsLwPzs6L5xLeSsmbNupQDv1jtCjSsXSy+DHUVZR/g2tkRAUjiR85SlabczwtV+DWhydHhw/A7qyhED/H3GlKNK0K0L5UkNNx1IWoKdg0EndrAxaYFjMog2v/tql3cIWUn0yYIpwE= foreman-proxy@foreman.betadots ``` Afterwards people can use `puppetdb_query()` to place the key on their systems.
ekohl
requested changes
May 2, 2025
Member
ekohl
left a comment
There was a problem hiding this comment.
If anything, this is the wrong module for this because it's really foreman_proxy.
Then how we want people to use it is via foreman_proxy::plugin::remote_execution::ssh_user that relies on the data provided in the ENC. That's IMHO the only correct way.
If you're not using the ENC you should implement some API request to still get the data from Foreman's API.
Member
Author
|
ah wasn't aware of that |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This exposes the pubkey from the forman-proxy for remote execution.
Afterwards people can use
puppetdb_query()to place the key on their systems.