Explicitly manage http configs

Previously the kolla config is merging the existing apache configuration
files in the container with our generated ones. This can lead to extra
configurations in the containers that we are not expecting. This change
updates the kolla configs to not merge the httpd conf.d folder so we only
end up with our expected configurations.

Change-Id: Ibb9bbeb12e73b2cf8887554f461873e42532edd7
Related-Bug: 1813084
This commit is contained in:
Alex Schultz 2019-01-24 08:50:43 -07:00
parent 55e7174e41
commit 096fa87741
21 changed files with 88 additions and 0 deletions

View File

@ -151,6 +151,10 @@ outputs:
/var/lib/kolla/config_files/aodh_api.json: /var/lib/kolla/config_files/aodh_api.json:
command: /usr/sbin/httpd -DFOREGROUND command: /usr/sbin/httpd -DFOREGROUND
config_files: config_files:
- source: "/var/lib/kolla/config_files/src/etc/httpd/conf.d"
dest: "/etc/httpd/conf.d"
merge: false
preserve_properties: true
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
merge: true merge: true

View File

@ -224,6 +224,10 @@ outputs:
/var/lib/kolla/config_files/cinder_api.json: /var/lib/kolla/config_files/cinder_api.json:
command: /usr/sbin/httpd -DFOREGROUND command: /usr/sbin/httpd -DFOREGROUND
config_files: config_files:
- source: "/var/lib/kolla/config_files/src/etc/httpd/conf.d"
dest: "/etc/httpd/conf.d"
merge: false
preserve_properties: true
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
merge: true merge: true

View File

@ -449,6 +449,10 @@ outputs:
/var/lib/kolla/config_files/glance_api_tls_proxy.json: /var/lib/kolla/config_files/glance_api_tls_proxy.json:
command: /usr/sbin/httpd -DFOREGROUND command: /usr/sbin/httpd -DFOREGROUND
config_files: config_files:
- source: "/var/lib/kolla/config_files/src/etc/httpd/conf.d"
dest: "/etc/httpd/conf.d"
merge: false
preserve_properties: true
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
merge: true merge: true

View File

@ -167,6 +167,10 @@ outputs:
/var/lib/kolla/config_files/heat_api_cfn.json: /var/lib/kolla/config_files/heat_api_cfn.json:
command: /usr/sbin/httpd -DFOREGROUND command: /usr/sbin/httpd -DFOREGROUND
config_files: config_files:
- source: "/var/lib/kolla/config_files/src/etc/httpd/conf.d"
dest: "/etc/httpd/conf.d"
merge: false
preserve_properties: true
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
merge: true merge: true

View File

@ -183,6 +183,10 @@ outputs:
/var/lib/kolla/config_files/heat_api.json: /var/lib/kolla/config_files/heat_api.json:
command: /usr/sbin/httpd -DFOREGROUND command: /usr/sbin/httpd -DFOREGROUND
config_files: config_files:
- source: "/var/lib/kolla/config_files/src/etc/httpd/conf.d"
dest: "/etc/httpd/conf.d"
merge: false
preserve_properties: true
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
merge: true merge: true

View File

@ -193,6 +193,10 @@ outputs:
/var/lib/kolla/config_files/ironic_api.json: /var/lib/kolla/config_files/ironic_api.json:
command: /usr/sbin/httpd -DFOREGROUND command: /usr/sbin/httpd -DFOREGROUND
config_files: config_files:
- source: "/var/lib/kolla/config_files/src/etc/httpd/conf.d"
dest: "/etc/httpd/conf.d"
merge: false
preserve_properties: true
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
merge: true merge: true

View File

@ -63,6 +63,10 @@ outputs:
/var/lib/kolla/config_files/ironic_pxe_http.json: /var/lib/kolla/config_files/ironic_pxe_http.json:
command: /usr/sbin/httpd -DFOREGROUND command: /usr/sbin/httpd -DFOREGROUND
config_files: config_files:
- source: "/var/lib/kolla/config_files/src/etc/httpd/conf.d"
dest: "/etc/httpd/conf.d"
merge: false
preserve_properties: true
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
merge: true merge: true

View File

@ -691,6 +691,14 @@ outputs:
dest: "/etc/keystone/fernet-keys" dest: "/etc/keystone/fernet-keys"
merge: false merge: false
preserve_properties: true preserve_properties: true
- source: "/var/lib/kolla/config_files/src/etc/httpd/conf.d"
dest: "/etc/httpd/conf.d"
merge: false
preserve_properties: true
- source: "/var/lib/kolla/config_files/src/etc/httpd/conf.modules.d"
dest: "/etc/httpd/conf.modules.d"
merge: false
preserve_properties: true
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
merge: true merge: true

View File

@ -256,6 +256,10 @@ outputs:
/var/lib/kolla/config_files/zaqar.json: /var/lib/kolla/config_files/zaqar.json:
command: /usr/sbin/httpd -DFOREGROUND command: /usr/sbin/httpd -DFOREGROUND
config_files: config_files:
- source: "/var/lib/kolla/config_files/src/etc/httpd/conf.d"
dest: "/etc/httpd/conf.d"
merge: false
preserve_properties: true
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
merge: true merge: true

View File

@ -171,6 +171,10 @@ outputs:
/var/lib/kolla/config_files/barbican_api.json: /var/lib/kolla/config_files/barbican_api.json:
command: /usr/sbin/httpd -DFOREGROUND command: /usr/sbin/httpd -DFOREGROUND
config_files: config_files:
- source: "/var/lib/kolla/config_files/src/etc/httpd/conf.d"
dest: "/etc/httpd/conf.d"
merge: false
preserve_properties: true
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
merge: true merge: true

View File

@ -105,6 +105,10 @@ outputs:
/var/lib/kolla/config_files/ec2_api_tls_proxy.json: /var/lib/kolla/config_files/ec2_api_tls_proxy.json:
command: /usr/sbin/httpd -DFOREGROUND command: /usr/sbin/httpd -DFOREGROUND
config_files: config_files:
- source: "/var/lib/kolla/config_files/src/etc/httpd/conf.d"
dest: "/etc/httpd/conf.d"
merge: false
preserve_properties: true
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
merge: true merge: true

View File

@ -113,6 +113,10 @@ outputs:
/var/lib/kolla/config_files/gnocchi_api.json: /var/lib/kolla/config_files/gnocchi_api.json:
command: /usr/sbin/httpd -DFOREGROUND command: /usr/sbin/httpd -DFOREGROUND
config_files: &gnocchi_api_kolla_config_files config_files: &gnocchi_api_kolla_config_files
- source: "/var/lib/kolla/config_files/src/etc/httpd/conf.d"
dest: "/etc/httpd/conf.d"
merge: false
preserve_properties: true
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
merge: true merge: true

View File

@ -76,6 +76,10 @@ outputs:
/var/lib/kolla/config_files/horizon.json: /var/lib/kolla/config_files/horizon.json:
command: /usr/sbin/httpd -DFOREGROUND command: /usr/sbin/httpd -DFOREGROUND
config_files: config_files:
- source: "/var/lib/kolla/config_files/src/etc/httpd/conf.d"
dest: "/etc/httpd/conf.d"
merge: false
preserve_properties: true
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
merge: true merge: true

View File

@ -130,6 +130,10 @@ outputs:
/var/lib/kolla/config_files/neutron_server_tls_proxy.json: /var/lib/kolla/config_files/neutron_server_tls_proxy.json:
command: /usr/sbin/httpd -DFOREGROUND command: /usr/sbin/httpd -DFOREGROUND
config_files: config_files:
- source: "/var/lib/kolla/config_files/src/etc/httpd/conf.d"
dest: "/etc/httpd/conf.d"
merge: false
preserve_properties: true
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
merge: true merge: true

View File

@ -130,6 +130,10 @@ outputs:
/var/lib/kolla/config_files/nova_api.json: /var/lib/kolla/config_files/nova_api.json:
command: /usr/sbin/httpd -DFOREGROUND command: /usr/sbin/httpd -DFOREGROUND
config_files: config_files:
- source: "/var/lib/kolla/config_files/src/etc/httpd/conf.d"
dest: "/etc/httpd/conf.d"
merge: false
preserve_properties: true
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
merge: true merge: true

View File

@ -120,6 +120,10 @@ outputs:
/var/lib/kolla/config_files/nova_metadata.json: /var/lib/kolla/config_files/nova_metadata.json:
command: /usr/sbin/httpd -DFOREGROUND command: /usr/sbin/httpd -DFOREGROUND
config_files: config_files:
- source: "/var/lib/kolla/config_files/src/etc/httpd/conf.d"
dest: "/etc/httpd/conf.d"
merge: false
preserve_properties: true
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
merge: true merge: true

View File

@ -106,6 +106,10 @@ outputs:
/var/lib/kolla/config_files/nova_placement.json: /var/lib/kolla/config_files/nova_placement.json:
command: /usr/sbin/httpd -DFOREGROUND command: /usr/sbin/httpd -DFOREGROUND
config_files: config_files:
- source: "/var/lib/kolla/config_files/src/etc/httpd/conf.d"
dest: "/etc/httpd/conf.d"
merge: false
preserve_properties: true
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
merge: true merge: true

View File

@ -120,6 +120,10 @@ outputs:
/var/lib/kolla/config_files/octavia_api_tls_proxy.json: /var/lib/kolla/config_files/octavia_api_tls_proxy.json:
command: /usr/sbin/httpd -DFOREGROUND command: /usr/sbin/httpd -DFOREGROUND
config_files: config_files:
- source: "/var/lib/kolla/config_files/src/etc/httpd/conf.d"
dest: "/etc/httpd/conf.d"
merge: false
preserve_properties: true
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
merge: true merge: true

View File

@ -92,6 +92,10 @@ outputs:
/var/lib/kolla/config_files/panko_api.json: /var/lib/kolla/config_files/panko_api.json:
command: /usr/sbin/httpd -DFOREGROUND command: /usr/sbin/httpd -DFOREGROUND
config_files: config_files:
- source: "/var/lib/kolla/config_files/src/etc/httpd/conf.d"
dest: "/etc/httpd/conf.d"
merge: false
preserve_properties: true
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
merge: true merge: true

View File

@ -99,6 +99,10 @@ outputs:
/var/lib/kolla/config_files/swift_proxy_tls_proxy.json: /var/lib/kolla/config_files/swift_proxy_tls_proxy.json:
command: /usr/sbin/httpd -DFOREGROUND command: /usr/sbin/httpd -DFOREGROUND
config_files: config_files:
- source: "/var/lib/kolla/config_files/src/etc/httpd/conf.d"
dest: "/etc/httpd/conf.d"
merge: false
preserve_properties: true
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
merge: true merge: true

View File

@ -87,6 +87,10 @@ outputs:
/var/lib/kolla/config_files/tripleo_ui.json: /var/lib/kolla/config_files/tripleo_ui.json:
command: /usr/sbin/httpd -DFOREGROUND command: /usr/sbin/httpd -DFOREGROUND
config_files: config_files:
- source: "/var/lib/kolla/config_files/src/etc/httpd/conf.d"
dest: "/etc/httpd/conf.d"
merge: false
preserve_properties: true
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
merge: true merge: true