Acceptance: use common bits from puppet-openstack-integration
Change-Id: Ide6c1a51a10409dd78902320ea382202c8639e0d
This commit is contained in:
@@ -6,41 +6,11 @@ describe 'basic nova' do
|
|||||||
|
|
||||||
it 'should work with no errors' do
|
it 'should work with no errors' do
|
||||||
pp= <<-EOS
|
pp= <<-EOS
|
||||||
Exec { logoutput => 'on_failure' }
|
include ::openstack_integration
|
||||||
|
include ::openstack_integration::repos
|
||||||
# Common resources
|
include ::openstack_integration::rabbitmq
|
||||||
case $::osfamily {
|
include ::openstack_integration::mysql
|
||||||
'Debian': {
|
include ::openstack_integration::keystone
|
||||||
include ::apt
|
|
||||||
class { '::openstack_extras::repo::debian::ubuntu':
|
|
||||||
release => 'liberty',
|
|
||||||
package_require => true,
|
|
||||||
}
|
|
||||||
$package_provider = 'apt'
|
|
||||||
}
|
|
||||||
'RedHat': {
|
|
||||||
class { '::openstack_extras::repo::redhat::redhat':
|
|
||||||
release => 'liberty',
|
|
||||||
}
|
|
||||||
package { 'openstack-selinux': ensure => 'latest' }
|
|
||||||
$package_provider = 'yum'
|
|
||||||
}
|
|
||||||
default: {
|
|
||||||
fail("Unsupported osfamily (${::osfamily})")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class { '::mysql::server': }
|
|
||||||
|
|
||||||
class { '::rabbitmq':
|
|
||||||
delete_guest_user => true,
|
|
||||||
package_provider => $package_provider,
|
|
||||||
}
|
|
||||||
|
|
||||||
rabbitmq_vhost { '/':
|
|
||||||
provider => 'rabbitmqctl',
|
|
||||||
require => Class['rabbitmq'],
|
|
||||||
}
|
|
||||||
|
|
||||||
rabbitmq_user { 'nova':
|
rabbitmq_user { 'nova':
|
||||||
admin => true,
|
admin => true,
|
||||||
@@ -57,26 +27,6 @@ describe 'basic nova' do
|
|||||||
require => Class['rabbitmq'],
|
require => Class['rabbitmq'],
|
||||||
}
|
}
|
||||||
|
|
||||||
# Keystone resources, needed by Nova to run
|
|
||||||
class { '::keystone::db::mysql':
|
|
||||||
password => 'keystone',
|
|
||||||
}
|
|
||||||
class { '::keystone':
|
|
||||||
verbose => true,
|
|
||||||
debug => true,
|
|
||||||
database_connection => 'mysql://keystone:keystone@127.0.0.1/keystone',
|
|
||||||
admin_token => 'admin_token',
|
|
||||||
enabled => true,
|
|
||||||
}
|
|
||||||
class { '::keystone::roles::admin':
|
|
||||||
email => 'test@example.tld',
|
|
||||||
password => 'a_big_secret',
|
|
||||||
}
|
|
||||||
class { '::keystone::endpoint':
|
|
||||||
public_url => "https://${::fqdn}:5000/",
|
|
||||||
admin_url => "https://${::fqdn}:35357/",
|
|
||||||
}
|
|
||||||
|
|
||||||
# Nova resources
|
# Nova resources
|
||||||
class { '::nova':
|
class { '::nova':
|
||||||
database_connection => 'mysql://nova:a_big_secret@127.0.0.1/nova?charset=utf8',
|
database_connection => 'mysql://nova:a_big_secret@127.0.0.1/nova?charset=utf8',
|
||||||
|
Reference in New Issue
Block a user