Browse Source

Added cinder block storage.

feature/cinder-volume-encryption
Egon Rijpkema 5 years ago
parent
commit
5571858b23
  1. 9
      cinder-controller.yml
  2. 9
      cinder-storage.yml
  3. 6
      hosts
  4. 6
      roles/cinder-controller/tasks/main.yml
  5. 2
      roles/cinder-controller/templates/cinder-controller.service

9
cinder-controller.yml

@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
---
- hosts: all
name: Dummy to gather facts
tasks: []
- hosts: cinder-controller
become: True
roles:
- cinder-controller

9
cinder-storage.yml

@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
---
- hosts: all
name: Dummy to gather facts
tasks: []
- hosts: cinder-storage
become: True
roles:
- cinder-storage

6
hosts

@ -39,5 +39,11 @@ openstack01-node01 provider_interface_name=ens192 @@ -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

6
roles/cinder-controller/tasks/main.yml

@ -31,8 +31,8 @@ @@ -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 @@ @@ -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

2
roles/cinder-controller/templates/cinder-controller.service

@ -10,7 +10,7 @@ ExecStartPre=-/usr/bin/docker kill %n @@ -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…
Cancel
Save