1f95680a32
Note: whilst this is a large patch, most of it is just moving stuff around. This has a number of benefits now: - generate the marathon/chronos files - one file per running container (easier to manage changes) - no need to redefine lots of marathon attributes - to create special marathon attributes specify them under "service"/"task" or "container" depending on the attribute and it will override the value in services/default.marathon.j2 - render the command's files just before running the command (previously there was a risk of rendering the files too early) We can benefit from the changes with a little more work: - any update tasks can be easily separated from the service Change-Id: I007c2859b9d4bf8e9b984cbeba93456a9ce06f29
31 lines
1.0 KiB
Django/Jinja
31 lines
1.0 KiB
Django/Jinja
name: openstack/glance/glance-api
|
|
container:
|
|
image: "{{ glance_api_image }}:{{ glance_api_tag }}"
|
|
service:
|
|
daemon:
|
|
dependencies: [glance_ansible_tasks/create_database,
|
|
glance_ansible_tasks/database_user_create,
|
|
glance-api/db_sync]
|
|
command: glance-api
|
|
|
|
commands:
|
|
db_sync:
|
|
run_once: True
|
|
dependencies: [glance_ansible_tasks/create_database,
|
|
glance_ansible_tasks/database_user_create]
|
|
command: kolla_extend_start
|
|
env:
|
|
KOLLA_BOOTSTRAP:
|
|
files:
|
|
glance.conf.j2:
|
|
source: ["config/glance/templates/glance-api.conf.j2",
|
|
"config/glance/templates/glance-file.conf.j2",
|
|
"/etc/kolla-mesos/config/global.conf",
|
|
"/etc/kolla-mesos/config/database.conf",
|
|
"/etc/kolla-mesos/config/messaging.conf",
|
|
"/etc/kolla-mesos/config/glance.conf",
|
|
"/etc/kolla-mesos/config/glance/glance-api.conf"]
|
|
dest: /etc/glance/glance-api.conf
|
|
owner: glance
|
|
perm: "0600"
|