Created
March 9, 2017 17:13
-
-
Save evrardjp/3dcc0a5a9bd34586efd1aaf6ecc8f325 to your computer and use it in GitHub Desktop.
It works!
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
storage_hosts: | |
aio1: | |
ip: 172.29.236.100 | |
container_vars: | |
cinder_backends: "{{ cinder_backends_per_host.get(inventory_hostname) }}" |
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
--- | |
- hosts: aio1_aodh_container-c065ea73 | |
connection: local | |
gather_facts: no | |
tasks: | |
- debug: | |
msg: "{{ hostvars[inventory_hostname]['cinder_backends'] }}" |
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
--- | |
cinder_backends_per_host: | |
aio1_aodh_container-c065ea73: | |
limit_container_types: cinder_volume | |
lvm: | |
volume_group: cinder-volumes | |
volume_driver: cinder.volume.drivers.lvm.LVMVolumeDriver3 | |
volume_backend_name: LVM_iSCSI | |
iscsi_ip_address: "172.29.236.100" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Resulting output: