Skip to content

Commit

Permalink
Merge branch 'v3' into PMM-13483-refactor-pmm-update
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff authored Nov 28, 2024
2 parents 0147cfb + a55a663 commit 917429b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
20 changes: 11 additions & 9 deletions build/ansible/roles/initialization/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,20 +101,22 @@
method: GET
retries: 20
delay: 5
register: pmm_ready
until: pmm_ready.status == 200
ignore_errors: true

- name: Initialize admin password for AMI if needed
include_role:
name: init-admin-password-ami
when: need_initialization and is_ami
when: need_initialization or need_upgrade

- name: Disable maintenance mode
file:
state: absent
path: /usr/share/pmm-server/maintenance/maintenance.html
- name: Disable maintenance mode
file:
state: absent
path: /usr/share/pmm-server/maintenance/maintenance.html

- name: Remove the file provisioned by 'getStatus'
file:
state: absent
path: /srv/pmm-update.json
when: need_initialization or need_upgrade
- name: Remove the file provisioned by 'getStatus'
file:
state: absent
path: /srv/pmm-update.json
7 changes: 7 additions & 0 deletions build/packer/ansible/roles/podman-setup/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
policy: targeted
state: permissive

- name: Update podman.conf
lineinfile:
path: /usr/lib/tmpfiles.d/podman.conf
regexp: '^x /tmp/storage-run-\*'
line: 'R! /tmp/storage-run-*'
backrefs: yes

- name: Create a volume on the host
command: podman volume create pmm-data
become: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
PMM_WATCHTOWER_HOST=http://watchtower:8080
PMM_WATCHTOWER_TOKEN=123
PMM_DEV_UPDATE_DOCKER_IMAGE=docker.io/perconalab/pmm-server:3-dev-container
PMM_IMAGE={{ pmm_server_image_name }}
PMM_DISTRIBUTION_METHOD={{ pmm_distribution_method }}

0 comments on commit 917429b

Please sign in to comment.