Foreman-Installer更改证书

希望在我的环境中安装Foreman进行木偶部署。 我首先运行了foreman-installer,默认情况下,并不关心SSL证书和URL为server01.example.com

我更喜欢它使用像puppet.example.com更具描述性和默认的木偶代理设置。 它应该使未来的工头/傀儡更容易,能够复制证书目录和更改cnamelogging。

我知道我可以使用foreman-install -i以交互方式更改所有设置,但以这种方式更改logging会导致文档不佳。 我试图find正确的选项,以这种方式我想要的方式,但它不工作。

这里是我正在使用的命令和选项:

sudo foreman-installer --foreman-foreman-url=https://puppet.example.com:8443 \ --foreman-proxy-registered-name=puppet.example.com \ --puppet-server-foreman-ssl-key=/var/lib/puppet/ssl/private_keys/puppet.example.com.pem \ --foreman-proxy-ssl-cert=/var/lib/puppet/ssl/certs/puppet.example.com.pem \ --foreman-proxy-foreman-base-url=https://puppet.example.com \ --foreman-proxy-ssl-cert=/var/lib/puppet/ssl/certs/puppet.example.com.pem \ --foreman-proxy-ssl-key=/var/lib/puppet/ssl/private_keys/puppet.example.com.pem \ --puppet-server-foreman-url=https://puppet.example.com \ --foreman-proxy-registered-proxy-url=https://puppet.example.com:8443` 

运行该命令后,它尝试启动foreman-proxy服务并失败。 它正在寻找名为/var/lib/puppet/ssl/private_keys/puppet.example.com.pem的私钥,但是存在的密钥是/var/lib/puppet/ssl/private_keys/server01.example.com.pem 。 它仍然使用FQDN来创build证书。

我怎样才能以我想要的方式获得这个设置?

根据我的经验,一些安装程序设置不能通过再次运行foreman-installer重写,例如主机名。 您需要恢复安装程序文件,当您再次运行安装程序时,它将使用新的数据(主机名,fqdn,…)

用默认文件覆盖/etc/foreman/foreman-installer-answers.yaml并再次运行foreman-installer ,它将使用新的主机名