Bug #20615
closedInstaller doesnt work unless you run --help first.
Description
Do the following results in a error just like http://projects.theforeman.org/issues/18831:
yum remove foreman-installer -y ; rm -rf /etc/foreman-installer/
yum install foreman-proxy-content -y
cp ~/foreman-proxy-content-answers.yaml /etc/foreman-installer/scenarios.d/foreman-proxy-content-answers.yaml
foreman-installer --scenario foreman-proxy-content --disable-system-checks
But doing the works (notice the extra --help cmd):
yum remove foreman-installer -y ; rm -rf /etc/foreman-installer/
yum install foreman-proxy-content -y
cp ~/foreman-proxy-content-answers.yaml /etc/foreman-installer/scenarios.d/foreman-proxy-content-answers.yaml
foreman-installer --scenario foreman-proxy-content --help
foreman-installer --scenario foreman-proxy-content --disable-system-checks
See https://paste.fedoraproject.org/paste/TXYAHsmLXYfui44Bxqdbcw for a copy of ~/foreman-proxy-content-answers.yaml. Its just the original foreman-proxy-content-answers.yaml file with the extra vars you get when generating the Proxy certs tar. e.g
--foreman-proxy-content-parent-fqdn "katello.example.com"\
--foreman-proxy-register-in-foreman "true"\
--foreman-proxy-foreman-base-url "https://katello.example.com"\
--foreman-proxy-trusted-hosts "katello.example.com"\
--foreman-proxy-trusted-hosts "myproxy.example.com"\
--foreman-proxy-oauth-consumer-key "UVrAZfMaCfBiiWejoUVLYCZHT2xhzuFV"\
--foreman-proxy-oauth-consumer-secret "ZhH8p7M577ttNU3WmUGWASag3JeXKgUX"\
--foreman-proxy-content-certs-tar "/root/myproxy.example.com-certs.tar"