Merge "Allow more generic overrides for horizon"
This commit is contained in:
commit
3d76d5da56
@ -27,8 +27,17 @@ function start () {
|
|||||||
# wsgi/horizon-http needs open files here, including secret_key_store
|
# wsgi/horizon-http needs open files here, including secret_key_store
|
||||||
chown -R horizon ${SITE_PACKAGES_ROOT}/openstack_dashboard/local/
|
chown -R horizon ${SITE_PACKAGES_ROOT}/openstack_dashboard/local/
|
||||||
|
|
||||||
a2enmod rewrite
|
{{- if .Values.conf.software.apache2.a2enmod }}
|
||||||
a2dismod status
|
{{- range .Values.conf.software.apache2.a2enmod }}
|
||||||
|
a2enmod {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- if .Values.conf.software.apache2.a2dismod }}
|
||||||
|
{{- range .Values.conf.software.apache2.a2dismod }}
|
||||||
|
a2dismod {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
if [ -f /etc/apache2/envvars ]; then
|
if [ -f /etc/apache2/envvars ]; then
|
||||||
# Loading Apache2 ENV variables
|
# Loading Apache2 ENV variables
|
||||||
@ -53,11 +62,11 @@ function start () {
|
|||||||
/tmp/manage.py compress --force
|
/tmp/manage.py compress --force
|
||||||
rm -rf /tmp/_tmp_.secret_key_store.lock /tmp/.secret_key_store
|
rm -rf /tmp/_tmp_.secret_key_store.lock /tmp/.secret_key_store
|
||||||
|
|
||||||
exec apache2 -DFOREGROUND
|
exec {{ .Values.conf.software.apache2.binary }} {{ .Values.conf.software.apache2.start_parameters }}
|
||||||
}
|
}
|
||||||
|
|
||||||
function stop () {
|
function stop () {
|
||||||
apachectl -k graceful-stop
|
{{ .Values.conf.software.apache2.binary }} -k graceful-stop
|
||||||
}
|
}
|
||||||
|
|
||||||
$COMMAND
|
$COMMAND
|
||||||
|
@ -101,12 +101,12 @@ spec:
|
|||||||
subPath: manage.py
|
subPath: manage.py
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: horizon-etc
|
- name: horizon-etc
|
||||||
mountPath: /etc/apache2/sites-enabled/000-default.conf
|
mountPath: {{ .Values.conf.software.apache2.site_dir }}/000-default.conf
|
||||||
subPath: horizon.conf
|
subPath: horizon.conf
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{- if .Values.conf.horizon.security }}
|
{{- if .Values.conf.horizon.security }}
|
||||||
- name: horizon-etc
|
- name: horizon-etc
|
||||||
mountPath: /etc/apache2/conf-available/security.conf
|
mountPath: {{ .Values.conf.software.apache2.conf_dir }}/security.conf
|
||||||
subPath: security.conf
|
subPath: security.conf
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -57,6 +57,17 @@ network:
|
|||||||
port: 31000
|
port: 31000
|
||||||
|
|
||||||
conf:
|
conf:
|
||||||
|
software:
|
||||||
|
apache2:
|
||||||
|
binary: apache2
|
||||||
|
start_parameters: -DFOREGROUND
|
||||||
|
site_dir: /etc/apache2/sites-enable
|
||||||
|
conf_dir: /etc/apache2/conf-enabled
|
||||||
|
mods_dir: /etc/apache2/mods-available
|
||||||
|
a2enmod:
|
||||||
|
- rewrite
|
||||||
|
a2dismod:
|
||||||
|
- status
|
||||||
horizon:
|
horizon:
|
||||||
apache: |
|
apache: |
|
||||||
Listen 0.0.0.0:{{ tuple "dashboard" "internal" "web" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
Listen 0.0.0.0:{{ tuple "dashboard" "internal" "web" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user