53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
# File 'manifests/init.pp', line 53
class perfsonar (
Boolean $manage_repo = true,
Boolean $manage_epel = true,
Variant[Stdlib::HTTPUrl,Stdlib::HTTPSUrl] $release_url = "http://software.internet2.edu/rpms/el${facts['os']['release']['major']}/x86_64/latest/packages/perfsonar-repo-0.11-1.noarch.rpm",
Enum['perfsonar-tools','perfsonar-testpoint','perfsonar-core','perfsonar-centralmanagement','perfsonar-toolkit']
$bundle = 'perfsonar-toolkit',
Array $optional_packages = [],
Boolean $manage_firewall = true,
Boolean $with_ipv6 = false,
String $web_admin_username = 'admin',
Optional[String] $web_admin_password = undef,
Boolean $remove_root_prompt = false,
# Apache
String $apache_group = 'apache',
Boolean $manage_apache = false,
Stdlib::Absolutepath $ssl_cert = '/etc/pki/tls/certs/localhost.crt',
Stdlib::Absolutepath $ssl_key = '/etc/pki/tls/private/localhost.key',
Optional[Stdlib::Absolutepath] $ssl_chain_file = undef,
Stdlib::Absolutepath $apache_ssl_conf = '/etc/httpd/conf.d/ssl.conf',
String $apache_service = 'httpd',
# Interfaces
Optional[String] $primary_interface = $facts.dig('networking','primary'),
# pscheduler-agent
Boolean $manage_pscheduler_agent = false,
Optional[Hash] $pscheduler_agent_config = undef,
Boolean $manage_lsregistrationdaemon = false,
Stdlib::Ensure::Service $lsregistrationdaemon_ensure = 'running',
Boolean $lsregistrationdaemon_enable = true,
) {
if $manage_repo {
contain 'perfsonar::repo'
Class['perfsonar::repo'] -> Class['perfsonar::install']
}
if $manage_firewall {
contain 'perfsonar::firewall'
}
if $manage_pscheduler_agent {
contain 'perfsonar::pscheduler::agent'
Class['perfsonar::install']
-> Class['perfsonar::pscheduler::agent']
}
if $manage_lsregistrationdaemon {
contain 'perfsonar::lsregistrationdaemon'
Class['perfsonar::install']
-> Class['perfsonar::lsregistrationdaemon']
}
contain 'perfsonar::install'
contain 'perfsonar::config'
Class['perfsonar::install']
-> Class['perfsonar::config']
}
|