Skip to content

Commit

Permalink
Merge pull request #313 from stackhpc/fix/websockify
Browse files Browse the repository at this point in the history
Fix issues when using GenericCloud image
  • Loading branch information
sjpb authored Sep 22, 2023
2 parents 1036e4f + 424299d commit 7eb855e
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 13 deletions.
28 changes: 18 additions & 10 deletions ansible/roles/openondemand/tasks/vnc_compute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,46 @@

- name: Install VNC-related packages
tags: install
yum:
dnf:
name:
- turbovnc-3.0.1
- nmap-ncat
- python3
- python3.9

- name: Install Xfce desktop
tags: install
yum:
name: '@Xfce'

# - name: Ensure python3.9 installed
# dnf:
# name: python39
# tags: install

- name: Install websockify venv
# Requires separate step so that the upgraded pip is used to install packages
pip:
name: pip
virtualenv: /opt/websockify
virtualenv_command: python3 -m venv
state: latest
virtualenv: /opt/websockify-py39
virtualenv_command: python3.9 -m venv
tags: install

- name: Install websockify package in venv
pip:
name: websockify
virtualenv: /opt/websockify
virtualenv: /opt/websockify-py39
virtualenv_command: python3 -m venv
tags: install

- name: Symlink websockify to where Open Ondemand expects
file:
src: /opt/websockify/bin/websockify
dest: /opt/websockify/run
state: link

file: "{{ item }}"
loop:
- path: /opt/websockify
state: directory
- src: /opt/websockify-py39/bin/websockify
dest: /opt/websockify/run
state: link
- name: Disable screensaver # as users might not have passwords
yum:
name: xfce4-screensaver
Expand Down
5 changes: 4 additions & 1 deletion environments/.stackhpc/ARCUS.pkrvars.hcl
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
flavor = "vm.ska.cpu.general.small"
networks = ["a262aabd-e6bf-4440-a155-13dbc1b5db0e"] # WCDC-iLab-60
use_blockstorage_volume = true
volume_size = 10 # GB
image_disk_format = "qcow2"
networks = ["4b6b2722-ee5b-40ec-8e52-a6610e14cc51"] # portal-internal (DNS broken on ilab-60)
source_image_name = "openhpc-230804-1754-80b8d714" # https://github.com/stackhpc/ansible-slurm-appliance/pull/298
fatimage_source_image_name = "Rocky-8-GenericCloud-8.6.20220702.0.x86_64.qcow2"
ssh_keypair_name = "slurm-app-ci"
Expand Down
2 changes: 1 addition & 1 deletion environments/.stackhpc/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ variable "cluster_name" {
variable "cluster_image" {
description = "single image for all cluster nodes - a convenience for CI"
type = string
default = "openhpc-230811-1548-a49164d1" # https://github.com/stackhpc/ansible-slurm-appliance/pull/301
default = "openhpc-230922-0940-434e190f" # https://github.com/stackhpc/ansible-slurm-appliance/pull/313
# default = "Rocky-8-GenericCloud-Base-8.7-20221130.0.x86_64.qcow2"
# default = "Rocky-8-GenericCloud-8.6.20220702.0.x86_64.qcow2"
}
Expand Down
1 change: 0 additions & 1 deletion environments/common/inventory/group_vars/all/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ appliances_local_users_default:
shell: /sbin/nologin
uid: 202
system: true
enable: "{{ 'control' in group_names }}"

- group:
name: prometheus
Expand Down

0 comments on commit 7eb855e

Please sign in to comment.