documentation say [glance_store], but this actually works
This commit is contained in:
parent
1048e59cd9
commit
de0a10874b
1 changed files with 15 additions and 5 deletions
|
@ -379,11 +379,11 @@
|
|||
- ini_file: dest=/etc/glance/glance-api.conf section=DEFAULT option=bind_port value=7292
|
||||
# configure Glance to use Swift as backend
|
||||
- ini_file: dest=/etc/glance/glance-api.conf section=DEFAULT option=default_store value=swift
|
||||
- ini_file: dest=/etc/glance/glance-api.conf section=glance_store option=stores value=glance.store.swift.Store
|
||||
- ini_file: dest=/etc/glance/glance-api.conf section=glance_store option=swift_store_auth_address value=https://{{ controller_hostname }}:5000/v2.0
|
||||
- ini_file: dest=/etc/glance/glance-api.conf section=glance_store option=swift_store_user value="services:swift"
|
||||
- ini_file: dest=/etc/glance/glance-api.conf section=glance_store option=swift_store_key value="{{ SWIFT_PASS }}"
|
||||
- ini_file: dest=/etc/glance/glance-api.conf section=glance_store option=swift_store_create_container_on_put value="True"
|
||||
- ini_file: dest=/etc/glance/glance-api.conf section=DEFAULT option=stores value=glance.store.swift.Store
|
||||
- ini_file: dest=/etc/glance/glance-api.conf section=DEFAULT option=swift_store_auth_address value=https://{{ controller_hostname }}:5000/v2.0
|
||||
- ini_file: dest=/etc/glance/glance-api.conf section=DEFAULT option=swift_store_user value="services:swift"
|
||||
- ini_file: dest=/etc/glance/glance-api.conf section=DEFAULT option=swift_store_key value="{{ SWIFT_PASS }}"
|
||||
- ini_file: dest=/etc/glance/glance-api.conf section=DEFAULT option=swift_store_create_container_on_put value="True"
|
||||
- shell: rsync /usr/share/glance/glance-api-dist-paste.ini /etc/glance/glance-api-paste.ini
|
||||
- shell: rsync /usr/share/glance/glance-registry-dist-paste.ini /etc/glance/glance-registry-paste.ini
|
||||
|
||||
|
@ -480,10 +480,20 @@
|
|||
ini_file: dest=/etc/cinder/cinder.conf section="equallogic-1" option="san_password" value="{{ SAN_PW }}"
|
||||
- ini_file: dest=/etc/cinder/cinder.conf section="equallogic-1" option="eqlx_group_name" value="{{ EQLX_GROUP }}"
|
||||
- ini_file: dest=/etc/cinder/cinder.conf section="equallogic-1" option="eqlx_pool" value="{{ EQLX_POOL }}"
|
||||
- ini_file: dest=/etc/cinder/cinder.conf section="equallogic-1" option="volume_backend_name" value="equallogic"
|
||||
- service: name=openstack-cinder-api state=restarted
|
||||
- service: name=openstack-cinder-scheduler state=restarted
|
||||
- service: name=openstack-cinder-volume state=restarted
|
||||
|
||||
# create storage types
|
||||
# note that existing keys can be retrieved using: cinder extra-specs-list
|
||||
- shell: source /root/keystonerc_admin && cinder type-create lvm
|
||||
ignore_errors: yes
|
||||
- shell: source /root/keystonerc_admin && cinder type-key lvm set volume_backend_name=lvm
|
||||
- shell: source /root/keystonerc_admin && cinder type-create equallogic
|
||||
ignore_errors: yes
|
||||
- shell: source /root/keystonerc_admin && cinder type-key equallogic set volume_backend_name=equallogic
|
||||
|
||||
# http://docs.openstack.org/icehouse/install-guide/install/yum/content/glance-verify.html
|
||||
- file: path=/root/images state=directory
|
||||
- get_url: url=http://cdn.download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-disk.img dest=/root/images/cirros-0.3.2-x86_64-disk.img mode=0440
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue