Skip to content

Commit

Permalink
Add podman login state before using registry (#1637)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsamis authored Dec 6, 2024
1 parent f7674b5 commit 199a462
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions salt/server_containerized/install_mgradm.sls
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ mgradm_config:
{% set runtime = grains.get('container_runtime') | default('podman', true) %}
{% set install_cmd = 'kubernetes' if runtime == 'k3s' else 'podman' %}

podman_login:
cmd.run:
- name: podman login -u {{ grains.get('cc_username') }} -p {{ grains.get('cc_password') }} {{ grains.get("container_repository") }}

mgradm_install:
cmd.run:
- name: mgradm install {{ install_cmd }} --logLevel=debug --config /root/mgradm.yaml {{ grains.get("fqdn") }}
Expand Down

0 comments on commit 199a462

Please sign in to comment.