Foreman 3.5.1 - Enable Remote Execution

Problem:
Im trying to enable Remote Execution on Foreman (non-katello) 3.5.1. According to the docs for the plug-in remote-execution it says there should be this proxy plug-in --enable-foreman-proxy-plugin-remote-execution-ssh, but when I do foreman-installer --help I do not see that option listed. The closest is --enable-foreman-proxy-plugin-remote-execution-script.

So how exactly do I do this?

Expected outcome:
Be able to enable Remote Execution from Foreman-Installer

Foreman and Proxy versions:
Foreman and Smart Proxy 3.5.1

Foreman and Proxy plugin versions:
At the moment just a vanilla foreman installed with this command sudo foreman-installer

Distribution and version:
Server: AlmaLinux 8.7

Other relevant data:

  • Default options when you run foreman-installer --help for Foreman 3.5.1
  • If it matters we will be using Salt for Config Management, not Ansible
Main Config Menu
1. [✓] Configure foreman
2. [✓] Configure foreman_cli
3. [✗] Configure foreman_cli_ansible
4. [✗] Configure foreman_cli_azure
5. [✗] Configure foreman_cli_discovery
6. [✗] Configure foreman_cli_google
7. [✗] Configure foreman_cli_kubevirt
8. [✗] Configure foreman_cli_openscap
9. [✓] Configure foreman_cli_puppet
10. [✗] Configure foreman_cli_remote_execution
11. [✗] Configure foreman_cli_ssh
12. [✗] Configure foreman_cli_tasks
13. [✗] Configure foreman_cli_templates
14. [✗] Configure foreman_cli_webhooks
15. [✓] Configure foreman_proxy
16. [✓] Configure puppet
17. [✗] Configure foreman_plugin_acd
18. [✗] Configure foreman_plugin_ansible
19. [✗] Configure foreman_plugin_azure
20. [✗] Configure foreman_plugin_bootdisk
21. [✗] Configure foreman_plugin_column_view
22. [✗] Configure foreman_plugin_default_hostgroup
23. [✗] Configure foreman_plugin_dhcp_browser
24. [✗] Configure foreman_plugin_discovery
25. [✗] Configure foreman_plugin_dlm
26. [✗] Configure foreman_plugin_expire_hosts
27. [✗] Configure foreman_plugin_git_templates
28. [✗] Configure foreman_plugin_google
29. [✗] Configure foreman_plugin_hooks
30. [✗] Configure foreman_plugin_host_extra_validator
31. [✗] Configure foreman_plugin_kubevirt
32. [✗] Configure foreman_plugin_leapp
33. [✗] Configure foreman_plugin_memcache
34. [✗] Configure foreman_plugin_monitoring
35. [✗] Configure foreman_plugin_netbox
36. [✗] Configure foreman_plugin_omaha
37. [✗] Configure foreman_plugin_openscap
38. [✗] Configure foreman_plugin_ovirt_provision
39. [✓] Configure foreman_plugin_puppet
40. [✗] Configure foreman_plugin_puppetdb
41. [✗] Configure foreman_plugin_remote_execution
42. [✗] Configure foreman_plugin_remote_execution_cockpit
43. [✗] Configure foreman_plugin_rescue
44. [✗] Configure foreman_plugin_salt
45. [✗] Configure foreman_plugin_setup
46. [✗] Configure foreman_plugin_snapshot_management
47. [✗] Configure foreman_plugin_statistics
48. [✗] Configure foreman_plugin_tasks
49. [✗] Configure foreman_plugin_templates
50. [✗] Configure foreman_plugin_vault
51. [✗] Configure foreman_plugin_webhooks
52. [✗] Configure foreman_plugin_wreckingball
53. [✗] Configure foreman_compute_ec2
54. [✗] Configure foreman_compute_libvirt
55. [✗] Configure foreman_compute_openstack
56. [✗] Configure foreman_compute_ovirt
57. [✗] Configure foreman_compute_vmware
58. [✗] Configure foreman_proxy_plugin_acd
59. [✗] Configure foreman_proxy_plugin_ansible
60. [✗] Configure foreman_proxy_plugin_dhcp_infoblox
61. [✗] Configure foreman_proxy_plugin_dhcp_remote_isc
62. [✗] Configure foreman_proxy_plugin_discovery
63. [✗] Configure foreman_proxy_plugin_dns_infoblox
64. [✗] Configure foreman_proxy_plugin_dns_powerdns
65. [✗] Configure foreman_proxy_plugin_dynflow
66. [✗] Configure foreman_proxy_plugin_monitoring
67. [✗] Configure foreman_proxy_plugin_omaha
68. [✗] Configure foreman_proxy_plugin_openscap
69. [✗] Configure foreman_proxy_plugin_remote_execution_script
70. [✗] Configure foreman_proxy_plugin_salt
71. [✗] Configure foreman_proxy_plugin_shellhooks
72. Display current config
73. Save and run
74. Cancel run without Saving
Choose an option from the menu... 74
Bye!

Plugin docs are outdated. --enable-foreman-proxy-plugin-remote-execution-script is what you want.

2 Likes

Thank you very much.

Yea I have noticed that a lot of the docs are outdated or inaccurate information. So Im doing my best to get everything correct. I hope you have a great weekend!

Thanks

Shawn OG