Skip to content

Instantly share code, notes, and snippets.

@brk3
Created May 11, 2018 11:18
Show Gist options
  • Save brk3/719cb9c7ccb655b3dbd129a40544af13 to your computer and use it in GitHub Desktop.
Save brk3/719cb9c7ccb655b3dbd129a40544af13 to your computer and use it in GitHub Desktop.
---
- hosts: storage
tasks:
- name: Setup Cinder
shell: |
free_device=$(losetup -f)
fallocate -l 10G /var/lib/cinder_data.img
losetup $free_device /var/lib/cinder_data.img
pvcreate $free_device
vgcreate cinder-volumes $free_device
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment