Disable Apache default ports

Openstack services don't use the default ports (80 and 443), so
change Apache to not open them.

Change-Id: I394e03de59e1d8f8e65197509dcf95fa05727afa
Closes-bug: #1845665
This commit is contained in:
tpsilva 2019-11-02 06:31:06 -03:00 committed by Edward Hope-Morley
parent a85ae0e852
commit 25562b842e
2 changed files with 6 additions and 0 deletions

View File

@ -205,6 +205,7 @@ else:
HAPROXY_CONF = '/etc/haproxy/haproxy.cfg'
APACHE_PORTS_CONF = '/etc/apache2/ports.conf'
APACHE_CONF = '/etc/apache2/sites-available/openstack_https_frontend'
APACHE_24_CONF = '/etc/apache2/sites-available/openstack_https_frontend.conf'
MEMCACHED_CONF = '/etc/memcached.conf'
@ -293,6 +294,10 @@ BASE_RESOURCE_MAP = OrderedDict([
context.SyslogContext()],
'services': [],
}),
(APACHE_PORTS_CONF, {
'contexts': [],
'services': ['apache2'],
}),
])
valid_services = {

1
templates/ports.conf Normal file
View File

@ -0,0 +1 @@
#File written by Juju: leave default ports closed (see LP 1845665).