theforeman / smart_proxy_dhcp_device42

This plugin adds a new DHCP provider for managing records with device42 servers
GNU General Public License v3.0
3 stars 0 forks source link

Provider 'dhcp_device42' settings conflict with the main plugin's settings: [:server] #3

Open basros opened 6 years ago

basros commented 6 years ago

ruby-smart-proxy-dhcp-device42 installed as Debian package version 1.0.7 Foreman and smart-proxy version 1.19.0

Enabling this plugin with foreman results in an error:

E, [2018-11-08T12:56:03.113919 ] ERROR -- : Disabling all modules in the group ['dhcp_device42', 'dhcp'] due to a failure in one of them: Provider 'dhcp_device42' settings conflict with the main plugin's settings: [:server]

Configuration files: _/etc/foreman-proxy/settings.d/dhcpdevice42.yml

---
#
# Configuration file for 'dhcp_device42' dhcp provider
#
:scheme: http
:verify: false
:server: 10.31.151.142
:username: "export"
:password: "export"

_/etc/foreman-proxy/settings.d/dhcpyml

:enabled: http
:use_provider: dhcp_device42

Already tried various combinations of for values of scheme and enabled without success.

ghost commented 6 years ago

Hello @basros, thanks for the ticket. Hello @dmitri-d , can you please check above? Looks like before we didn't have such issues with the server place. Thanks.

basros commented 6 years ago

We got it working by moving :server: <Device42 IP> from dhcp_device42.yml to dhcp.yml. Looks like dhcp.yml always has a default for server but once it's disabled in the plugin configuration, it loads just fine.