Foreman-installer fails with command-line argument --foreman-proxy-dhcp=true; evaluation error: no parameter named 'conf_dir_mode'

Problem:
Foreman-installer fails when run with command line argument --foreman-proxy-dhcp=true

Expected outcome:
Foreman installers the DHCP smart proxy

Foreman and Proxy versions:
Foreman 2.2.0

** Command **

foreman-installer -v --enable-foreman-plugin-discovery --foreman-proxy-tftp=true --enable-foreman-proxy --foreman-proxy-tftp-servername=“172.31.0.2” --foreman-proxy-dhcp=true --foreman-proxy-dhcp-interface=ens18 --foreman-proxy-dhcp-gateway=“172.31.0.1” --foreman-proxy-dhcp-nameservers=“172.31.0.2” --foreman-proxy-dns=true --foreman-proxy-dns-interface=ens18 --foreman-proxy-dns-zone=c9er.cloud --foreman-proxy-dns-reverse=0.31.172.in-addr.arpa --foreman-proxy-dns-forwarders=8.8.8.8 --foreman-proxy-foreman-base-url=<base_url> --foreman-proxy-dhcp-range=“172.31.0.100 172.31.0.200” --enable-foreman-plugin-dhcp-browser --foreman-proxy-plugin-discovery-install-images=true --foreman-proxy-http true --foreman-proxy-httpboot true --foreman-proxy-bmc true --enable-foreman-proxy-plugin-discovery

** Log **

Evaluation Error: Error while evaluating a Resource Statement, Class[Dhcp]: has no parameter named ‘conf_dir_mode’ (file: /usr/share/foreman-installer/modules/foreman_proxy/manifests/proxydhcp.[[, line: 50, column: 3) on node <node_name>

Hi,

this is a known issue in 2.2.0: Bug #31217: installation failed with "Evaluation Error: Error while evaluating a Resource Statement, Class[Dhcp]: has no parameter named 'conf_dir_mode' - Installer - Foreman
Should be fixed in 2.2.1 which @tbrisker wanted to release soon (read: today/tomorrow)

OK, so when the fix is available is it just to run “yum update” on your foreman.repo or do you have to update any baseurl’s ?

(or rather foreman-maintain packages unlock /yum update /foreman-maintain packages lock)

Correct, just a yum update (or foreman-maintain) and you’re all set.