stackhpc / ansible-slurm-appliance

A Slurm-based HPC workload management environment, driven by Ansible.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open Ondemand defaults

sjpb opened this issue · comments

Seems like the cookiecutter terraform should be able to set:
- openondemand_host_regex
- openondemand_jupyter_partition
- openondemand_desktop_partition
- openondemand_servername: "{{ hostvars[ groups['openondemand'] | first].ansible_host }}"
at least by assuming that a) all compute nodes are "OOD application nodes" and b)that the OOD node is only reachable on its private IP

Can't autoselect openondemand_auth but that should be listed in the openondemand vars!

Could also set grafana_auth_anonymous: true, as per arcus

  • openondemand_host_regex is now set automagically:

    environments/common/inventory/group_vars/all/openondemand.yml:openondemand_host_regex: "{{ (groups['compute'] + groups['grafana']) | to_ood_regex }}"
    
  • caas sets the jupyter and desktop partitions to the first partition, by default:

    environments/.caas/inventory/group_vars/all/openondemand.yml:openondemand_jupyter_partition: "{{ openhpc_slurm_partitions[0]['name'] }}"
    environments/.caas/inventory/group_vars/all/openondemand.yml:openondemand_desktop_partition: "{{ openhpc_slurm_partitions[0]['name'] }}"
    

    I think there was a reason that didn't work before (maybe var precedence?)

  • the openondemand_servername is annoying, b/c in the underlying ood ansible role servername can be left unset; its just that that isn't a very useful variable name. Although actually I'm not sure having no virtual server name works for non-ssh-proxyjump cases (but, that's probably OK actually)

Note the everything template creates the groups openondemand_jupyter and openondemand_desktop set to compute. So that is consistent with the above at least.