From de0a10874b55a973822f474773bfcaa2863e6dd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Tue, 28 Apr 2015 18:15:16 +0000 Subject: [PATCH] documentation say [glance_store], but this actually works --- .../fed-cloud09.cloud.fedoraproject.org.yml | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/playbooks/hosts/fed-cloud09.cloud.fedoraproject.org.yml b/playbooks/hosts/fed-cloud09.cloud.fedoraproject.org.yml index e4c854d74c..26f67eaf56 100644 --- a/playbooks/hosts/fed-cloud09.cloud.fedoraproject.org.yml +++ b/playbooks/hosts/fed-cloud09.cloud.fedoraproject.org.yml @@ -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