git push --set-upstream origin merlin

This commit is contained in:
Wim Nap
2018-04-13 16:19:17 +02:00
parent a150b58aaa
commit 240a1f22f3
16 changed files with 179 additions and 35 deletions

View File

@ -0,0 +1,9 @@
$ANSIBLE_VAULT;1.1;AES256
39313161646365373665646331613930316437363735326262376531636166346138303139613138
3361353633616136303365646165643339333130393031380a373934636436626336326436306666
34316532333165346139633239313930326238333134633365666138326338386632373937343335
3262383863653136300a393464646365623763663063303936646462313764633736613562633661
62313961626165363761656363393538396461653936353932303137626435626161316239623338
65656132353136656430613462663466616432643761303366396461653066616162366666356533
39386261623861323861633739343237386266306264356436666430313531303238636235393665
31396533306261393835

View File

@ -0,0 +1,2 @@
[client.volumes]
keyring = /etc/ceph/ceph.client.volumes.keyring

View File

@ -0,0 +1 @@
d0db6ba7-a0c9-4da6-b0bc-aa7846325333

View File

@ -6,6 +6,9 @@
name: secrets
tags: vars
#- command: uuidgen
# register: uuid
- set_fact:
docker_image: registry.webhosting.rug.nl/hpc/openstack-cinder-storage:latest
env_vars: >
@ -36,6 +39,7 @@
with_items:
- /srv/cinder-storage
- /srv/cinder-storage/root
- /srv/cinder-storage/etc/ceph
- name: initial setup
command: >
@ -43,10 +47,22 @@
--privileged
{{ env_vars }}
-v /srv/cinder-storage/root:/root \
-v "{{ storage_volume }}":/dev/cinder_storage_volume \
{{ docker_image }} /etc/bootstrap.sh
tags: bootstrap
- name: copy ceph-client configurationfile
copy:
src: files/ceph.conf
dest: /srv/cinder-storage/etc/ceph/ceph.conf
mode: 644
- name: copy ceph-client-keyring
copy:
src: files/ceph.client.volumes.keyring
dest: /srv/cinder-storage/etc/ceph/ceph.client.volumes.keyring
mode: 644
- name: install service file.
template:
src: templates/cinder-storage.service

View File

@ -11,11 +11,12 @@ ExecStartPre=-/usr/bin/docker rm %n
ExecStart=/usr/bin/docker run --name %n \
--privileged \
{{ env_vars | replace('\n', '') }} \
-v "/dev/cinder-volumes/":/dev/cinder-volumes \
-v /dev/cinder-volumes/:/dev/cinder-volumes \
-v /srv/cinder-storage/root:/root \
-v "{{ storage_volume }}":/dev/cinder_storage_volume \
-v "/dev/lvm":/dev/lvm \
-v "/srv/cinder-storage/volumes/:/var/lib/cinder/volumes/" \
-v /dev/lvm:/dev/lvm \
-v /srv/cinder-storage/volumes/:/var/lib/cinder/volumes/ \
-v /srv/cinder-storage/etc/ceph:/etc/ceph
-p 8777:8776 \
-p 3260:3260 \
{{ docker_image }}