aboutsummaryrefslogtreecommitdiffstats
path: root/puppet
diff options
context:
space:
mode:
authorDan Prince <dprince@redhat.com>2015-01-09 14:01:31 -0500
committerDan Prince <dprince@redhat.com>2015-01-27 09:07:19 -0500
commite6a88fcc66e1f19a50caa81b3171e74f03756f2e (patch)
treed0e8f705e7d99218aa8e20fff2afc85ab93c0866 /puppet
parent82de366b75d9782ce7b35fb90e9b2b60d4cff61d (diff)
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
Diffstat (limited to 'puppet')
-rw-r--r--puppet/hieradata/controller.yaml4
-rw-r--r--puppet/overcloud_controller.pp5
2 files changed, 8 insertions, 1 deletions
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')],