linting the project
This commit is contained in:
@@ -6,7 +6,5 @@
|
||||
class cd_alloy::main::config (
|
||||
|
||||
) inherits cd_alloy::params {
|
||||
|
||||
include cd_alloy::main::service
|
||||
|
||||
}
|
||||
|
||||
@@ -6,18 +6,17 @@
|
||||
class cd_alloy::main::dirs (
|
||||
|
||||
) inherits cd_alloy::params {
|
||||
|
||||
require cd_alloy::main::install
|
||||
|
||||
# main config dir
|
||||
file { $ay_main_dir:
|
||||
ensure => directory,
|
||||
owner => 'root',
|
||||
group => 'alloy',
|
||||
mode => '0770',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => etc_t,
|
||||
seluser => system_u,
|
||||
ensure => directory,
|
||||
owner => 'root',
|
||||
group => 'alloy',
|
||||
mode => '0770',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => etc_t,
|
||||
seluser => system_u,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,23 +6,21 @@
|
||||
class cd_alloy::main::files (
|
||||
|
||||
) inherits cd_alloy::params {
|
||||
|
||||
require cd_alloy::main::dirs
|
||||
|
||||
# Ensure log_targets is always an array
|
||||
$log_targets_array = Array($cd_alloy::params::ay_log_targets, true)
|
||||
|
||||
file { $ay_main_file:
|
||||
ensure => file,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0644',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => etc_t,
|
||||
seluser => system_u,
|
||||
content => template('cd_alloy/config.alloy.erb'),
|
||||
notify => Service[$ay_service],
|
||||
ensure => file,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0644',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => etc_t,
|
||||
seluser => system_u,
|
||||
content => template('cd_alloy/config.alloy.erb'),
|
||||
notify => Service[$ay_service],
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
## cd_alloy::main::install.pp
|
||||
# Module name: cd_alloy
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class manages module logic for the cd_alloy module
|
||||
# @summary Class installs packages for the cd_alloy module
|
||||
###############################################################################
|
||||
class cd_alloy::main::install (
|
||||
|
||||
) inherits cd_alloy::params {
|
||||
|
||||
require cd_alloy::main::yumrepo
|
||||
|
||||
package { $reqpackages:
|
||||
|
||||
@@ -6,13 +6,12 @@
|
||||
class cd_alloy::main::service (
|
||||
|
||||
) inherits cd_alloy::params {
|
||||
|
||||
require cd_alloy::main::files
|
||||
|
||||
service { $ay_service:
|
||||
ensure => running,
|
||||
hasstatus => true,
|
||||
hasrestart => true,
|
||||
enable => true,
|
||||
ensure => running,
|
||||
hasstatus => true,
|
||||
hasrestart => true,
|
||||
enable => true,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user