@@ -16,6 +16,7 @@ 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
18
openondemand_matlab_partition : " {{ openhpc_partitions[0]['name'] }}"
19
+ openondemand_codeserver_partition : " {{ openhpc_partitions[0]['name'] }}"
19
20
20
21
# Regex defining hosts which openondemand can proxy; the default regex is compute nodes (for apps) and grafana host,
21
22
# e.g. if the group `compute` has hosts `compute-{0,1,2,..}` this will be '(compute-\d+)|(control)'.
@@ -95,13 +96,18 @@ openondemand_install_app_matlab:
95
96
matlab :
96
97
repo : https://github.com/stackhpc/ood-stackhpc-matlab.git
97
98
version : main
99
+ openondemand_install_app_codeserver :
100
+ codeserver :
101
+ repo : https://github.com/stackhpc/bc_osc_codeserver.git
102
+ version : main
98
103
# osc:ood role var (NB only active when not in configure):
99
104
ood_install_apps : >-
100
105
{{
101
106
{}
102
107
| combine(openondemand_install_app_jupyter if openondemand_jupyter_partition else {})
103
108
| combine(openondemand_install_app_rstudio if openondemand_rstudio_partition else {})
104
109
| combine(openondemand_install_app_matlab if openondemand_matlab_partition else {})
110
+ | combine(openondemand_install_app_codeserver if openondemand_codeserver_partition else {})
105
111
}}
106
112
107
113
# https://github.com/OSC/ondemand/tree/master/apps/bc_desktop
@@ -250,6 +256,36 @@ openondemand_apps_matlab_default:
250
256
- <%= "--nodelist=# {node}" % >
251
257
openondemand_apps_matlab : " {{ {'matlab':openondemand_apps_matlab_default} if openondemand_matlab_partition | default(none) else {} }}"
252
258
259
+ openondemand_apps_codeserver_default :
260
+ title : Codeserver
261
+ description : Request a Codeserver
262
+ cluster : slurm
263
+ form :
264
+ - bc_queue
265
+ - bc_num_hours
266
+ - num_cores
267
+ - node
268
+ attributes : # TODO
269
+ num_cores :
270
+ label : Number of cores FOO
271
+ value : 1
272
+ bc_queue :
273
+ value : " {{ openondemand_codeserver_partition | default(none) }}"
274
+ node : " "
275
+ submit : |
276
+ ---
277
+ batch_connect:
278
+ template: "basic"
279
+ conn_params:
280
+ - code_server_version
281
+ script:
282
+ job_name: "ood-codeserver"
283
+ native:
284
+ - <%= "--nodes=1" % >
285
+ - <%= "--ntasks=# {num_cores}" % >
286
+ - <%= "--nodelist=# {node}" % >
287
+ openondemand_apps_codeserver : " {{ {'codeserver':openondemand_apps_codeserver_default} if openondemand_codeserver_partition | default(none) else {} }}"
288
+
253
289
# osc.ood:ood_apps - see https://github.com/OSC/ood-ansible#ood_apps
254
290
openondemand_dashboard_support_url : ' '
255
291
openondemand_dashboard_docs_url : ' '
@@ -269,7 +305,15 @@ openondemand_apps:
269
305
ood_brand_bg_color : " #0e6ec8"
270
306
ood_dashboard_title : " {{ openhpc_cluster_name }}"
271
307
272
- ood_apps : " {{ openondemand_apps | combine(openondemand_apps_jupyter) | combine(openondemand_apps_desktop) | combine(openondemand_apps_rstudio) | combine(openondemand_apps_matlab) }}"
308
+ ood_apps : >-
309
+ {{
310
+ openondemand_apps
311
+ | combine(openondemand_apps_jupyter)
312
+ | combine(openondemand_apps_desktop)
313
+ | combine(openondemand_apps_rstudio)
314
+ | combine(openondemand_apps_matlab)
315
+ | combine(openondemand_apps_codeserver)
316
+ }}
273
317
274
318
# Prometheus config for Open Ondemand exporter
275
319
# https://osc.github.io/ood-documentation/latest/monitoring/prometheus.html#prometheus-configuration
0 commit comments