Remove creating cinder volume from bootstrap
This commit is contained in:
parent
c96701c428
commit
3115ffa4e8
@ -8,5 +8,4 @@
|
|||||||
- include: tasks/puppet.yml
|
- include: tasks/puppet.yml
|
||||||
- include: tasks/docker.yml
|
- include: tasks/docker.yml
|
||||||
#- include: celery.yml tags=['master'] celery_dir=/var/run/celery
|
#- include: celery.yml tags=['master'] celery_dir=/var/run/celery
|
||||||
- include: tasks/cinder.yml
|
|
||||||
- include: tasks/cloud_archive.yml
|
- include: tasks/cloud_archive.yml
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- apt: name=lvm2 state=present
|
|
||||||
- command: sudo truncate -s 10G /root/cinder.img creates=/root/cinder.img
|
|
||||||
- shell: sudo losetup -a|grep cinder
|
|
||||||
register: loop_created
|
|
||||||
ignore_errors: True
|
|
||||||
- command: sudo losetup /dev/loop0 /root/cinder.img
|
|
||||||
when: loop_created|failed
|
|
||||||
# retries: 5
|
|
||||||
# delay: 1
|
|
||||||
- lvg: vg=cinder-volumes pvs=/dev/loop0
|
|
||||||
when: loop_created|failed
|
|
||||||
# retries: 5
|
|
||||||
# delay: 1
|
|
@ -1,14 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- hosts: all
|
|
||||||
sudo: yes
|
|
||||||
tasks:
|
|
||||||
- apt: name=lvm2 state=present
|
|
||||||
- command: sudo truncate -s 10G /root/cinder.img creates=/root/cinder.img
|
|
||||||
- shell: sudo losetup -a|grep cinder
|
|
||||||
register: loop_created
|
|
||||||
ignore_errors: True
|
|
||||||
- command: sudo losetup /dev/loop0 /root/cinder.img
|
|
||||||
when: loop_created|failed
|
|
||||||
- lvg: vg=cinder-volumes pvs=/dev/loop0
|
|
||||||
when: loop_created|failed
|
|
Loading…
x
Reference in New Issue
Block a user