@@ -15,6 +15,7 @@ openondemand_auth: basic_pam
15
15
openondemand_jupyter_partition : " {{ openhpc_partitions[0]['name'] }}"
16
16
openondemand_desktop_partition : " {{ openhpc_partitions[0]['name'] }}"
17
17
openondemand_rstudio_partition : " {{ openhpc_partitions[0]['name'] }}"
18
+ openondemand_matlab_partition : " {{ openhpc_partitions[0]['name'] }}"
18
19
19
20
# Regex defining hosts which openondemand can proxy; the default regex is compute nodes (for apps) and grafana host,
20
21
# e.g. if the group `compute` has hosts `compute-{0,1,2,..}` this will be '(compute-\d+)|(control)'.
@@ -90,12 +91,17 @@ openondemand_install_app_rstudio: # mapping, values as for ansible.builtin.git:
90
91
rstudio :
91
92
repo : https://github.com/stackhpc/ood-stackhpc-rstudio.git
92
93
version : main
94
+ openondemand_install_app_matlab :
95
+ matlab :
96
+ repo : https://github.com/stackhpc/ood-stackhpc-matlab.git
97
+ version : main
93
98
# osc:ood role var (NB only active when not in configure):
94
99
ood_install_apps : >-
95
100
{{
96
101
{}
97
102
| combine(openondemand_install_app_jupyter if openondemand_jupyter_partition else {})
98
103
| combine(openondemand_install_app_rstudio if openondemand_rstudio_partition else {})
104
+ | combine(openondemand_install_app_matlab if openondemand_matlab_partition else {})
99
105
}}
100
106
101
107
# https://github.com/OSC/ondemand/tree/master/apps/bc_desktop
@@ -211,6 +217,39 @@ openondemand_apps_rstudio_default:
211
217
- <%= "--nodelist=# {node}" % >
212
218
openondemand_apps_rstudio : " {{ {'rstudio':openondemand_apps_rstudio_default} if openondemand_rstudio_partition | default(none) else {} }}"
213
219
220
+ openondemand_apps_matlab_default :
221
+ title : MATLAB
222
+ description : Request a desktop to run MATLAB.
223
+ cluster : slurm
224
+ form :
225
+ - desktop
226
+ - bc_queue
227
+ - bc_num_hours
228
+ - num_cores
229
+ - node
230
+ attributes :
231
+ desktop : xfce
232
+ # bc_account: # i.e. slurm account
233
+ # value: root
234
+ bc_queue :
235
+ value : " {{ openondemand_matlab_partition | default(none) }}"
236
+ num_cores :
237
+ label : Number of cores
238
+ value : 1
239
+ node :
240
+ label : Node name
241
+ help : Select a particular node or leave empty to let Slurm pick the next available
242
+ value : " "
243
+ submit : |
244
+ ---
245
+ script:
246
+ job_name: "ood-matlab"
247
+ native:
248
+ - <%= "--nodes=1" % >
249
+ - <%= "--ntasks=# {num_cores}" % >
250
+ - <%= "--nodelist=# {node}" % >
251
+ openondemand_apps_matlab : " {{ {'matlab':openondemand_apps_matlab_default} if openondemand_matlab_partition | default(none) else {} }}"
252
+
214
253
# osc.ood:ood_apps - see https://github.com/OSC/ood-ansible#ood_apps
215
254
openondemand_dashboard_support_url : ' '
216
255
openondemand_dashboard_docs_url : ' '
@@ -230,7 +269,7 @@ openondemand_apps:
230
269
ood_brand_bg_color : " #0e6ec8"
231
270
ood_dashboard_title : " {{ openhpc_cluster_name }}"
232
271
233
- ood_apps : " {{ openondemand_apps | combine(openondemand_apps_jupyter) | combine(openondemand_apps_desktop) | combine(openondemand_apps_rstudio) }}"
272
+ ood_apps : " {{ openondemand_apps | combine(openondemand_apps_jupyter) | combine(openondemand_apps_desktop) | combine(openondemand_apps_rstudio) | combine(openondemand_apps_matlab) }}"
234
273
235
274
# Prometheus config for Open Ondemand exporter
236
275
# https://osc.github.io/ood-documentation/latest/monitoring/prometheus.html#prometheus-configuration
0 commit comments