Added cinder block storage.
This commit is contained in:
parent
b148b04a0b
commit
5571858b23
9
cinder-controller.yml
Normal file
9
cinder-controller.yml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
- hosts: all
|
||||
name: Dummy to gather facts
|
||||
tasks: []
|
||||
|
||||
- hosts: cinder-controller
|
||||
become: True
|
||||
roles:
|
||||
- cinder-controller
|
9
cinder-storage.yml
Normal file
9
cinder-storage.yml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
- hosts: all
|
||||
name: Dummy to gather facts
|
||||
tasks: []
|
||||
|
||||
- hosts: cinder-storage
|
||||
become: True
|
||||
roles:
|
||||
- cinder-storage
|
6
hosts
6
hosts
@ -39,5 +39,11 @@ openstack01-node01 provider_interface_name=ens192
|
||||
[nova-controller]
|
||||
openstack01-node03
|
||||
|
||||
[cinder-controller]
|
||||
openstack01-node03
|
||||
|
||||
[cinder-storage]
|
||||
openstack01-node01 storage_volume=/dev/loop0
|
||||
|
||||
[nova-compute]
|
||||
openstack01-node04 provider_interface_name=dummy0
|
||||
|
@ -31,8 +31,8 @@
|
||||
state: directory
|
||||
mode: 0777
|
||||
with_items:
|
||||
- /srv/cinder
|
||||
- /srv/cinder/root
|
||||
- /srv/cinder-controller
|
||||
- /srv/cinder-controller/root
|
||||
|
||||
- name: install service file.
|
||||
template:
|
||||
@ -48,7 +48,7 @@
|
||||
command: >
|
||||
/usr/bin/docker run --rm
|
||||
{{ env_vars }}
|
||||
-v /srv/cinder/root:/root \
|
||||
-v /srv/cinder-controller/root:/root \
|
||||
{{ docker_image }} /etc/bootstrap.sh
|
||||
tags: bootstrap
|
||||
|
||||
|
@ -10,7 +10,7 @@ ExecStartPre=-/usr/bin/docker kill %n
|
||||
ExecStartPre=-/usr/bin/docker rm %n
|
||||
ExecStart=/usr/bin/docker run --name %n \
|
||||
{{ env_vars | replace('\n', '') }} \
|
||||
-v /srv/glance/root:/root \
|
||||
-v /srv/cinder-controller/root:/root \
|
||||
-p 8776:8776 \
|
||||
{{ docker_image }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user