forked from redhat-openstack/openstack-puppet-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update glance to 0db42a6a60bd4952f795d61ea26ed299e8c35bc8
0db42a6a60bd4952f795d61ea26ed299e8c35bc8 Merge "Fix spec tests for RSpec 3.x and Puppet 4.x" 1d388344661b056c45e79e3c189f82db6ed0d69b make service description configurable 60de7b77df0d3705e7b18cf346651d3922b47e3d Fix spec tests for RSpec 3.x and Puppet 4.x b76fbcbea34b510191964cc3ed6a4c8e6f2acbfe glance provider: pick os_region_name from DEFAULT 9f345f97d12af09685c86fb236c3bf44273b10d6 Bump rspec-puppet to 2.1.0 15e08072566e7c05abeff9c73079fc16f1b9cb8f Merge "Revert "Revert "Fix os_region_name in provider""" 5609850a577050aa7a6692e41bbd3abc5cd1fed7 Merge "Revert "Fix os_region_name in provider"" b803a9a983bfd09c40e94bcb8a5ca10348af38ae Merge "Revert "Move rabbit/kombu settings to oslo_messaging_rabbit section"" a758389de6e6b22a20a716905f55df973b11bef9 Merge "MySQL: change default MySQL collate to utf8_general_ci" 2f614cf9fd15a5348ac11eb617e63883598f0497 MySQL: change default MySQL collate to utf8_general_ci 79d307044a3b2189278fdcb230625a6eae282d27 Beaker tests 62c42a5f6122d146f8c4e292c878cdd3e958a85f Revert "Revert "Fix os_region_name in provider"" e2301958e9dd4086fb6f5689499e5bb39e87e208 Revert "Fix os_region_name in provider" d302170d260f4e6585fedc1b4709c953d0491c56 Revert "Move rabbit/kombu settings to oslo_messaging_rabbit section"
- Loading branch information
Showing
22 changed files
with
292 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
require 'spec_helper_acceptance' | ||
|
||
describe 'glance class' do | ||
|
||
context 'default parameters' do | ||
|
||
it 'should work with no errors' do | ||
pp= <<-EOS | ||
Exec { logoutput => 'on_failure' } | ||
# Common resources | ||
case $::osfamily { | ||
'Debian': { | ||
include ::apt | ||
# some packages are not autoupgraded in trusty. | ||
# it will be fixed in liberty, but broken in kilo. | ||
$need_to_be_upgraded = ['python-tz', 'python-pbr'] | ||
apt::source { 'trusty-updates-kilo': | ||
location => 'http://ubuntu-cloud.archive.canonical.com/ubuntu/', | ||
release => 'trusty-updates', | ||
required_packages => 'ubuntu-cloud-keyring', | ||
repos => 'kilo/main', | ||
trusted_source => true, | ||
} -> | ||
package { $need_to_be_upgraded: | ||
ensure => latest, | ||
} | ||
} | ||
'RedHat': { | ||
include ::epel # Get our epel on | ||
} | ||
} | ||
class { '::mysql::server': } | ||
# Keystone resources, needed by Glance to run | ||
class { '::keystone::db::mysql': | ||
# https://bugs.launchpad.net/puppet-keystone/+bug/1446375 | ||
collate => 'utf8_general_ci', | ||
password => 'keystone', | ||
} | ||
class { '::keystone': | ||
verbose => true, | ||
debug => true, | ||
database_connection => 'mysql://keystone:[email protected]/keystone', | ||
admin_token => 'admin_token', | ||
enabled => true, | ||
} | ||
class { '::keystone::roles::admin': | ||
email => '[email protected]', | ||
password => 'a_big_secret', | ||
} | ||
class { '::keystone::endpoint': | ||
public_url => "https://${::fqdn}:5000/", | ||
admin_url => "https://${::fqdn}:35357/", | ||
} | ||
# Glance resources | ||
include ::glance | ||
include ::glance::client | ||
class { '::glance::db::mysql': | ||
# https://bugs.launchpad.net/puppet-glance/+bug/1446375 | ||
collate => 'utf8_general_ci', | ||
password => 'a_big_secret', | ||
} | ||
class { '::glance::keystone::auth': | ||
password => 'a_big_secret', | ||
} | ||
class { '::glance::api': | ||
database_connection => 'mysql://glance:[email protected]/glance?charset=utf8', | ||
verbose => false, | ||
keystone_password => 'big_secret', | ||
} | ||
class { '::glance::registry': | ||
database_connection => 'mysql://glance:[email protected]/glance?charset=utf8', | ||
verbose => false, | ||
keystone_password => 'a_big_secret', | ||
} | ||
EOS | ||
|
||
# Run it twice and test for idempotency | ||
apply_manifest(pp, :catch_failures => true) | ||
apply_manifest(pp, :catch_changes => true) | ||
end | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
HOSTS: | ||
centos-70-x64: | ||
roles: | ||
- master | ||
platform: el-7-x86_64 | ||
box : puppetlabs/centos-7.0-64-nocm | ||
hypervisor : vagrant | ||
CONFIG: | ||
type: foss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
HOSTS: | ||
ubuntu-server-1404-x64: | ||
roles: | ||
- master | ||
platform: ubuntu-14.04-amd64 | ||
box : trusty-server-cloudimg-amd64-vagrant-disk1 | ||
box_url : puppetlabs/ubuntu-14.04-64-nocm | ||
hypervisor : vagrant | ||
CONFIG: | ||
log_level : debug | ||
type: git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
HOSTS: | ||
centos-70-x64: | ||
roles: | ||
- master | ||
platform: el-7-x86_64 | ||
hypervisor : none | ||
ip: 127.0.0.1 | ||
CONFIG: | ||
type: foss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
HOSTS: | ||
ubuntu-server-1404-x64: | ||
roles: | ||
- master | ||
platform: ubuntu-14.04-amd64 | ||
hypervisor : none | ||
ip: 127.0.0.1 | ||
CONFIG: | ||
type: foss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
HOSTS: | ||
ubuntu-server-1404-x64: | ||
roles: | ||
- master | ||
platform: ubuntu-14.04-amd64 | ||
hypervisor : none | ||
ip: 127.0.0.1 | ||
CONFIG: | ||
type: foss |
11 changes: 11 additions & 0 deletions
11
glance/spec/acceptance/nodesets/ubuntu-server-1404-x64.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
HOSTS: | ||
ubuntu-server-1404-x64: | ||
roles: | ||
- master | ||
platform: ubuntu-14.04-amd64 | ||
box : trusty-server-cloudimg-amd64-vagrant-disk1 | ||
box_url : puppetlabs/ubuntu-14.04-64-nocm | ||
hypervisor : vagrant | ||
CONFIG: | ||
log_level : debug | ||
type: git |
Oops, something went wrong.