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

Setup Azimuth user metadata #26

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion roles/cluster_infra/templates/resources.tf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ resource "openstack_compute_instance_v2" "cluster_server" {
ssh_authorized_keys:
- {{ cluster_deploy_ssh_public_key }}
{% if cluster_user_ssh_public_key is defined and cluster_user_ssh_public_key %}
users:
azimuth_users:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this hard depends on specific image changes, eek... Needs a careful rollout. Probably time to bump the major version when we release this one.

Copy link
Collaborator

@mkjpryor mkjpryor Oct 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is an issue - azimuth-ops releases combine a particular playbook version with a particular images version that are known to work together. Just so long as we can upgrade from one to the other.

- name: azimuth
ssh_authorized_keys:
- {{ cluster_user_ssh_public_key }}
Expand All @@ -153,6 +153,10 @@ resource "openstack_compute_instance_v2" "cluster_server" {
azimuth_user_id = "${data.openstack_identity_auth_scope_v3.scope.user_id}"
azimuth_project_name = "${data.openstack_identity_auth_scope_v3.scope.project_name}"
azimuth_project_id = "${data.openstack_identity_auth_scope_v3.scope.project_id}"
azimuth_workstation_username = "{{ cluster_user_username | default('azimuth') }}"
azimuth_workstation_uid = "{{ cluster_user_uid | default('1005') }}"
azimuth_workstation_gid = "{{ cluster_user_gid | default('1005') }}"
azimuth_workstation_is_sudo = "{{ cluster_user_is_sudo | default(true) }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am tempted to make this "True" so its going to be like what gets passed from Azimuth into the string value here, but otherwise seems OK.

{% for playbook in ansible_init_playbooks %}
ansible_init_pb_{{ loop.index0 }}_name = "{{ playbook.name }}"
{% if playbook.stage is defined %}
Expand Down
5 changes: 5 additions & 0 deletions ui-meta/workstation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ usage_template: |-

Monitoring dashboards for the workstation are available using the [Monitoring service]({{ monitoring.url }}).

This Azimuth user is mounted at {{ user_mountpoint }}/{{ azimuth_username }}-home

Note that this user storage is EPHEMERAL and is removed on platform deletion, use
/platform for persistent storage between workstations.

Documentation on Workstation features such as EESSI and Podman can be found [here](https://azimuth-cloud.github.io/azimuth-user-docs/platforms/linux-workstation/).


Expand Down