Convert all class usage to relative names

Change-Id: Ieb9a1d2c1dcef360ca7a323fe4f6cdbb61feecfe
This commit is contained in:
Tobias Urdin 2019-12-08 23:26:05 +01:00
parent a33b5782dd
commit ce76a91f62
33 changed files with 58 additions and 58 deletions

View File

@ -9,4 +9,4 @@
# Learn more about module testing here:
# https://puppet.com/docs/puppet/latest/bgtm.html#testing-your-module
#
include ::zaqar
include zaqar

View File

@ -12,8 +12,8 @@ class zaqar::client (
$ensure = 'present'
) {
include ::zaqar::deps
include ::zaqar::params
include zaqar::deps
include zaqar::params
package { 'python-zaqarclient':
ensure => $ensure,

View File

@ -24,7 +24,7 @@ class zaqar::config (
$zaqar_config = {},
) {
include ::zaqar::deps
include zaqar::deps
validate_legacy(Hash, 'validate_hash', $zaqar_config)

View File

@ -43,7 +43,7 @@ class zaqar::db::mysql(
$allowed_hosts = undef
) {
include ::zaqar::deps
include zaqar::deps
validate_legacy(String, 'validate_string', $password)

View File

@ -32,7 +32,7 @@ class zaqar::db::postgresql(
$privileges = 'ALL',
) {
include ::zaqar::deps
include zaqar::deps
::openstacklib::db::postgresql { 'zaqar':
password_hash => postgresql_password($user, $password),

View File

@ -3,7 +3,7 @@
#
class zaqar::db::sync {
include ::zaqar::deps
include zaqar::deps
exec { 'zaqar-db-sync':
command => 'zaqar-sql-db-manage upgrade head',

View File

@ -88,15 +88,15 @@ class zaqar(
$purge_config = false,
) inherits zaqar::params {
include ::zaqar::deps
include zaqar::deps
resources { 'zaqar_config':
purge => $purge_config,
}
if $auth_strategy == 'keystone' {
include ::zaqar::keystone::authtoken
include ::zaqar::keystone::trust
include zaqar::keystone::authtoken
include zaqar::keystone::trust
}
package { 'zaqar-common':

View File

@ -86,7 +86,7 @@ class zaqar::keystone::auth(
$roles = undef,
) {
include ::zaqar::deps
include zaqar::deps
validate_legacy(String, 'validate_string', $password)

View File

@ -74,7 +74,7 @@ class zaqar::keystone::auth_websocket(
$service_description = 'Openstack messaging websocket Service',
) {
include ::zaqar::deps
include zaqar::deps
validate_legacy(String, 'validate_string', $password)

View File

@ -203,7 +203,7 @@ class zaqar::keystone::authtoken(
$service_token_roles_required = $::os_service_default,
) {
include ::zaqar::deps
include zaqar::deps
if is_service_default($password) {
fail('Please set password for Zaqar service user')

View File

@ -37,7 +37,7 @@ class zaqar::keystone::trust(
$auth_type = 'password',
) {
include ::zaqar::deps
include zaqar::deps
zaqar_config {
'trustee/username': value => $username;

View File

@ -123,7 +123,7 @@ class zaqar::logging(
$log_date_format = $::os_service_default,
) {
include ::zaqar::deps
include zaqar::deps
oslo::log { 'zaqar_config':
logging_context_format_string => $logging_context_format_string,

View File

@ -71,7 +71,7 @@ class zaqar::management::mongodb(
$reconnect_sleep = $::os_service_default,
) {
include ::zaqar::deps
include zaqar::deps
zaqar_config {
'drivers:management_store:mongodb/uri': value => $uri, secret => true;

View File

@ -7,7 +7,7 @@ class zaqar::management::sqlalchemy(
$uri,
) {
include ::zaqar::deps
include zaqar::deps
zaqar_config {
'drivers:management_store:sqlalchemy/uri': value => $uri, secret => true;

View File

@ -78,7 +78,7 @@ class zaqar::messaging::mongodb(
$partitions = $::os_service_default,
) {
include ::zaqar::deps
include zaqar::deps
zaqar_config {
'drivers:message_store:mongodb/uri': value => $uri, secret => true;

View File

@ -20,7 +20,7 @@ class zaqar::messaging::redis(
$reconnect_sleep = $::os_service_default,
) {
include ::zaqar::deps
include zaqar::deps
zaqar_config {
'drivers:message_store:redis/uri': value => $uri, secret => true;

View File

@ -11,7 +11,7 @@ class zaqar::messaging::swift(
$auth_url = $::os_service_default,
) {
include ::zaqar::deps
include zaqar::deps
zaqar_config {
'drivers:message_store:swift/uri': value => $uri, secret => true;

View File

@ -3,7 +3,7 @@
# Parameters for puppet-zaqar
#
class zaqar::params {
include ::openstacklib::defaults
include openstacklib::defaults
$pyvers = $::openstacklib::defaults::pyvers
$pyver3 = $::openstacklib::defaults::pyver3

View File

@ -28,8 +28,8 @@ class zaqar::policy (
$policy_path = '/etc/zaqar/policy.json',
) {
include ::zaqar::deps
include ::zaqar::params
include zaqar::deps
include zaqar::params
validate_legacy(Hash, 'validate_hash', $policies)

View File

@ -26,10 +26,10 @@ class zaqar::server(
$service_name = $::zaqar::params::service_name,
) inherits zaqar::params {
include ::zaqar
include ::zaqar::deps
include ::zaqar::params
include ::zaqar::policy
include zaqar
include zaqar::deps
include zaqar::params
include zaqar::policy
if $enabled {
if $manage_service {
@ -51,7 +51,7 @@ class zaqar::server(
}
} elsif $service_name == 'httpd' {
include ::apache::params
include apache::params
service { $::zaqar::params::service_name:
ensure => 'stopped',
name => $::zaqar::params::service_name,

View File

@ -16,9 +16,9 @@ define zaqar::server_instance(
$enabled = true,
) {
include ::zaqar
include ::zaqar::deps
include ::zaqar::params
include zaqar
include zaqar::deps
include zaqar::params
if $enabled {
$service_ensure = 'running'

View File

@ -28,7 +28,7 @@ class zaqar::transport::websocket(
$notification_port = $::os_service_default,
) {
include ::zaqar::deps
include zaqar::deps
zaqar_config {
'drivers:transport:websocket/bind': value => $bind;

View File

@ -13,7 +13,7 @@ class zaqar::transport::wsgi(
$port = $::os_service_default,
) {
include ::zaqar::deps
include zaqar::deps
zaqar_config {
'drivers:transport:wsgi/bind': value => $bind;

View File

@ -119,12 +119,12 @@ class zaqar::wsgi::apache (
$custom_wsgi_process_options = {},
) {
include ::zaqar::deps
include ::zaqar::params
include ::apache
include ::apache::mod::wsgi
include zaqar::deps
include zaqar::params
include apache
include apache::mod::wsgi
if $ssl {
include ::apache::mod::ssl
include apache::mod::ssl
}
::openstacklib::wsgi::apache { 'zaqar_wsgi':

View File

@ -6,13 +6,13 @@ describe 'swift zaqar' do
it 'zaqar with swift should work with no errors' do
pp= <<-EOS
include ::openstack_integration
include ::openstack_integration::repos
include ::openstack_integration::mysql
include ::openstack_integration::keystone
include ::openstack_integration::swift
include ::openstack_integration::memcached
include ::openstack_integration::zaqar
include openstack_integration
include openstack_integration::repos
include openstack_integration::mysql
include openstack_integration::keystone
include openstack_integration::swift
include openstack_integration::memcached
include openstack_integration::zaqar
EOS

View File

@ -2,7 +2,7 @@ require 'spec_helper'
describe 'zaqar' do
shared_examples 'zaqar' do
let :pre_condition do
"class { '::zaqar::keystone::authtoken':
"class { 'zaqar::keystone::authtoken':
password =>'password',
}"
end

View File

@ -4,10 +4,10 @@ describe 'zaqar::management::mongodb' do
shared_examples_for 'zaqar::management::mongodb' do
let :pre_condition do
"class { '::zaqar::keystone::authtoken':
"class { 'zaqar::keystone::authtoken':
password =>'foo',
}
class { '::zaqar':
class { 'zaqar':
}"
end

View File

@ -4,10 +4,10 @@ describe 'zaqar::management::sqlalchemy' do
shared_examples_for 'zaqar::management::sqlalchemy' do
let :pre_condition do
"class { '::zaqar::keystone::authtoken':
"class { 'zaqar::keystone::authtoken':
password =>'foo',
}
class { '::zaqar':
class { 'zaqar':
management_store =>'sqlalchemy',
}"

View File

@ -4,10 +4,10 @@ describe 'zaqar::messaging::mongodb' do
shared_examples_for 'zaqar::messaging::mongodb' do
let :pre_condition do
"class { '::zaqar::keystone::authtoken':
"class { 'zaqar::keystone::authtoken':
password =>'foo',
}
class { '::zaqar':
class { 'zaqar':
}"
end

View File

@ -4,10 +4,10 @@ describe 'zaqar::messaging::redis' do
shared_examples_for 'zaqar::messaging::redis' do
let :pre_condition do
"class { '::zaqar::keystone::authtoken':
"class { 'zaqar::keystone::authtoken':
password =>'foo',
}
class { '::zaqar':
class { 'zaqar':
message_store =>'redis',
}"

View File

@ -4,10 +4,10 @@ describe 'zaqar::messaging::swift' do
shared_examples_for 'zaqar::messaging::swift' do
let :pre_condition do
"class { '::zaqar::keystone::authtoken':
"class { 'zaqar::keystone::authtoken':
password =>'foo',
}
class { '::zaqar':
class { 'zaqar':
message_store =>'swift',
}"
end

View File

@ -4,7 +4,7 @@ describe 'zaqar::server' do
shared_examples_for 'zaqar::server' do
describe 'with a zaqar server enabled' do
let :pre_condition do
"class { '::zaqar::keystone::authtoken':
"class { 'zaqar::keystone::authtoken':
password =>'foo',
}
class {'::zaqar': }"

View File

@ -5,7 +5,7 @@ describe 'zaqar::server_instance' do
let(:title) { '1' }
let :pre_condition do
"class { '::zaqar::keystone::authtoken':
"class { 'zaqar::keystone::authtoken':
password =>'foo',
}
class {'::zaqar': }"