Skip to content

Commit

Permalink
Disable SSH for now
Browse files Browse the repository at this point in the history
  • Loading branch information
assumptionsandg committed Oct 9, 2024
1 parent fac8855 commit 626a97d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
azimuth_uid: "{{ openstack_metadata['azimuth_workstation_uid'] }}"
azimuth_gid: "{{ openstack_metadata['azimuth_workstation_gid'] }}"
azimuth_is_sudo: "{{ openstack_metadata['azimuth_workstation_is_sudo'] }}"
azimuth_user_data: "{{ openstack_userdata }}"
when: create_user | bool

# Use the same discovery logic as CSI Cinder, so that we succeed and fail on the same clouds
Expand Down Expand Up @@ -81,16 +80,13 @@
ansible.builtin.user:
name: "{{ azimuth_username }}"
uid: "{{ azimuth_uid }}"
gid: "{{ azimuth_gid }}"
home: "{{ data_volume.mountpoint }}/{{ azimuth_username }}-home"
when: create_user | bool

- name: Setup public key for the Azimuth user
ansible.posix.authorized_key:
user: "{{ azimuth_username }}"
state: present
key: "{{ item.ssh_authorized_keys[0] }}"
with_items: "{{ azimuth_user_data }}"
- name: Ensure the Azimuth group has the correct GID
ansible.builtin.group:
name: "{{ azimuth_username }}"
gid: "{{ azimuth_gid }}"
when: create_user | bool

- name: Add the Azimuth user to sudoers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
become: true
vars:
openstack_metadata: "{{ (lookup('url', 'http://169.254.169.254/openstack/latest/meta_data.json') | from_json).get('meta', {}) }}"
openstack_userdata: "{{ (lookup('url', 'http://169.254.169.254/openstack/latest/user_data.json') | from_json).get('user', {}) }}"
vars_files:
- /etc/ansible-init/vars/data-volumes.yml
- /etc/ansible-init/vars/user.yml
Expand Down

0 comments on commit 626a97d

Please sign in to comment.