Puppet: Switch glance to use a swift backend
authorDan Prince <dprince@redhat.com>
Fri, 9 Jan 2015 19:01:31 +0000 (14:01 -0500)
committerDan Prince <dprince@redhat.com>
Tue, 27 Jan 2015 14:07:19 +0000 (09:07 -0500)
Now that we have swift we can switch glance over
to make use of it.

Change-Id: I9513cb63079235337b684aa734af73a0f0cc0afd

controller-puppet.yaml
puppet/hieradata/controller.yaml
puppet/overcloud_controller.pp

index efb10fd..de1d9dc 100644 (file)
@@ -605,6 +605,8 @@ resources:
                 glance::registry::database_connection: {get_input: glance_dsn}
                 glance::registry::bind_host: {get_input: controller_host}
                 glance::registry::auth_host: {get_input: controller_virtual_ip}
+                glance::backend::swift::swift_store_user: service:glance
+                glance::backend::swift::swift_store_key: {get_input: glance_password}
                 # Heat
                 heat_password: {get_input: heat_password}
                 heat_stack_domain_admin_password: {get_input: heat_stack_domain_admin_password}
index 99783a5..b13f823 100644 (file)
@@ -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'
index b766dc5..20413cc 100644 (file)
@@ -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')],