Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open Ondemand defaults #210

Open
sjpb opened this issue Sep 14, 2022 · 3 comments · May be fixed by #345 or #211
Open

Open Ondemand defaults #210

sjpb opened this issue Sep 14, 2022 · 3 comments · May be fixed by #345 or #211

Comments

@sjpb
Copy link
Collaborator

sjpb commented Sep 14, 2022

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!

@sjpb
Copy link
Collaborator Author

sjpb commented Sep 14, 2022

Could also set grafana_auth_anonymous: true, as per arcus

@sjpb sjpb linked a pull request Sep 15, 2022 that will close this issue
@sjpb
Copy link
Collaborator Author

sjpb commented Dec 13, 2023

  • 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)

@sjpb
Copy link
Collaborator Author

sjpb commented Dec 13, 2023

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

@sjpb sjpb linked a pull request Dec 15, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant