Skip to content

Commit

Permalink
Fix check for IS_ZUUL in /opt/manager-vars.sh (#2493)
Browse files Browse the repository at this point in the history
Related to 6e4837f

Signed-off-by: Christian Berendt <berendt@osism.tech>
  • Loading branch information
berendt authored Sep 27, 2024
1 parent f9df3f8 commit bf1435f
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions ansible/manager-part-3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,31 +79,21 @@
retries: 120
delay: 10

- name: Check if /etc/osism-ci-image exist
ansible.builtin.stat:
path: /etc/osism-ci-image
register: result

- name: "Check if /opt/manager-vars.sh contains 'export IS_ZUUL=true'"
ansible.builtin.lineinfile:
name: /opt/manager-vars.sh
line: "export IS_ZUUL=true"
state: present
check_mode: yes
changed_when: false
register: result
- name: Get /opt/manager-vars.sh
ansible.builtin.set_fact:
manager_vars: "{{ lookup('file', '/opt/manager-vars.sh') }}"

- name: Add ara_server_mariadb_volume_type parameter
ansible.builtin.lineinfile:
path: /opt/configuration/environments/manager/configuration.yml
line: "ara_server_mariadb_volume_type: tmpfs"
when: result.found
when: "'export IS_ZUUL=true' in manager_vars"

- name: Add netbox_postgres_volume_type parameter
ansible.builtin.lineinfile:
path: /opt/configuration/environments/infrastructure/configuration.yml
line: "netbox_postgres_volume_type: tmpfs"
when: result.found
when: "'export IS_ZUUL=true' in manager_vars"

# The correct package name is linux-generic-hwe-22.04 on Ubuntu 22.04
# and linux-generic-hwe-24.04 on Ubuntu 24.04.
Expand Down

0 comments on commit bf1435f

Please sign in to comment.