3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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
|
# File 'manifests/apache.pp', line 3
class openondemand::apache {
assert_private()
if $openondemand::declare_apache {
if $openondemand::scl_apache {
class { '::apache::version':
scl_httpd_version => '2.4',
scl_php_version => '7.0',
}
}
class { '::apache':
default_vhost => false,
}
} else {
include ::apache
}
if $openondemand::scl_apache {
$package_prefix = 'httpd24-'
} else {
$package_prefix = ''
}
include ::apache::mod::ssl
::apache::mod { 'session':
package => "${package_prefix}mod_session",
}
::apache::mod { 'session_cookie':
package => "${package_prefix}mod_session",
}
::apache::mod { 'session_dbd':
package => "${package_prefix}mod_session",
}
::apache::mod { 'auth_form':
package => "${package_prefix}mod_session",
}
# mod_request needed by mod_auth_form - should probably be a default module.
::apache::mod { 'request': }
# xml2enc and proxy_html work around apache::mod::proxy_html lack of package name parameter
::apache::mod { 'xml2enc':}
::apache::mod { 'proxy_html':
package => "${package_prefix}mod_proxy_html",
}
include ::apache::mod::proxy
include ::apache::mod::proxy_http
include ::apache::mod::proxy_connect
include ::apache::mod::proxy_wstunnel
if $openondemand::auth_type == 'CAS' {
include ::apache::mod::auth_cas
}
::apache::mod { 'lua': }
include ::apache::mod::headers
if $openondemand::auth_type in ['dex','openid-connect'] {
::apache::mod { 'auth_openidc':
package => "${package_prefix}mod_auth_openidc",
package_ensure => $openondemand::mod_auth_openidc_ensure,
}
}
if $openondemand::scl_apache {
shellvar { 'HTTPD24_HTTPD_SCLS_ENABLED':
ensure => 'present',
target => '/opt/rh/httpd24/service-environment',
value => $openondemand::apache_scls,
require => Package['httpd'],
notify => Class['Apache::Service'],
}
}
systemd::dropin_file { 'ood.conf':
unit => "${::apache::service_name}.service",
content => join([
'[Service]',
'KillSignal=SIGTERM',
'KillMode=process',
'PrivateTmp=false',
'',
], "\n"),
notify => Class['::apache::service'],
}
systemd::dropin_file { 'ood-portal.conf':
ensure => 'absent',
unit => "${::apache::service_name}.service",
notify => Class['::apache::service'],
}
}
|