Skip to content

Commit 6b35e78

Browse files
Jenkinsopenstack-gerrit
Jenkins
authored andcommitted
Merge "Add configuration for glance-api used by cinder."
2 parents 16c4e7f + d4b5fae commit 6b35e78

File tree

6 files changed

+23
-0
lines changed

6 files changed

+23
-0
lines changed

manifests/cinder/all.pp

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
$rabbit_hosts = undef,
1616
$rabbit_port = '5672',
1717
$rabbit_virtual_host = '/',
18+
$glance_api_servers = '127.0.0.1:9292',
1819
# Database. Currently mysql is the only option.
1920
$db_type = 'mysql',
2021
$db_user = 'cinder',
@@ -113,4 +114,8 @@
113114
}
114115
}
115116
}
117+
118+
class { '::cinder::glance':
119+
glance_api_servers => $glance_api_servers
120+
}
116121
}

manifests/cinder/controller.pp

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
$rabbit_hosts = false,
1616
$rabbit_port = '5672',
1717
$rabbit_virtual_host = '/',
18+
$glance_api_servers = '127.0.0.1:9292',
1819
# Database. Currently mysql is the only option.
1920
$db_type = 'mysql',
2021
$db_user = 'cinder',
@@ -80,4 +81,7 @@
8081
enabled => $scheduler_enabled,
8182
}
8283

84+
class { '::cinder::glance':
85+
glance_api_servers => $glance_api_servers
86+
}
8387
}

manifests/cinder/storage.pp

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
$rabbit_hosts = false,
77
$rabbit_port = '5672',
88
$rabbit_virtual_host = '/',
9+
$glance_api_servers = '127.0.0.1:9292',
910
$package_ensure = 'present',
1011
$api_paste_config = '/etc/cinder/api-paste.ini',
1112
$volume_package_ensure = 'present',
@@ -70,4 +71,8 @@
7071
warning("Unsupported volume driver: ${volume_driver}, make sure you are configuring this yourself")
7172
}
7273
}
74+
75+
class { '::cinder::glance':
76+
glance_api_servers => $glance_api_servers
77+
}
7378
}

spec/classes/openstack_cinder_all_spec.rb

+3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@
5757
:iscsi_ip_address => '127.0.0.1',
5858
:volume_group => 'cinder-volumes'
5959
)
60+
should contain_class('cinder::glance').with(
61+
:glance_api_servers => '127.0.0.1:9292'
62+
)
6063
should_not contain_class('cinder::setup_test_volume')
6164
end
6265

spec/classes/openstack_cinder_controller_spec.rb

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
:package_ensure => 'present',
5050
:enabled => true
5151
)
52+
should contain_class('cinder::glance').with(
53+
:glance_api_servers => '127.0.0.1:9292'
54+
)
5255
end
5356

5457
describe 'with custom syslog settings' do

spec/classes/openstack_cinder_storage_spec.rb

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
:iscsi_ip_address => '127.0.0.1',
3838
:volume_group => 'cinder-volumes'
3939
)
40+
should contain_class('cinder::glance').with(
41+
:glance_api_servers => '127.0.0.1:9292'
42+
)
4043
should_not contain_class('cinder::setup_test_volume')
4144
end
4245

0 commit comments

Comments
 (0)