Skip to content

Instantly share code, notes, and snippets.

Created November 16, 2017 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5f9d07c5d446a1209b609503cf04f09f to your computer and use it in GitHub Desktop.
Save anonymous/5f9d07c5d446a1209b609503cf04f09f to your computer and use it in GitHub Desktop.
Patch to give cinder-volume without LVM a setup for its container
diff --git a/playbooks/common-playbooks/cinder.yml b/playbooks/common-playbooks/cinder.yml
index dac06743..f2966ad0 100644
--- a/playbooks/common-playbooks/cinder.yml
+++ b/playbooks/common-playbooks/cinder.yml
@@ -40,7 +40,7 @@
vars:
network_address: "storage_address"
- - name: Configure container (cinder-volume)
+ - name: Configure container (cinder-volume with LVM)
include: ../common-tasks/os-lxc-container-setup.yml
static: no
vars:
@@ -55,11 +55,12 @@
- "'cinder_volume' in group_names"
- "cinder_backend_lvm_inuse | bool"
- - name: Configure container (other services)
+ - name: Configure container (other services or cinder-volume without LVM)
include: ../common-tasks/os-lxc-container-setup.yml
static: no
when:
- - "'cinder_volume' not in group_names"
+ - "('cinder_volume' not in group_names) or
+ ('cinder_volume' in group_names and not (cinder_backend_lvm_inuse | bool))"
- name: Configure log directories (on metal)
include: ../common-tasks/os-log-dir-setup.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment