Skip to content

Commit

Permalink
PMM-13567 Fix AMI and OVF builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
talhabinrizwan committed Nov 25, 2024
1 parent 7ff970f commit 46949f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 0 additions & 7 deletions build/packer/ansible/roles/ami-ovf/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
---
- 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: PMM | Delete ec2-user EL9
shell: cd /tmp; nohup sh -c "trap 'userdel -r ec2-user' EXIT; sleep 600" </dev/null >/dev/null 2>&1 &
when:
Expand Down
8 changes: 8 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,14 @@
policy: targeted
state: permissive

- name: Update podman.conf for ami and ovf
lineinfile:
path: /usr/lib/tmpfiles.d/podman.conf
regexp: '^x /tmp/storage-run-\*'
line: 'R! /tmp/storage-run-*'
backrefs: yes
when: pmm_distribution_method in ['ovf', 'ami']

- name: Create a volume on the host
command: podman volume create pmm-data
become: true
Expand Down

0 comments on commit 46949f6

Please sign in to comment.