I am new to foreman and trying to setup Remote job execution plugin with fresh installation of Foreman. Installation is failing with below errors.
Cannot create /var/lib/foreman-proxy/ssh; parent directory /var/lib/foreman-proxy does not exist
/Service[foreman-proxy]: Failed to call refresh: Systemd restart for foreman-proxy failed!
Command used to install foreman - foreman-installer --enable-foreman-plugin-remote-execution --enable-foreman-proxy-plugin-remote-execution-ssh
Successful installation of foreman, foreman-proxy and remote job execution plugin Foreman and Proxy versions:
foreman version 1.24 Foreman and Proxy plugin versions:
Remote Execution Plugin 1.7 followed
that should of course work out of the box. What is weird thoug his your remote execution proxy plugin version, in 1.24 it should be 0.2.1. I don’t have ubuntu at hand to see, if the newer version of package is missing there. Perhaps @aruzicka knows more.
Currently Ansible and REX from Foreman on Debian/Ubuntu suffer from concurrent ruby packaging issues and it is practically impossible to get the current versions there (see Foreman Proxy won't start due to ruby load error (Concurrent::Edge::Future)). You might be able to get some older version working, but your mileage may vary. The safer bet would be to use an EL-based instead of debian based one, where this should work without any hiccups out of the box. Hope it is a viable option for you