Skip to content

Commit

Permalink
update migrate task
Browse files Browse the repository at this point in the history
  • Loading branch information
archanaserver committed Nov 15, 2024
1 parent f87525f commit 78ca43a
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions roles/pulp/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,22 @@
ansible.builtin.systemd:
daemon_reload: true

- name: Migrate the Pulp database
containers.podman.podman_container:
name: pulpcore-manager-migrate
image: "{{ pulp_api_image }}"
command: pulpcore-manager migrate --noinput
network: host
secrets:
- 'pulp-settings-py,type=mount,target=/etc/pulp/settings.py'
- 'pulp-symmetric-key,type=mount,target=/etc/pulp/certs/database_fields.symmetric.key'

- name: Start the Pulp API services
ansible.builtin.systemd:
name: pulp-api
enabled: true
state: started

- name: Migrate the Pulp database
containers.podman.podman_container_exec:
name: "{{ pulp_api_container_name }}"
command: pulpcore-manager migrate --noinput

- name: Wait for Pulp API service to be accessible
ansible.builtin.wait_for:
host: "{{ ansible_hostname }}"
Expand Down

0 comments on commit 78ca43a

Please sign in to comment.