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
18 lines
730 B
Django/Jinja
18 lines
730 B
Django/Jinja
name: openstack/glance/glance-registry
|
|
container:
|
|
image: "{{ glance_registry_image }}:{{ glance_registry_tag }}"
|
|
service:
|
|
daemon:
|
|
dependencies: [glance_ansible_tasks/create_user, keystone_ansible_tasks/running]
|
|
command: glance-registry
|
|
files:
|
|
glance.conf.j2:
|
|
source: ["config/glance/templates/glance-registry.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-registry.conf"]
|
|
dest: /etc/glance/glance.conf
|
|
owner: glance
|
|
perm: "0600" |