You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$add_listen defaults to true and the foreman module doesn't expose a parameter to disable it. That means that the defined resource expects an IP-Address and not an interface name. Foreman throws this error message:
Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Apache::Vhost[foreman]: Mixing IP and non-IP Listen directives is not possible; check the add_listen parameter of the apache::vhost define to disable this (file: /etc/puppetlabs/code/environments/production/modules/apache/manifests/vhost.pp, line: 368, column: 7) (file: /etc/puppetlabs/code/environments/production/modules/foreman/manifests/config/passenger.pp, line: 141)
okay I did some more debugging. My initial conclusion was horribly wrong here. The puppetlabs-apache module provides a default vhost. it listens on port 80 on all ip addresses / interfaces. Setting foreman::config::passenger::listen_on_interface: 'etho' sets the Listen directive only for the two foreman vhosts, but not for the default vhost. Since really nobody needs it, we can purge it with this in hiera:
We do indeed set apache::default_vhost to false in our installer (via hiera) but we don't want to manage this in this module so it's left as a users exercise now.
#563 is open to make this more generic so I'm linking it here.
hai everybody,
let's assume somebody did something like this in hiera;
from the class description:
puppet-foreman/manifests/config/passenger.pp
Lines 7 to 8 in 4a1f028
So I assume an interface name is supposed to be valid. Later on we parse the name like this:
puppet-foreman/manifests/config/passenger.pp
Lines 115 to 120 in 4a1f028
And pass it to an
apache::vhost
defined resource:puppet-foreman/manifests/config/passenger.pp
Lines 141 to 145 in 4a1f028
But from the
puppetlabs-apache
module:https://github.com/puppetlabs/puppetlabs-apache/blob/1ab05064a8e93a0e8bdae73dc673b0a095d1c629/manifests/vhost.pp#L367-L370
$add_listen defaults to true and the foreman module doesn't expose a parameter to disable it. That means that the defined resource expects an IP-Address and not an interface name. Foreman throws this error message:
My Puppet code to trigger this, without hiera:
The text was updated successfully, but these errors were encountered: