Skip to content

Commit

Permalink
jobrunner: remove default ports from apache2
Browse files Browse the repository at this point in the history
So that it does not conflict with nginx
  • Loading branch information
Universal-Omega committed Mar 24, 2024
1 parent b0444fe commit e01c908
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions hieradata/hosts/mwtask171.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ nginx::keepalive_requests: 150
nginx::logrotate_number: 2
nginx::use_graylog: true
nginx::remove_apache: false

httpd::remove_default_ports: true
2 changes: 2 additions & 0 deletions hieradata/hosts/mwtask181.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,5 @@ nginx::keepalive_requests: 150
nginx::logrotate_number: 2
nginx::use_graylog: true
nginx::remove_apache: false

httpd::remove_default_ports: true
2 changes: 2 additions & 0 deletions hieradata/hosts/test151.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ nginx::logrotate_number: 2
nginx::use_graylog: true
nginx::remove_apache: false

httpd::remove_default_ports: true

# memcached
role::memcached::threads: ~
role::memcached::version: 'present'
Expand Down
4 changes: 2 additions & 2 deletions modules/httpd/manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
# @param wait_network_online Set to true to have the service to run after
# network-online.target. Can be used when Apache is configured to Listen to
# an explicit IP address.
class httpd(
class httpd (
Array[String] $modules = [],
VMlib::Ensure $legacy_compat = present,
Enum['daily', 'weekly'] $period = 'daily',
Integer $rotate = 30,
Boolean $enable_forensic_log = false,
Array[String] $extra_pkgs = [],
Boolean $purge_manual_config = true,
Boolean $remove_default_ports = false,
Boolean $http_only = false,
Boolean $wait_network_online = false,
Boolean $remove_default_ports = lookup('httpd::remove_default_ports', {'default_value' => false}),
) {
# Package and service. Links is needed for the status page below
$base_pkgs = ['apache2', 'links']
Expand Down

0 comments on commit e01c908

Please sign in to comment.