Skip to content

Commit

Permalink
Merge branch 'rl9_v2' into feat/no-ohpc-mergeable-rl9
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpb committed Jan 25, 2024
2 parents 3440e6e + e5608d9 commit 6ace72e
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 14 deletions.
1 change: 1 addition & 0 deletions ansible/roles/filebeat/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
- name: Reload filebeat unit file
command: systemctl daemon-reload
when: _filebeat_unit.changed
become: true
10 changes: 8 additions & 2 deletions ansible/roles/mysql/tasks/install.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
- name: Install pip
dnf:
name: python3-pip

- name: Install python mysql client
pip:
name: pymysql
name:
- pymysql
- cryptography
state: present

- name: Create systemd mysql container unit file
Expand All @@ -11,6 +17,6 @@

- name: Pull container image
containers.podman.podman_image:
name: "mysql"
name: docker.io/library/mysql
tag: "{{ mysql_tag }}"
become_user: "{{ mysql_podman_user }}"
2 changes: 1 addition & 1 deletion ansible/roles/mysql/templates/mysql.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ExecStart=/usr/bin/podman run \
--volume {{ mysql_datadir }}:/var/lib/mysql:U \
--publish 3306:3306 \
--env MYSQL_ROOT_PASSWORD=${MYSQL_INITIAL_ROOT_PASSWORD} \
mysql:{{ mysql_tag }}{%- for opt in mysql_mysqld_options %} \
docker.io/library/mysql:{{ mysql_tag }}{%- for opt in mysql_mysqld_options %} \
--{{ opt }}{% endfor %}

ExecStop=/usr/bin/podman stop --ignore mysql -t 10
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/openondemand/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- include_role:
name: osc.ood
tasks_from: install-package.yml
vars_from: Rocky/8.yml
vars_from: "Rocky/{{ ansible_distribution_major_version }}.yml"
public: yes # Expose the vars from this role to the rest of the play
# can't set vars: from a dict hence the workaround above

Expand Down
1 change: 1 addition & 0 deletions ansible/roles/openondemand/tasks/vnc_compute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- turbovnc-3.0.1
- nmap-ncat
- python3.9
- dbus-x11

- name: Install Xfce desktop
tags: install
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/opensearch/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

- name: Pull container image
containers.podman.podman_image:
name: "opensearchproject/opensearch"
name: docker.io/opensearchproject/opensearch
tag: "{{ opensearch_version }}"
become_user: "{{ opensearch_podman_user }}"

Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/opensearch/templates/opensearch.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ExecStart=/usr/bin/podman run \
--env bootstrap.memory_lock=true \
--env "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" \
--env DISABLE_INSTALL_DEMO_CONFIG=true \
opensearchproject/opensearch:{{ opensearch_version }}
docker.io/opensearchproject/opensearch:{{ opensearch_version }}
ExecStop=/usr/bin/podman stop --ignore opensearch -t 10
# note for some reason this returns status=143 which makes systemd show the unit as failed, not stopped
ExecStopPost=/usr/bin/podman rm --ignore -f opensearch
Expand Down
2 changes: 1 addition & 1 deletion environments/.stackhpc/ARCUS.pkrvars.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ volume_size = 12 # GB. Compatible with SMS-lab's general.v1.tiny
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-Base-8.9-20231119.0.x86_64.qcow2"
fatimage_source_image_name = "Rocky-9-GenericCloud-Base-9.3-20231113.0.x86_64.qcow2"
ssh_keypair_name = "slurm-app-ci"
ssh_private_key_file = "~/.ssh/id_rsa"
security_groups = ["default", "SSH"]
Expand Down
2 changes: 1 addition & 1 deletion environments/.stackhpc/SMS.pkrvars.hcl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
flavor = "general.v1.tiny"
networks = ["26023e3d-bc8e-459c-8def-dbd47ab01756"] # stackhpc-ipv4-geneve
source_image_name = "openhpc-230503-0944-bf8c3f63" # https://github.com/stackhpc/ansible-slurm-appliance/pull/252
fatimage_source_image_name = "Rocky-8-GenericCloud-Base-8.9-20231119.0.x86_64.qcow2"
fatimage_source_image_name = "Rocky-9-GenericCloud-Base-9.3-20231113.0.x86_64.qcow2"
ssh_keypair_name = "slurm-app-ci"
ssh_private_key_file = "~/.ssh/id_rsa"
security_groups = ["default", "SSH"]
Expand Down
11 changes: 6 additions & 5 deletions environments/.stackhpc/hooks/post-bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
gather_facts: false
tags: podman
tasks:
- name: Configure container image registry for unqualified searches to avoid docker.io ratelimits
- name: Configure container image registry to avoid docker.io ratelimits
copy:
dest: /etc/containers/registries.conf.d/003-arcus-unqualfied-overrides.conf
dest: /etc/containers/registries.conf.d/003-arcus-mirror.conf
content: |
unqualified-search-registries = ['{{ podman_registry_address | split('/') | first }}', 'registry.access.redhat.com', 'registry.redhat.io', 'docker.io']
[[registry]]
prefix = "{{ podman_registry_address }}"
location="docker.io/library/"
prefix="docker.io/library/"
[[registry.mirror]]
location = "{{ podman_registry_address }}"
insecure = true
when: "ci_cloud == 'ARCUS'"
2 changes: 1 addition & 1 deletion environments/.stackhpc/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ variable "cluster_image" {
description = "single image for all cluster nodes - a convenience for CI"
type = string
# default = "openhpc-240116-1156-aa8dba7d" # https://github.com/stackhpc/ansible-slurm-appliance/pull/351
default = "Rocky-8-GenericCloud-Base-8.8-20230518.0.x86_64.qcow2"
default = "Rocky-9-GenericCloud-Base-9.3-20231113.0.x86_64.qcow2" # TODO: create packer build
}

variable "cluster_net" {}
Expand Down
2 changes: 2 additions & 0 deletions environments/common/inventory/group_vars/all/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ appliances_local_users_default:
uid: 981
home: "{{ prometheus_db_dir }}"
shell: /usr/sbin/nologin
system: true
enable: "{{ 'prometheus' in group_names }}"

- group:
Expand All @@ -69,6 +70,7 @@ appliances_local_users_default:
uid: 984
home: /usr/share/grafana
shell: /sbin/nologin
system: true
enable: "{{ 'grafana' in group_names }}"

# Overide this to add extra users whilst keeping the defaults.
Expand Down
2 changes: 2 additions & 0 deletions environments/common/inventory/group_vars/all/openondemand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ openondemand_clusters:
module purge
export PATH=/opt/TurboVNC/bin:$PATH
# avoid "Failed to create secure directory (/run/user/*/pulse)"
export XDG_RUNTIME_DIR="$TMPDIR/xdg_runtime"
# Workaround to avoid "Unable to contact settings server" when
# lauching xfce4-session
Expand Down

0 comments on commit 6ace72e

Please sign in to comment.