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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
# File 'manifests/ce/config.pp', line 3
class osg::ce::config {
file { '/etc/condor-ce/config.d/99-local.conf':
ensure => 'file',
owner => 'root',
group => 'root',
mode => '0644',
content => $osg::ce::condor_ce_config_content,
source => $osg::ce::condor_ce_config_source,
notify => Service['condor-ce'],
}
file { $osg::ce::blahp_submit_attributes:
ensure => 'file',
owner => 'root',
group => 'root',
mode => '0755',
content => $osg::ce::blahp_local_submit_content,
source => $osg::ce::blahp_local_submit_source,
}
if $osg::ce::batch_system != 'condor' {
file_line { 'blah_disable_wn_proxy_renewal':
path => '/etc/blah.config',
line => 'blah_disable_wn_proxy_renewal="yes"',
match => '^blah_disable_wn_proxy_renewal=.*',
}
file_line { 'blah_delegate_renewed_proxies':
path => '/etc/blah.config',
line => 'blah_delegate_renewed_proxies="no"',
match => '^blah_delegate_renewed_proxies=.*',
}
file_line { 'blah_disable_limited_proxy':
path => '/etc/blah.config',
line => 'blah_disable_limited_proxy="yes"',
match => '^blah_disable_limited_proxy=.*',
}
augeas { 'gratia-disable-batch-probe':
lens => 'Xml.lns',
incl => $osg::ce::gratia_probe_config,
context => "/files${osg::ce::gratia_probe_config}/ProbeConfiguration/#attribute",
changes => [
'set EnableProbe 0',
],
}
augeas { 'gratia-probe':
lens => 'Xml.lns',
incl => '/etc/gratia/htcondor-ce/ProbeConfig',
context => '/files/etc/gratia/htcondor-ce/ProbeConfig/ProbeConfiguration/#attribute',
changes => [
"set ProbeName htcondor-ce:${osg::site_info_host_name}",
"set SiteName ${osg::site_info_resource}",
"set DataFolder ${osg::ce::per_job_history_dir}/",
'set EnableProbe 1',
],
}
Exec <| title == 'osg-configure' |> {
before => [
Augeas['gratia-disable-batch-probe'],
]
}
augeas { 'htcondor-ce-PER_JOB_HISTORY_DIR':
lens => 'Simplevars.lns',
incl => '/etc/condor-ce/config.d/99_gratia.conf',
changes => [
"set PER_JOB_HISTORY_DIR ${osg::ce::per_job_history_dir}",
],
notify => Service['condor-ce'],
}
}
if $osg::ce::include_view {
augeas { 'htcondor-ce-view HTCONDORCE_VIEW_PORT':
lens => 'Simplevars.lns',
incl => '/etc/condor-ce/config.d/05-ce-view.conf',
changes => [
'set DAEMON_LIST "$(DAEMON_LIST), CEVIEW, GANGLIAD"',
"set HTCONDORCE_VIEW_PORT ${osg::ce::view_port}",
],
notify => Service['condor-ce'],
}
}
osg_local_site_settings { 'Gateway/htcondor_gateway_enabled':
value => true
}
osg_local_site_settings { 'Storage/grid_dir': value => $osg::ce::storage_grid_dir }
osg_local_site_settings { 'Storage/app_dir': value => $osg::ce::storage_app_dir }
osg_local_site_settings { 'Storage/data_dir': value => $osg::ce::storage_data_dir }
osg_local_site_settings { 'Storage/worker_node_temp': value => $osg::ce::storage_worker_node_temp }
osg_local_site_settings { 'Storage/site_read': value => $osg::ce::storage_site_read }
osg_local_site_settings { 'Storage/site_write': value => $osg::ce::storage_site_write }
osg_local_site_settings { 'Network/port_range': value => "${osg::globus_tcp_source_range_min},${osg::globus_tcp_source_range_max}"}
osg_local_site_settings { "${osg::ce::batch_ini_section}/enabled": value => true }
osg_local_site_settings { "${osg::ce::batch_ini_section}/${osg::ce::location_name}": value => $osg::ce::batch_system_prefix }
create_resources(osg_local_site_settings, $osg::ce::batch_settings)
create_resources(osg_local_site_settings, $osg::ce::osg_local_site_settings)
create_resources(osg_gip_config, $osg::ce::osg_gip_configs)
if $osg::enable_exported_resources {
Osg_local_site_settings <<| tag == $osg::exported_resource_collect_tag |>> {
notify => Exec['osg-configure'],
require => Class['osg::ce::install'],
}
}
}
|