-
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 #5 from STFC-RAL-PPD/master
Various changes for compatibility with perfSONAR 3.5.1
- Loading branch information
Showing
26 changed files
with
116 additions
and
86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Facter.add(:perfsonar_systemenvironment) do | ||
confine :osfamily => 'RedHat' | ||
setcode do | ||
ps_se = Facter::Util::Resolution::exec('/bin/rpm -q --qf "%{NAME}\n" perl-perfSONAR_PS-Toolkit-SystemEnvironment | grep "^perl-perfSONAR_PS-Toolkit-SystemEnvironment$"') | ||
ps_se = Facter::Util::Resolution::exec('/bin/rpm -q --qf "%{NAME}\n" perfsonar-toolkit-systemenv | grep "^perfsonar-toolkit-systemenv$"') | ||
ps_se && !ps_se.empty? ? true : false | ||
end | ||
end |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Facter.add(:perfsonar_version) do | ||
confine :osfamily => 'RedHat' | ||
setcode do | ||
perfsonar = Facter::Util::Resolution::exec('/bin/rpm -q --qf "%{NAME} %{VERSION}\n" perl-perfSONAR_PS-Toolkit | grep "^perl-perfSONAR_PS-Toolkit "') | ||
perfsonar = Facter::Util::Resolution::exec('/bin/rpm -q --qf "%{NAME} %{VERSION}\n" perfsonar-toolkit | grep "^perfsonar-toolkit "') | ||
perfsonar.split(/ /)[1] if perfsonar | ||
end | ||
end |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
class perfsonar::bwctl { | ||
include 'perfsonar::bwctl::install' | ||
include 'perfsonar::bwctl::service' | ||
Class['perfsonar::bwctl::install'] -> Class['perfsonar::bwctl::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
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
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
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 |
---|---|---|
@@ -1,19 +1,28 @@ | ||
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, | ||
$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, | ||
$admininfo = {}, | ||
) inherits perfsonar::params { | ||
$tn = $snotify ? { | ||
false => undef, | ||
default => Service['ls_registration_daemon'], | ||
default => Service['perfsonar-lsregistrationdaemon'], | ||
} | ||
file { '/opt/perfsonar_ps/ls_registration_daemon/etc/ls_registration_daemon-logger.conf': | ||
file { '/etc/perfsonar/lsregistrationdaemon-logger.conf': | ||
ensure => 'file', | ||
owner => 'perfsonar', | ||
group => 'perfsonar', | ||
mode => '0644', | ||
content => template("${module_name}/log4perl-logger.conf.erb"), | ||
notify => $tn, | ||
} | ||
|
||
# TODO: use Augeas to write this config instead of a cat | ||
exec { 'append_info': | ||
command => '/bin/cat /etc/perfsonar/toolkit/administrative_info >> /etc/perfsonar/lsregistrationdaemon.conf', | ||
unless => '/bin/grep ^site_project /etc/perfsonar/lsregistrationdaemon.conf > /dev/null', | ||
require => File['/etc/perfsonar/toolkit/administrative_info'], | ||
notify => Service['perfsonar-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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
class perfsonar::mesh_config { | ||
include 'perfsonar::mesh_config::install' | ||
include 'perfsonar::mesh_config::config' | ||
Class['perfsonar::mesh_config::install'] -> Class['perfsonar::mesh_config::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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
class perfsonar::owamp { | ||
include 'perfsonar::owamp::install' | ||
include 'perfsonar::owamp::service' | ||
Class['perfsonar::owamp::install'] -> Class['perfsonar::owamp::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
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
Oops, something went wrong.