Added variables ceph for glance and cinder.
This commit is contained in:
parent
c0555cdcfa
commit
75f384c579
@ -24,6 +24,11 @@
|
|||||||
-e "RABBIT_HOST={{ listen_ip | default(hostvars[groups['rabbitmq'][0]]['ansible_default_ipv4']['address']) }}"
|
-e "RABBIT_HOST={{ listen_ip | default(hostvars[groups['rabbitmq'][0]]['ansible_default_ipv4']['address']) }}"
|
||||||
-e "RABBIT_PASSWORD={{ secrets['RABBIT_PASSWORD'] }}"
|
-e "RABBIT_PASSWORD={{ secrets['RABBIT_PASSWORD'] }}"
|
||||||
-e "RABBIT_USER=openstack"
|
-e "RABBIT_USER=openstack"
|
||||||
|
-e "USE_CEPH={{ use_ceph }}"
|
||||||
|
-e "MON_INITIAL_MEMBERS={{ ceph_mon_initial_members }}"
|
||||||
|
-e "MON_HOST={{ ceph_mon_host }}"
|
||||||
|
-e "PUBLIC_NETWORK={{ ceph_public_network }}"
|
||||||
|
-e "OSD_POOL_DEFAULT_SIZE={{ ceph_osd_pool_default_size }}"
|
||||||
tags: vars
|
tags: vars
|
||||||
|
|
||||||
- name: pull docker image
|
- name: pull docker image
|
||||||
@ -37,9 +42,9 @@
|
|||||||
state: directory
|
state: directory
|
||||||
mode: 0777
|
mode: 0777
|
||||||
with_items:
|
with_items:
|
||||||
- /srv/cinder-storage
|
- /srv/cinder-storage
|
||||||
- /srv/cinder-storage/root
|
- /srv/cinder-storage/root
|
||||||
- /srv/cinder-storage/etc/ceph
|
- /srv/cinder-storage/etc/ceph
|
||||||
|
|
||||||
- name: initial setup
|
- name: initial setup
|
||||||
command: >
|
command: >
|
||||||
@ -62,7 +67,6 @@
|
|||||||
dest: /srv/cinder-storage/etc/ceph/ceph.client.volumes.keyring
|
dest: /srv/cinder-storage/etc/ceph/ceph.client.volumes.keyring
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
|
|
||||||
- name: install service file.
|
- name: install service file.
|
||||||
template:
|
template:
|
||||||
src: templates/cinder-storage.service
|
src: templates/cinder-storage.service
|
||||||
@ -72,6 +76,12 @@
|
|||||||
group: root
|
group: root
|
||||||
tags: systemd
|
tags: systemd
|
||||||
|
|
||||||
|
- name: set ceph client keyring
|
||||||
|
copy:
|
||||||
|
content: "{{ceph_cinder_client_keyring}}"
|
||||||
|
dest: /srv/cinder-storage/etc/ceph
|
||||||
|
when: use_ceph
|
||||||
|
|
||||||
- command: systemctl daemon-reload
|
- command: systemctl daemon-reload
|
||||||
tags: systemd
|
tags: systemd
|
||||||
|
|
||||||
|
@ -19,7 +19,11 @@
|
|||||||
-e "RABBIT_HOST={{ listen_ip | default(hostvars[groups['rabbitmq'][0]]['ansible_default_ipv4']['address']) }}"
|
-e "RABBIT_HOST={{ listen_ip | default(hostvars[groups['rabbitmq'][0]]['ansible_default_ipv4']['address']) }}"
|
||||||
-e "RABBIT_PASSWORD={{ secrets['RABBIT_PASSWORD'] }}"
|
-e "RABBIT_PASSWORD={{ secrets['RABBIT_PASSWORD'] }}"
|
||||||
-e "RABBIT_USER=openstack"
|
-e "RABBIT_USER=openstack"
|
||||||
|
-e "USE_CEPH={{ use_ceph }}"
|
||||||
|
-e "MON_INITIAL_MEMBERS={{ ceph_mon_initial_members }}"
|
||||||
|
-e "MON_HOST={{ ceph_mon_host }}"
|
||||||
|
-e "PUBLIC_NETWORK={{ ceph_public_network }}"
|
||||||
|
-e "OSD_POOL_DEFAULT_SIZE={{ ceph_osd_pool_default_size }}"
|
||||||
|
|
||||||
#- name: pull docker image
|
#- name: pull docker image
|
||||||
# docker_image:
|
# docker_image:
|
||||||
@ -48,6 +52,12 @@
|
|||||||
dest: /srv/glance/etc/ceph/ceph.client.volumes.keyring
|
dest: /srv/glance/etc/ceph/ceph.client.volumes.keyring
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
|
||||||
|
- name: set ceph client keyring
|
||||||
|
copy:
|
||||||
|
content: "{{ceph_images_client_keyring}}"
|
||||||
|
dest: /srv/cinder-storage/etc/ceph/ceph.client.images.keyring
|
||||||
|
when: use_ceph
|
||||||
|
|
||||||
- name: install service file.
|
- name: install service file.
|
||||||
template:
|
template:
|
||||||
src: templates/glance.service
|
src: templates/glance.service
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
|
|
||||||
- name: set ceph client keyring
|
- name: set ceph client keyring
|
||||||
copy:
|
copy:
|
||||||
content: "{{ceph_client_keyring}}"
|
content: "{{ceph_compute_client_keyring}}"
|
||||||
dest: /srv/nova-compute/etc/ceph
|
dest: /srv/nova-compute/etc/ceph
|
||||||
when: use_ceph
|
when: use_ceph
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user