fuel-ccp-horizon/service/horizon.yaml

40 lines
1.1 KiB
YAML

dsl_version: 0.1.0
service:
name: horizon
ports:
- {{ horizon.port }}
containers:
- name: horizon
image: horizon
probes:
readiness:
type: "httpGet"
port: {{ horizon.port.cont }}
path: "/"
volumes:
- name: horizon-logs
path: "/var/log/ccp/horizon"
type: host
readOnly: False
pre:
- name: chown-logs-dir
command: "sudo /bin/chown horizon:horizon /var/log/ccp/horizon"
- name: horizon-compress # Just for Mitaka compatibility
command: /var/lib/microservices/venv/bin/python /var/lib/microservices/venv/bin/manage.py compress
daemon:
dependencies:
- keystone
- memcached
files:
- horizon-local-settings
- openstack-dashboard-conf
command: daemon.sh
files:
horizon-local-settings:
path: /etc/openstack-dashboard/local_settings
content: local_settings.j2
openstack-dashboard-conf:
path: /etc/apache2/conf-enabled/openstack-dashboard.conf
content: openstack-dashboard.conf.j2