From a8d30b76b8f27f782409a6cd32426bb90ff4e6eb Mon Sep 17 00:00:00 2001 From: Egon Rijpkema Date: Mon, 16 Oct 2017 15:25:11 +0200 Subject: [PATCH] added volume for glance images --- roles/glance-controller/tasks/main.yml | 1 + roles/glance-controller/templates/glance.service | 1 + 2 files changed, 2 insertions(+) diff --git a/roles/glance-controller/tasks/main.yml b/roles/glance-controller/tasks/main.yml index 058d150..4b8cbdc 100644 --- a/roles/glance-controller/tasks/main.yml +++ b/roles/glance-controller/tasks/main.yml @@ -53,6 +53,7 @@ {{ env_vars }} --add-host=keystone:{{ listen_ip | default(hostvars[groups['keystone'][0]]['ansible_default_ipv4']['address']) }} \ -v /srv/glance/root:/root \ + -v /var/lib/glance/images:/var/lib/glance/images \ {{ docker_image }} /etc/bootstrap.sh tags: bootstrap diff --git a/roles/glance-controller/templates/glance.service b/roles/glance-controller/templates/glance.service index ae82d66..71ccc40 100644 --- a/roles/glance-controller/templates/glance.service +++ b/roles/glance-controller/templates/glance.service @@ -11,6 +11,7 @@ ExecStartPre=-/usr/bin/docker rm %n ExecStart=/usr/bin/docker run --name %n \ {{ env_vars | replace('\n', '') }} \ -v /srv/glance/root:/root \ + -v /var/lib/glance/images:/var/lib/glance/images \ -p 9292:9292 \ {{ docker_image }}