Skip to content

Conversation

@maximiliankolb
Copy link
Contributor

What changes are you introducing?

  • Package Action: foreman_remote_execution -> app/views/templates/script/package_action.erb
  • Power Action: foreman_remote_execution -> app/views/templates/script/power_action.erb
  • Puppet Run Once: foreman_puppet -> app/views/templates/script/puppet_run_once.erb
  • Service Action: foreman_remote_execution -> app/views/templates/script/service_action.erb

Salt: No change in "guides/common/modules/proc_running-salt.adoc" but looked into this issue via PR 219 in foreman_salt. (Untested but verified that the templates are currently called "Salt Run function - SSH default".

Clicking "Run Puppet once" in WebUI really causes REX to start a job that uses the "Puppet Run Once - Script Default" template.

Why are you introducing these changes? (Explanation, links to references, issues, etc.)

Fixes #4415 (Rename REX provider)

Anything else to add? (Considerations, potential downsides, alternative solutions you have explored, etc.)

Tested on Foreman 3.16 but tech ACK would be appreciated.

Contributor checklists

  • I am okay with my commits getting squashed when you merge this PR.
  • I am familiar with the contributing guidelines.

Please cherry-pick my commits into:

  • Foreman 3.16/Katello 4.18 (Satellite 6.18)
  • Foreman 3.15/Katello 4.17
  • Foreman 3.14/Katello 4.16 (Satellite 6.17; orcharhino 7.4)
  • Foreman 3.13/Katello 4.15 (EL9 only)
  • Foreman 3.12/Katello 4.14 (Satellite 6.16; orcharhino 7.2 on EL9 only; orcharhino 7.3)
  • Foreman 3.11/Katello 4.13 (orcharhino 6.11 on EL8 only; orcharhino 7.0 on EL8+EL9; orcharhino 7.1 with Leapp)
  • Foreman 3.10/Katello 4.12
  • Foreman 3.9/Katello 4.11 (Satellite 6.15; orcharhino 6.8/6.9/6.10)
  • We do not accept PRs for Foreman older than 3.9.

@github-actions github-actions bot added Needs tech review Requires a review from the technical perspective Needs style review Requires a review from docs style/grammar perspective Needs testing Requires functional testing labels Oct 27, 2025
@github-actions
Copy link

github-actions bot commented Oct 27, 2025

Copy link
Contributor

@Lennonka Lennonka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I guess this could be cherry picked farther, but I'm not sure how far. Can you check with someone, please?

@Lennonka Lennonka added style review done No issues from docs style/grammar perspective and removed Needs style review Requires a review from docs style/grammar perspective labels Oct 28, 2025
@aneta-petrova aneta-petrova linked an issue Oct 29, 2025 that may be closed by this pull request
.. Assign the `Run Puppet Once {endash} SSH Default` job template.
. To run Puppet on hosts, execute a remote job and select category `Puppet` and template `Run Puppet Once - SSH Default`.
.. Assign the `Puppet Run Once {endash} Script Default` job template.
. To run Puppet on hosts, execute a remote job and select category `Puppet` and template `Puppet Run Once - Script Default`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also look into this while you're here? #4189 (comment) It's part of #4192

* Package Action: foreman_remote_execution -> app/views/templates/script/package_action.erb
* Power Action: foreman_remote_execution -> app/views/templates/script/power_action.erb
* Puppet Run Once: foreman_puppet -> app/views/templates/script/puppet_run_once.erb
* Service Action: foreman_remote_execution -> app/views/templates/script/service_action.erb

Salt: No change in "guides/common/modules/proc_running-salt.adoc" but
looked into this issue via PR 219 in foreman_salt. (Untested but
verified that the templates are currently called "Salt Run function - SSH default".

Clicking "Run Puppet once" in WebUI really causes REX to start a job
that uses the "Puppet Run Once - Script Default" template.

Tested on Foreman 3.16

Fixes theforeman#4415 (Rename REX provider)
@maximiliankolb
Copy link
Contributor Author

I checked on Foreman 3.16:

puppet-rex-feature puppet-schedule-job

The wording in the WebUI is weird! Can you please check if my second commit makes sense to you? @aneta-petrova

"guides/common/modules/con_host-substatus-overview.adoc" remains
unchanged because the wording seems to come from the WebUI.

This makes vale happy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs tech review Requires a review from the technical perspective Needs testing Requires functional testing style review done No issues from docs style/grammar perspective

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The template type has been renamed from "SSH" to "Script" Update procedure for running Puppet once with ssh

3 participants