Remove creating cinder volume from bootstrap

This commit is contained in:
Łukasz Oleś 2015-09-03 10:51:41 +00:00
parent c96701c428
commit 3115ffa4e8
3 changed files with 0 additions and 30 deletions

View File

@ -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

View File

@ -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

View File

@ -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