forked from HEP-Puppet/htcondor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparams.pp
181 lines (157 loc) · 8.88 KB
/
params.pp
1
2
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# htcondor::params
class htcondor::params {
$schedulers = hiera_array('schedulers', [])
$managers = hiera_array('managers', [])
$workers = hiera_array('workers', [])
$is_manager = hiera('is_manager', false)
$is_scheduler = hiera('is_scheduler', false)
$is_worker = hiera('is_worker', false)
$cluster_has_multiple_domains = hiera('cluster_has_multiple_domains', false)
$collector_name = hiera('collector_name', 'Personal Condor at $(FULL_HOSTNAME)'
)
$repo_priority = hiera('repo_priority', '99')
$condor_version = hiera('condor_version', 'present')
$custom_machine_attributes = hiera_hash('custom_machine_attribute', {})
$custom_job_attributes = hiera_hash('custom_job_attributes', {})
$use_debug_notify = hiera('use_debug_notify', true)
# this is one of the funding requirements for HTCondor
# for more information see https://research.cs.wisc.edu/htcondor/privacy.html
$enable_condor_reporting = hiera('enable_condor_reporting', true)
$enable_cgroup = hiera('enable_cgroup', false)
$enable_multicore = hiera('enable_multicore', false)
$enable_healthcheck = hiera('enable_healthcheck', false)
if $facts['os']['family'] == 'RedHat' and $facts['os']['release']['major'] == '7' {
$htcondor_cgroup_default = '/system.slice/condor.service'
}
else{
$htcondor_cgroup_default = 'htcondor'
}
$htcondor_cgroup = hiera('htcondor_cgroup', $htcondor_cgroup_default)
$high_priority_groups = hiera_hash('high_priority_groups', undef)
$default_accounting_groups = {
'CMS' => {
priority_factor => 10000.00,
dynamic_quota => 0.80,
}
,
'CMS.production' => {
priority_factor => 10000.00,
dynamic_quota => 0.95,
}
}
$accounting_groups = hiera_hash('accounting_groups',
$default_accounting_groups)
$priority_halflife = hiera('priority_halflife', 43200)
$default_prio_factor = hiera('default_prio_factor', 100000.00)
$group_accept_surplus = hiera('group_accept_surplus', true)
$group_autoregroup = hiera('group_autoregroup', true)
$health_check_script = hiera('health_check_script', "puppet:///modules/${module_name}/healhcheck_wn_condor"
)
$include_username_in_accounting = hiera('include_username_in_accounting',
false)
$install_repositories = hiera('install_repositories', true)
$dev_repositories = hiera('dev_repositories', false)
$machine_owner = hiera('machine_owner', 'physics')
$number_of_cpus = hiera('number_of_cpus', $::processors['count'
])
$partitionable_slots = hiera('partitionable_slots', true)
$memory_overcommit = hiera('memory_overcommit', 1.5)
$request_memory = hiera('request_memory', true)
$starter_job_environment = hiera_hash('starter_job_environment', {})
$pool_home = hiera('pool_home', '/pool')
$pool_create = hiera('pool_create', true)
$mount_under_scratch_dirs = hiera_array('mount_under_scratch_dirs', ['/tmp', '/var/tmp'])
$queues = hiera('grid_queues', undef)
$periodic_expr_interval = hiera('periodic_expr_interval', 60)
$max_periodic_expr_interval = hiera('max_periodic_expr_interval', 1200)
$remove_held_jobs_after = hiera('remove_held_jobs_after', 1200)
$leave_job_in_queue = hiera('leave_job_in_queue', false)
$max_walltime = hiera('max_walltime', '80 * 60 * 60')
$max_cputime = hiera('max_cputime', '80 * 60 * 60')
$memory_factor = hiera('memory_factor', '1000')
$ganglia_cluster_name = hiera('ganglia_cluster_name', undef)
$uid_domain = hiera('uid_domain', 'example.org')
$default_domain_name = hiera('default_domain_name', $uid_domain)
$filesystem_domain = hiera('filesystem_domain', $::fqdn)
$use_accounting_groups = hiera('use_accounting_groups', false)
$use_htcondor_account_mapping = hiera('use_htcondor_account_mapping', true)
# service security
$condor_user = hiera('condor_user', root)
$condor_group = hiera('condor_group', root)
$condor_uid = hiera('condor_uid', 0)
$condor_gid = hiera('condor_gid', 0)
# authentication
$use_anonymous_auth = hiera('use_anonymous_auth', false)
$use_fs_auth = hiera('use_fs_auth', true)
$use_password_auth = hiera('use_password_auth', true)
$use_kerberos_auth = hiera('use_kerberos_auth', false)
$use_claim_to_be_auth = hiera('use_claim_to_be_auth', false)
$use_ssl_auth = hiera('use_ssl_auth', false)
$use_cert_map_file = hiera('use_cert_map_file', false)
$use_krb_map_file = hiera('use_krb_map_file', false)
$use_pid_namespaces = hiera('use_pid_namespaces', false)
$cert_map_file = hiera('cert_map_file', '/etc/condor/certificate_mapfile'
)
$cert_map_file_source = hiera('cert_map_file_source', "puppet:///modules/${module_name}/certificate_mapfile"
)
$krb_map_file = hiera('krb_map_file', '/etc/condor/kerberos_mapfile'
)
$krb_map_file_source = hiera('krb_map_file_source', "puppet:///modules/${module_name}/kerberos_mapfile"
)
$machine_list_prefix = hiera('machine_list_prefix', 'condor_pool@$(UID_DOMAIN)/'
)
$pool_password_file = hiera('pool_password_file', "puppet:///modules/${module_name}/pool_password"
)
$ssl_server_keyfile = hiera('ssl_server_keyfile', '')
$ssl_client_keyfile = hiera('ssl_client_keyfile', '')
$ssl_server_certfile = hiera('ssl_server_certfile', '')
$ssl_client_certfile = hiera('ssl_client_certfile', '')
$ssl_server_cafile = hiera('ssl_server_cafile', '')
$ssl_client_cafile = hiera('ssl_client_cafile', '')
$ssl_server_cadir = hiera('ssl_server_cadir', '')
$ssl_client_cadir = hiera('ssl_client_cadir', '')
# for private networks
$uses_connection_broker = hiera('uses_connection_broker', false)
$private_network_name = hiera('private_network_name', $::domain)
# SharedPort service configuration
$use_shared_port = hiera('use_shared_port', false)
$shared_port = hiera('shared_port', 9618)
$shared_port_collector_name = hiera('shared_port_collector_name', 'collector')
# Singularity configuration
$use_singularity = hiera('use_singularity', false)
$singularity_path = hiera('singularity_path', '/usr/bin/singularity')
$force_singularity_jobs = hiera('force_singularity_jobs', false)
$singularity_image_expr = hiera('singularity_image', 'SingularityImage')
$singularity_bind_paths = hiera_array('singularity_bind_paths', 'SingularityBind')
$singularity_target_dir = hiera('singularity_target_dir', '')
# notification settings
$admin_email = hiera('admin_email', 'localhost')
$email_domain = hiera('email_domain', 'localhost')
# template paths
$template_config_local = hiera('template_config_local',
"${module_name}/condor_config.local.erb")
$template_security = hiera('template_security', "${module_name}/10_security.config.erb"
)
$template_resourcelimits = hiera('template_resourcelimits',
"${module_name}/12_resourcelimits.config.erb")
$template_queues = hiera('template_queues', "${module_name}/13_queues.config.erb"
)
$template_schedd = hiera('template_schedd', "${module_name}/21_schedd.config.erb"
)
$template_fairshares = hiera('template_fairshares', "${module_name}/11_fairshares.config.erb"
)
$template_manager = hiera('template_collector', "${module_name}/22_manager.config.erb"
)
$template_ganglia = hiera('template_ganglia', "${module_name}/23_ganglia.config.erb"
)
$template_workernode = hiera('template_workernode', "${module_name}/20_workernode.config.erb"
)
$template_defrag = hiera('template_defrag', "${module_name}/33_defrag.config.erb"
)
$template_highavailability = hiera('template_defrag', "${module_name}/30_highavailability.config.erb"
)
$template_sharedport = hiera('template_sharedport', "${module_name}/42_shared_port.config.erb"
)
$template_singularity = hiera('template_singularity', "${module_name}/50_singularity.config.erb"
)
}