-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from rwf14f/master
Improvements and bug fixes
- Loading branch information
Showing
25 changed files
with
278 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,6 @@ | |
enable => $enable, | ||
hasstatus => false, | ||
hasrestart => true, | ||
require => Package['bwctl-server'], | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# warning: the perfsonar tools' own logrotation should be disabled before using this class | ||
class perfsonar::logrotate inherits perfsonar::params { | ||
concat { $::perfsonar::params::logrotate_cf: | ||
owner => 'root', | ||
group => 'root', | ||
mode => '0644', | ||
} | ||
concat::fragment { 'ps_logrotate_header': | ||
target => $::perfsonar::params::logrotate_cf, | ||
content => "# Managed by Puppet\n", | ||
order => $::perfsonar::params::lr_header_order, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class perfsonar::logrotate_all { | ||
include 'perfsonar::logrotate' | ||
include 'perfsonar::regular_testing::logrotate' | ||
include 'perfsonar::ls_registration_daemon::logrotate' | ||
include 'perfsonar::ls_cache_daemon::logrotate' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class perfsonar::ls_cache_daemon { | ||
include 'perfsonar::ls_cache_daemon::install' | ||
include 'perfsonar::ls_cache_daemon::config' | ||
include 'perfsonar::ls_cache_daemon::service' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
class perfsonar::ls_cache_daemon::config( | ||
$snotify = $::perfsonar::params::ls_cache_daemon_snotify, | ||
$loglvl = $::perfsonar::params::ls_cache_daemon_loglvl, | ||
$logger = $::perfsonar::params::ls_cache_daemon_logger, | ||
$logfile = $::perfsonar::params::ls_cache_daemon_logfile, | ||
) inherits perfsonar::params { | ||
$tn = $snotify ? { | ||
false => undef, | ||
default => Service['ls_cache_daemon'], | ||
} | ||
file { '/opt/perfsonar_ps/ls_cache_daemon/etc/ls_cache_daemon-logger.conf': | ||
ensure => 'file', | ||
owner => 'perfsonar', | ||
group => 'perfsonar', | ||
mode => '0644', | ||
content => template("${module_name}/log4perl-logger.conf.erb"), | ||
notify => $tn, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class perfsonar::ls_cache_daemon::install( | ||
$ensure = $::perfsonar::params::ls_cache_daemon_install_ensure, | ||
) inherits perfsonar::params { | ||
package { $::perfsonar::params::ls_cache_daemon_packages: | ||
ensure => $ensure, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class perfsonar::ls_cache_daemon::logrotate( | ||
$logfiles = $::perfsonar::ls_cache_daemon::config::logfile, | ||
$options = $::perfsonar::params::ls_cache_daemon_lr_options, | ||
$order = $::perfsonar::params::ls_cache_daemon_lr_order | ||
) inherits perfsonar::params { | ||
if $::perfsonar::ls_cache_daemon::config::logger == 'Log::Dispatch::FileRotate' { | ||
warning("configuring logrotate, but ls_cache_daemon's own logger is configured to do log rotation as well, I hope you know what you're doing") | ||
} | ||
concat::fragment { 'ps_logrotate_ls_cache_daemon': | ||
target => $::perfsonar::params::logrotate_cf, | ||
content => template("${module_name}/logrotate_fragment.erb"), | ||
order => $order, | ||
require => Class['perfsonar::ls_cache_daemon::config'] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class perfsonar::ls_cache_daemon::service( | ||
$ensure = $::perfsonar::params::ls_cache_daemon_ensure, | ||
$enable = $::perfsonar::params::ls_cache_daemon_enable, | ||
) inherits perfsonar::params { | ||
# start stop restart | ||
service { 'ls_cache_daemon': | ||
ensure => $ensure, | ||
enable => $enable, | ||
hasstatus => false, | ||
hasrestart => true, | ||
require => Package['perl-perfSONAR_PS-LSCacheDaemon'], | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class perfsonar::ls_registration_daemon { | ||
include 'perfsonar::ls_registration_daemon::install' | ||
include 'perfsonar::ls_registration_daemon::config' | ||
include 'perfsonar::ls_registration_daemon::service' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
class perfsonar::ls_registration_daemon::config( | ||
$snotify = $::perfsonar::params::ls_registration_daemon_snotify, | ||
$loglvl = $::perfsonar::params::ls_registration_daemon_loglvl, | ||
$logger = $::perfsonar::params::ls_registration_daemon_logger, | ||
$logfile = $::perfsonar::params::ls_registration_daemon_logfile, | ||
) inherits perfsonar::params { | ||
$tn = $snotify ? { | ||
false => undef, | ||
default => Service['ls_registration_daemon'], | ||
} | ||
file { '/opt/perfsonar_ps/ls_registration_daemon/etc/ls_registration_daemon-logger.conf': | ||
ensure => 'file', | ||
owner => 'perfsonar', | ||
group => 'perfsonar', | ||
mode => '0644', | ||
content => template("${module_name}/log4perl-logger.conf.erb"), | ||
notify => $tn, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class perfsonar::ls_registration_daemon::install( | ||
$ensure = $::perfsonar::params::ls_registration_daemon_install_ensure, | ||
) inherits perfsonar::params { | ||
package { $::perfsonar::params::ls_registration_daemon_packages: | ||
ensure => $ensure, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class perfsonar::ls_registration_daemon::logrotate( | ||
$logfiles = $::perfsonar::ls_registration_daemon::config::logfile, | ||
$options = $::perfsonar::params::ls_registration_daemon_lr_options, | ||
$order = $::perfsonar::params::ls_registration_daemon_lr_order, | ||
) inherits perfsonar::params { | ||
if $::perfsonar::ls_registration_daemon::config::logger == 'Log::Dispatch::FileRotate' { | ||
warning("configuring logrotate, but ls_registration_daemon's own logger is configured to do log rotation as well, I hope you know what you're doing") | ||
} | ||
concat::fragment { 'ps_logrotate_ls_registration_daemon': | ||
target => $::perfsonar::params::logrotate_cf, | ||
content => template("${module_name}/logrotate_fragment.erb"), | ||
order => $order, | ||
require => Class['perfsonar::ls_registration_daemon::config'] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class perfsonar::ls_registration_daemon::service( | ||
$ensure = $::perfsonar::params::ls_registration_daemon_ensure, | ||
$enable = $::perfsonar::params::ls_registration_daemon_enable, | ||
) inherits perfsonar::params { | ||
# start stop restart | ||
service { 'ls_registration_daemon': | ||
ensure => $ensure, | ||
enable => $enable, | ||
hasstatus => false, | ||
hasrestart => true, | ||
require => Package['perl-perfSONAR_PS-LSRegistrationDaemon'], | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,6 @@ | |
enable => $enable, | ||
hasstatus => false, | ||
hasrestart => true, | ||
require => Package['owamp-server'], | ||
} | ||
} |
Oops, something went wrong.