diff --git a/salt/server_containerized/install_mgradm.sls b/salt/server_containerized/install_mgradm.sls index 62a92159a..e50a93387 100644 --- a/salt/server_containerized/install_mgradm.sls +++ b/salt/server_containerized/install_mgradm.sls @@ -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") }}