Remove ::'s that linter now complians about
Avoid issues from linter: WARNING: class included by absolute name (::$class) on line ... Change-Id: Ia25bea4693acd44d3541500698e7fa978613f459
This commit is contained in:
parent
e263ff92e3
commit
e66b8a82cd
|
@ -20,7 +20,7 @@ node 'default' {
|
|||
|
||||
case $db_provider {
|
||||
'mysql': {
|
||||
class { '::mysql::server':
|
||||
class { 'mysql::server':
|
||||
}
|
||||
|
||||
mysql::db { 'askbotdb':
|
||||
|
@ -32,7 +32,7 @@ node 'default' {
|
|||
}
|
||||
}
|
||||
'pgsql': {
|
||||
class { '::postgresql::server': }
|
||||
class { 'postgresql::server': }
|
||||
|
||||
postgresql::server::db { $db_name:
|
||||
user => $db_user,
|
||||
|
@ -46,7 +46,7 @@ node 'default' {
|
|||
}
|
||||
|
||||
# redis (custom module written by tipit)
|
||||
class { '::redis':
|
||||
class { 'redis':
|
||||
redis_port => $redis_port,
|
||||
redis_max_memory => $redis_max_memory,
|
||||
redis_bind => $redis_bind,
|
||||
|
@ -56,7 +56,7 @@ node 'default' {
|
|||
}
|
||||
|
||||
# solr search engine
|
||||
class { '::solr':
|
||||
class { 'solr':
|
||||
mirror => 'http://apache.mesi.com.ar/lucene/solr',
|
||||
version => $solr_version,
|
||||
cores => [ 'core-default', 'core-en', 'core-zh' ],
|
||||
|
@ -93,7 +93,7 @@ node 'default' {
|
|||
require => Exec['copy-solr'],
|
||||
}
|
||||
|
||||
class { '::askbot':
|
||||
class { 'askbot':
|
||||
db_provider => $db_provider,
|
||||
db_name => $db_name,
|
||||
db_user => $db_user,
|
||||
|
|
|
@ -52,7 +52,7 @@ class askbot::config (
|
|||
}
|
||||
|
||||
if $site_ssl_enabled {
|
||||
class { '::askbot::site::ssl':
|
||||
class { 'askbot::site::ssl':
|
||||
site_name => $site_name,
|
||||
site_ssl_cert_file_contents => $site_ssl_cert_file_contents,
|
||||
site_ssl_key_file_contents => $site_ssl_key_file_contents,
|
||||
|
@ -63,16 +63,16 @@ class askbot::config (
|
|||
}
|
||||
}
|
||||
|
||||
class { '::askbot::site::http':
|
||||
class { 'askbot::site::http':
|
||||
site_root => $site_root,
|
||||
site_name => $site_name,
|
||||
}
|
||||
|
||||
class { '::askbot::site::celeryd':
|
||||
class { 'askbot::site::celeryd':
|
||||
site_root => $site_root,
|
||||
}
|
||||
|
||||
class { '::askbot::site::config':
|
||||
class { 'askbot::site::config':
|
||||
site_root => $site_root,
|
||||
dist_root => $dist_root,
|
||||
db_provider => $db_provider,
|
||||
|
@ -95,16 +95,16 @@ class askbot::config (
|
|||
template_settings => $template_settings,
|
||||
}
|
||||
|
||||
class { '::askbot::site::static':
|
||||
class { 'askbot::site::static':
|
||||
site_root => $site_root,
|
||||
}
|
||||
|
||||
class { '::askbot::site::log':
|
||||
class { 'askbot::site::log':
|
||||
site_root => $site_root,
|
||||
www_group => $www_group,
|
||||
}
|
||||
|
||||
class { '::askbot::site::cron':
|
||||
class { 'askbot::site::cron':
|
||||
site_root => $site_root,
|
||||
}
|
||||
|
||||
|
|
|
@ -93,7 +93,7 @@ class askbot (
|
|||
$www_user = 'www-data',
|
||||
) {
|
||||
|
||||
class { '::askbot::install':
|
||||
class { 'askbot::install':
|
||||
db_provider => $db_provider,
|
||||
dist_root => $dist_root,
|
||||
askbot_repo => $askbot_repo,
|
||||
|
@ -140,7 +140,7 @@ class askbot (
|
|||
}
|
||||
}
|
||||
|
||||
class { '::askbot::config':
|
||||
class { 'askbot::config':
|
||||
site_root => $site_root,
|
||||
dist_root => $dist_root,
|
||||
www_group => $www_group,
|
||||
|
|
|
@ -19,7 +19,7 @@ class askbot::install (
|
|||
ensure => present,
|
||||
}
|
||||
|
||||
class { '::python':
|
||||
class { 'python':
|
||||
pip => true,
|
||||
dev => true,
|
||||
virtualenv => true,
|
||||
|
@ -132,7 +132,7 @@ class askbot::install (
|
|||
require => Python::Virtualenv['/usr/askbot-env'],
|
||||
}
|
||||
|
||||
include ::httpd::mod::wsgi
|
||||
include httpd::mod::wsgi
|
||||
|
||||
exec { 'askbot-install':
|
||||
path => [ '/bin', '/sbin' , '/usr/bin', '/usr/sbin', '/usr/local/bin' ],
|
||||
|
|
|
@ -31,7 +31,7 @@ class askbot::site::log (
|
|||
require => File["${site_root}/log"],
|
||||
}
|
||||
|
||||
include ::logrotate
|
||||
include logrotate
|
||||
logrotate::file { 'askbot':
|
||||
log => "${site_root}/log/askbot.log",
|
||||
options => [
|
||||
|
|
|
@ -9,7 +9,7 @@ class askbot::site::ssl (
|
|||
$site_ssl_key_file = '/etc/ssl/private/ssl-cert-snakeoil.key',
|
||||
$site_ssl_key_file_contents = undef,
|
||||
) {
|
||||
include ::httpd::ssl
|
||||
include httpd::ssl
|
||||
|
||||
# site x509 certificate
|
||||
if $site_ssl_cert_file_contents != undef {
|
||||
|
|
Loading…
Reference in New Issue