-
-
Save anonymous/5f9d07c5d446a1209b609503cf04f09f to your computer and use it in GitHub Desktop.
Patch to give cinder-volume without LVM a setup for its container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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