Running foreman 1.16 on CentOS 7.
Installed: rubygem-foreman_maintain-0.2.4-1.el7.noarch using the 1.19 foreman yum repo.
Is there a walkthrough for install and basic use of foreman_maintain? I found the site
And while I got the yum package installed it didn’t really cover much. I couldn’t get the backup portion to work and it could be because I’ve installed the wrong tool version.
Do you have to have the same version of foreman_maintain as your foreman install?
If not while just running a simple :
foreman-maintain backup offline /tmp/backups
I get a failure that doesn’t really give me a clue whats missing.
Backup config files: - Collecting config files to backup [FAIL] undefined method `' for nil:NilClass
The output from logfile is this:
D, [2018-11-12 22:09:54+0000 #95461] DEBUG – : foreman proxy content module detected: foreman_proxy_content
' for nil:NilClassE, [2018-11-12 22:09:54+0000 #95461] ERROR -- : undefined method’ for nil:NilClass (NoMethodError)
I tried command line option:
Resolve the failed steps and rerun the command. In case the failures are false positives, use --whitelist="backup-config-files"
foreman-maintain backup offline /tmp/backups --whitelist="backup-config-files"
But this comes back with
ERROR: too many arguments
This is a clean foreman host just installed running 1.16. We are planning to upgrade it to 1.19 (or 1.20 if its done by the end of this process) to determine how the whole process works to eventually run it on our production host.