From e6a88fcc66e1f19a50caa81b3171e74f03756f2e Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Fri, 9 Jan 2015 14:01:31 -0500 Subject: Puppet: Switch glance to use a swift backend Now that we have swift we can switch glance over to make use of it. Change-Id: I9513cb63079235337b684aa734af73a0f0cc0afd --- puppet/hieradata/controller.yaml | 4 ++++ puppet/overcloud_controller.pp | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'puppet') diff --git a/puppet/hieradata/controller.yaml b/puppet/hieradata/controller.yaml index 99783a54..b13f8234 100644 --- a/puppet/hieradata/controller.yaml +++ b/puppet/hieradata/controller.yaml @@ -38,8 +38,12 @@ swift::proxy::account_autocreate: true # glance glance::api::pipeline: 'keystone' +glance::api::known_stores: + - glance.store.filesystem.Store + - glance.store.swift.Store glance::registry::pipeline: 'keystone' glance::registry::manage_service: true +glance::backend::swift::swift_store_create_container_on_put: true # neutron neutron::core_plugin: 'ml2' diff --git a/puppet/overcloud_controller.pp b/puppet/overcloud_controller.pp index b766dc50..20413cc6 100644 --- a/puppet/overcloud_controller.pp +++ b/puppet/overcloud_controller.pp @@ -158,9 +158,12 @@ if hiera('step') >= 2 { require => File['/etc/keystone/ssl/certs'], } - # TODO: swift backend, also notifications, scrubber, etc. + # TODO: notifications, scrubber, etc. include ::glance::api include ::glance::registry + class { 'glance::backend::swift': + swift_store_auth_address => join(['http://', hiera('controller_virtual_ip'), ':5000/v2.0']), + } class { 'nova': rabbit_hosts => [hiera('controller_virtual_ip')], -- cgit 1.2.3-korg