Convert all class usage to relative names
Change-Id: Ic8aff2f30d3473d22c8eac49a431ed044e9ce584
This commit is contained in:
parent
ad48860b75
commit
0b5a01dd87
examples
manifests
spec
@ -1,6 +1,6 @@
|
|||||||
Exec { logoutput => 'on_failure' }
|
Exec { logoutput => 'on_failure' }
|
||||||
|
|
||||||
include ::openstacklib::defaults
|
include openstacklib::defaults
|
||||||
|
|
||||||
if $::osfamily == 'RedHat' {
|
if $::osfamily == 'RedHat' {
|
||||||
# Virtual package name, present in @base.
|
# Virtual package name, present in @base.
|
||||||
|
@ -64,8 +64,8 @@ define openstacklib::db::mysql (
|
|||||||
$tls_options = ['NONE'],
|
$tls_options = ['NONE'],
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include ::mysql::server
|
include mysql::server
|
||||||
include ::mysql::client
|
include mysql::client
|
||||||
|
|
||||||
mysql_database { $dbname:
|
mysql_database { $dbname:
|
||||||
ensure => present,
|
ensure => present,
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#
|
#
|
||||||
class openstacklib::params {
|
class openstacklib::params {
|
||||||
|
|
||||||
include ::openstacklib::defaults
|
include openstacklib::defaults
|
||||||
$pyvers = $::openstacklib::defaults::pyvers
|
$pyvers = $::openstacklib::defaults::pyvers
|
||||||
|
|
||||||
$openstackclient_package_name = "python${pyvers}-openstackclient"
|
$openstackclient_package_name = "python${pyvers}-openstackclient"
|
||||||
|
@ -260,10 +260,10 @@ define openstacklib::wsgi::apache (
|
|||||||
$error_log_syslog = undef,
|
$error_log_syslog = undef,
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include ::apache
|
include apache
|
||||||
include ::apache::mod::wsgi
|
include apache::mod::wsgi
|
||||||
if $ssl {
|
if $ssl {
|
||||||
include ::apache::mod::ssl
|
include apache::mod::ssl
|
||||||
}
|
}
|
||||||
|
|
||||||
# Ensure there's no trailing '/' except if this is also the only character
|
# Ensure there's no trailing '/' except if this is also the only character
|
||||||
|
@ -8,7 +8,7 @@ describe 'openstacklib mysql' do
|
|||||||
pp= <<-EOS
|
pp= <<-EOS
|
||||||
Exec { logoutput => 'on_failure' }
|
Exec { logoutput => 'on_failure' }
|
||||||
|
|
||||||
class { '::mysql::server': }
|
class { 'mysql::server': }
|
||||||
|
|
||||||
::openstacklib::db::mysql { 'beaker':
|
::openstacklib::db::mysql { 'beaker':
|
||||||
password_hash => mysql::password('keystone'),
|
password_hash => mysql::password('keystone'),
|
||||||
|
@ -6,12 +6,12 @@ describe 'openstacklib class' do
|
|||||||
|
|
||||||
it 'should work with no errors' do
|
it 'should work with no errors' do
|
||||||
pp= <<-EOS
|
pp= <<-EOS
|
||||||
include ::openstack_integration
|
include openstack_integration
|
||||||
include ::openstack_integration::repos
|
include openstack_integration::repos
|
||||||
include ::openstack_integration::rabbitmq
|
include openstack_integration::rabbitmq
|
||||||
|
|
||||||
# openstacklib resources
|
# openstacklib resources
|
||||||
include ::openstacklib::openstackclient
|
include openstacklib::openstackclient
|
||||||
|
|
||||||
::openstacklib::messaging::rabbitmq { 'beaker':
|
::openstacklib::messaging::rabbitmq { 'beaker':
|
||||||
userid => 'beaker',
|
userid => 'beaker',
|
||||||
|
@ -10,7 +10,7 @@ describe 'openstacklib::db::postgresql' do
|
|||||||
end
|
end
|
||||||
|
|
||||||
let (:pre_condition) do
|
let (:pre_condition) do
|
||||||
"include ::postgresql::server"
|
"include postgresql::server"
|
||||||
end
|
end
|
||||||
|
|
||||||
shared_examples 'openstacklib::db::postgresql examples' do
|
shared_examples 'openstacklib::db::postgresql examples' do
|
||||||
@ -43,7 +43,7 @@ describe 'openstacklib::db::postgresql' do
|
|||||||
|
|
||||||
context 'when notifying other resources' do
|
context 'when notifying other resources' do
|
||||||
let :pre_condition do
|
let :pre_condition do
|
||||||
"include ::postgresql::server
|
"include postgresql::server
|
||||||
exec { 'nova-db-sync': }"
|
exec { 'nova-db-sync': }"
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ describe 'openstacklib::db::postgresql' do
|
|||||||
|
|
||||||
context 'when required for other openstack services' do
|
context 'when required for other openstack services' do
|
||||||
let :pre_condition do
|
let :pre_condition do
|
||||||
"include ::postgresql::server
|
"include postgresql::server
|
||||||
service {'keystone':}"
|
service {'keystone':}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user