Convert all class usage to relative names

Change-Id: Ic8aff2f30d3473d22c8eac49a431ed044e9ce584
This commit is contained in:
Tobias Urdin 2019-12-08 23:17:31 +01:00
parent ad48860b75
commit 0b5a01dd87
7 changed files with 15 additions and 15 deletions

View File

@ -1,6 +1,6 @@
Exec { logoutput => 'on_failure' }
include ::openstacklib::defaults
include openstacklib::defaults
if $::osfamily == 'RedHat' {
# Virtual package name, present in @base.

View File

@ -64,8 +64,8 @@ define openstacklib::db::mysql (
$tls_options = ['NONE'],
) {
include ::mysql::server
include ::mysql::client
include mysql::server
include mysql::client
mysql_database { $dbname:
ensure => present,

View File

@ -5,7 +5,7 @@
#
class openstacklib::params {
include ::openstacklib::defaults
include openstacklib::defaults
$pyvers = $::openstacklib::defaults::pyvers
$openstackclient_package_name = "python${pyvers}-openstackclient"

View File

@ -260,10 +260,10 @@ define openstacklib::wsgi::apache (
$error_log_syslog = undef,
) {
include ::apache
include ::apache::mod::wsgi
include apache
include apache::mod::wsgi
if $ssl {
include ::apache::mod::ssl
include apache::mod::ssl
}
# Ensure there's no trailing '/' except if this is also the only character

View File

@ -8,7 +8,7 @@ describe 'openstacklib mysql' do
pp= <<-EOS
Exec { logoutput => 'on_failure' }
class { '::mysql::server': }
class { 'mysql::server': }
::openstacklib::db::mysql { 'beaker':
password_hash => mysql::password('keystone'),

View File

@ -6,12 +6,12 @@ describe 'openstacklib class' do
it 'should work with no errors' do
pp= <<-EOS
include ::openstack_integration
include ::openstack_integration::repos
include ::openstack_integration::rabbitmq
include openstack_integration
include openstack_integration::repos
include openstack_integration::rabbitmq
# openstacklib resources
include ::openstacklib::openstackclient
include openstacklib::openstackclient
::openstacklib::messaging::rabbitmq { 'beaker':
userid => 'beaker',

View File

@ -10,7 +10,7 @@ describe 'openstacklib::db::postgresql' do
end
let (:pre_condition) do
"include ::postgresql::server"
"include postgresql::server"
end
shared_examples 'openstacklib::db::postgresql examples' do
@ -43,7 +43,7 @@ describe 'openstacklib::db::postgresql' do
context 'when notifying other resources' do
let :pre_condition do
"include ::postgresql::server
"include postgresql::server
exec { 'nova-db-sync': }"
end
@ -56,7 +56,7 @@ describe 'openstacklib::db::postgresql' do
context 'when required for other openstack services' do
let :pre_condition do
"include ::postgresql::server
"include postgresql::server
service {'keystone':}"
end