Acceptance: use common bits from puppet-openstack-integration

Change-Id: I191d507b459631eb4c2d0fe1dc52e39d098d77d0
This commit is contained in:
Emilien Macchi
2015-11-19 11:42:21 +01:00
parent 82b0a90dd9
commit 6145bf6120

View File

@@ -6,29 +6,11 @@ describe 'basic swift' 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,
}
}
'RedHat': {
class { '::openstack_extras::repo::redhat::redhat':
release => 'liberty',
}
package { 'openstack-selinux': ensure => 'latest' }
}
default: {
fail("Unsupported osfamily (${::osfamily})")
}
}
class { '::mysql::server': }
package { 'curl': ensure => present } package { 'curl': ensure => present }
@@ -36,26 +18,6 @@ describe 'basic swift' do
listen_ip => '127.0.0.1', listen_ip => '127.0.0.1',
} }
# Keystone resources, needed by Swift 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/",
}
# Swift resources # Swift resources
class { '::swift': class { '::swift':
# not sure how I want to deal with this shared secret # not sure how I want to deal with this shared secret