Skip to content

Commit e211d05

Browse files
author
Matt Pryor
committed
Add the Open OnDemand URL as an output and tweak usage
1 parent 197d672 commit e211d05

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

slurm-infra.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@
9696
vars:
9797
outputs:
9898
cluster_access_ip: "{{ hostvars[groups['openstack'][0]].cluster_floating_ip_address }}"
99-
# We have to use the ansible_local fact directly as Ansible has a bit of a fit
100-
# when there are two 'hostvars' resolutions in a chain
99+
# Ansible has a fit when there are two 'hostvars' evaluations in a resolution chain,
100+
# so we have to repeat logic here unfortunately
101+
openondemand_url: "https://{{ hostvars[groups['openstack'][0]].cluster_floating_ip_address | replace('.', '-') ~ '.sslip.io' }}"
101102
azimuth_user_password: "{{ hostvars[groups['control'][0]].ansible_local.openhpc_secrets.vault_azimuth_user_password }}"

ui-meta/slurm-infra.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,33 @@ parameters:
5959
checkboxLabel: Run post-configuration validation?
6060

6161
usage_template: |-
62-
Access to the cluster is via the external IP using SSH as the `rocky` user:
62+
# Accessing the cluster using Open OnDemand
63+
64+
[Open OnDemand](https://openondemand.org/) is a web portal for managing HPC jobs, including graphical
65+
environments such as [Jupyter Notebooks](https://jupyter.org/).
66+
67+
{% if cluster.outputs.openondemand_url %}
68+
The Open OnDemand portal for this cluster as available at
69+
[{{ cluster.outputs.openondemand_url[8:] }}]({{ cluster.outputs.openondemand_url }}).
70+
71+
Enter the username `azimuth` and password `{{ cluster.outputs.azimuth_user_password }}` when prompted.
72+
{% else %}
73+
The Open OnDemand portal for this cluster can be accessed from the services list.
74+
{% endif %}
75+
76+
# Accessing the cluster using SSH
77+
78+
The cluster can be accessed over SSH via the external IP. The SSH public key of the user that
79+
deployed the cluster is injected into the `azimuth` user:
6380
6481
```
65-
$ ssh rocky@{{ cluster.outputs.cluster_access_ip | default('[cluster ip]') }}
82+
$ ssh azimuth@{{ cluster.outputs.cluster_access_ip | default('[cluster ip]') }}
6683
[rocky@{{ cluster.name }}-login-0 ~]$ sinfo
6784
PARTITION AVAIL TIMELIMIT NODES STATE NODELIST
6885
compute* up 60-00:00:0 {{ "%3s" | format(cluster.parameter_values.compute_count) }} idle {{ cluster.name }}-compute-[0-{{ cluster.parameter_values.compute_count - 1 }}]
6986
```
7087
71-
The SSH public key of the user that deployed the cluster is injected. Access can be granted
72-
to additional users by placing their SSH public key in `~rocky/.ssh/authorized_keys`.
88+
SSH access can be granted to additional users by placing their SSH public key in `~azimuth/.ssh/authorized_keys`.
7389
7490
services:
7591
- name: ood

0 commit comments

Comments
 (0)