Convert all class usage to relative names

Change-Id: I9009b69e64a5ec8094fc407df5396062a86f2c78
This commit is contained in:
Tobias Urdin 2019-12-08 23:19:32 +01:00
parent 2de53b9202
commit c9c44c4191
15 changed files with 25 additions and 25 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 ::placement
include placement

View File

@ -45,7 +45,7 @@ class placement::api (
$sync_db = false,
) inherits placement::params {
include ::placement::deps
include placement::deps
package { 'placement-api':
ensure => $package_ensure,
@ -69,7 +69,7 @@ class placement::api (
tag => ['placement-service', 'placement-db-sync-service'],
}
} elsif $api_service_name == 'httpd' {
include ::apache::params
include apache::params
service { 'placement-api':
ensure => 'stopped',
name => $::placement::params::service_name,
@ -81,6 +81,6 @@ class placement::api (
}
}
if $sync_db {
include ::placement::db::sync
include placement::db::sync
}
}

View File

@ -81,7 +81,7 @@ class placement::config(
$username = undef,
) {
include ::placement::deps
include placement::deps
# TODO(tobias-urdin): Remove these deprecated ones in U release.
$default_parameters = {

View File

@ -63,8 +63,8 @@ class placement::db (
$database_pool_timeout = $::os_service_default,
) {
include ::placement::deps
include ::placement::config
include placement::deps
include placement::config
validate_legacy(Oslo::Dbconn, 'validate_re', $database_connection,
['^(sqlite|mysql(\+pymysql)?|postgresql):\/\/(\S+:\S+@\S+\/\S+)?'])

View File

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

View File

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

View File

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

View File

@ -38,8 +38,8 @@ define placement::generic_service(
$ensure_package = 'present'
) {
include ::placement::deps
include ::placement::params
include placement::deps
include placement::params
$placement_title = "placement-${name}"

View File

@ -23,10 +23,10 @@ class placement(
$randomize_allocation_candidates = $::os_service_default,
) inherits placement::params {
include ::placement::deps
include placement::deps
if $sync_db {
include ::placement::db::sync
include placement::db::sync
}
package { 'python-placement':

View File

@ -83,7 +83,7 @@ class placement::keystone::auth (
$internal_url = 'http://127.0.0.1/placement',
) {
include ::placement::deps
include placement::deps
if $configure_user_role {
Keystone_user_role["${auth_name}@${tenant}"] ~> Service <| name == 'placement-server' |>

View File

@ -220,7 +220,7 @@ class placement::keystone::authtoken(
$interface = $::os_service_default,
) {
include ::placement::deps
include placement::deps
if is_service_default($password) {
fail('Please set password for Placement service user')

View File

@ -123,7 +123,7 @@ class placement::logging(
$log_date_format = $::os_service_default,
) {
include ::placement::deps
include placement::deps
oslo::log { 'placement_config':
use_stderr => $use_stderr,

View File

@ -2,8 +2,8 @@
#
class placement::params {
include ::placement::deps
include ::openstacklib::defaults
include placement::deps
include openstacklib::defaults
$pyvers = $::openstacklib::defaults::pyvers
$pyvers_real = $pyvers ? {

View File

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

View File

@ -113,11 +113,11 @@ class placement::wsgi::apache (
$error_log_file = undef,
) {
include ::placement::params
include ::apache
include ::apache::mod::wsgi
include placement::params
include apache
include apache::mod::wsgi
if $ssl {
include ::apache::mod::ssl
include apache::mod::ssl
}
placement::generic_service { 'api':