Bug #12989
closedOMAPI key data passed to foreman-installer does not end up in dhcp.yml
Description
Hello there!
It appears that OMAPI key/secret options passed to foreman-installer are being ignored:
[root@spc01 ~]# foreman-installer --foreman-proxy-dhcp=true --foreman-proxy-dhcp-config=/dhcp/conf/dhcpd.conf --foreman-proxy-dhcp-leases=/dhcp/conf/dhcpd.leases --foreman-proxy-dhcp-key-name=omapi-key --foreman-proxy-dhcp-key-secret=$OMAPI_SECRET --foreman-proxy-dhcp-server=dhcp.domain.com --foreman-proxy-dhcp-omapi-port=9999 Installing Done [100%] [..............................................] Success! * Foreman is running at https://spc01.domain.com Initial credentials are admin / changeme * Foreman Proxy is running at https://spc01.domain.com:8443 * Puppetmaster is running at port 8140 The full log is at /var/log/foreman-installer/foreman-installer.log [root@spc01 ~]#
However, other options are just fine. Here's the resulting file:
[root@spc01 ~]# cat /etc/foreman-proxy/settings.d/dhcp.yml --- # Enable DHCP management :enabled: https # valid vendors: # - isc # - native_ms (Microsoft native implementation) # - virsh (simple implementation for libvirt) :dhcp_vendor: isc :dhcp_server: dhcp.domain.com :dhcp_config: /dhcp/conf/dhcpd.conf :dhcp_leases: /dhcp/conf/dhcpd.leases #:dhcp_key_name: secret_key_name #:dhcp_key_secret: secret_key :dhcp_omapi_port: 9999 [root@spc01 ~]#
Updated by Dominic Cleal over 9 years ago
- Description updated (diff)
- Category set to Foreman modules
Can you confirm that this is Foreman installer 1.10.0?
The corresponding puppet-dhcp module version would therefore be 2.2.3.
Updated by Konstantin Orekhov over 9 years ago
Hmm, it is definitely 1.10.0, but puppet-dhcp version is 2.2.0 (if I look at the right place, of course):
[root@spc01 dhcp]# cd /usr/share/foreman-installer/modules/dhcp; jq '.' metadata.json
{
"name": "theforeman-dhcp",
"version": "2.2.0",
"author": "theforeman",
"summary": "Manage the ISC DHCP daemon",
"license": "Apache-2.0",
"source": "git://github.com/theforeman/puppet-dhcp",
"project_page": "https://github.com/theforeman/puppet-dhcp",
"issues_url": "https://github.com/theforeman/puppet-dhcp/issues",
<snip>
Updated by Dominic Cleal over 9 years ago
- Status changed from New to Need more information
I can't reproduce this - my only guess is that the the OMAPI secret is a blank value in your command, as you use a variable there. Please check it's fully interpolated.
Updated by Konstantin Orekhov over 9 years ago
- Status changed from Need more information to Rejected
You must be right, I can't reproduce that anymore either unless a value of that var is missing.
Updated by Dominic Cleal over 9 years ago
- Translation missing: en.field_release deleted (
104)
Thanks for checking!