Skip to content

Commit

Permalink
Adjust Ansible tasks to use V4_CFG_CR_URL, drop use of abandoned V4_C…
Browse files Browse the repository at this point in the history
…FG_OCI_REGISTRY_URI
  • Loading branch information
dhoucgitter committed Apr 29, 2024
1 parent b4ad189 commit 65b7b53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions roles/baseline/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@


---
- name: Authenticate helm to V4_CFG_OCI_REGISTRY_URI
- name: Helm authenticate to private repository
when:
- V4_CFG_OCI_REGISTRY_URI is defined
- V4_CFG_OCI_REGISTRY_URI is not none
- V4_CFG_DARK_SITE_ENABLED is defined
- V4_CFG_DARK_SITE_ENABLED
- V4_CFG_CR_USER is defined
- V4_CFG_CR_USER is not none
- V4_CFG_CR_PASSWORD is defined
- V4_CFG_CR_PASSWORD is not none
command:
cmd: |
helm registry login {{ V4_CFG_OCI_REGISTRY_URI }} -u {{ V4_CFG_CR_USER }} --password-stdin
helm registry login {{ V4_CFG_CR_URL }} -u {{ V4_CFG_CR_USER }} --password-stdin
args:
stdin: "{{ V4_CFG_CR_PASSWORD }}"
tags:
Expand Down
8 changes: 4 additions & 4 deletions roles/vdm/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@
- uninstall
- update

- name: Authenticate helm to V4_CFG_OCI_REGISTRY_URI
- name: Helm authenticate to private repository
when:
- V4_CFG_OCI_REGISTRY_URI is defined
- V4_CFG_OCI_REGISTRY_URI is not none
- V4_CFG_DARK_SITE_ENABLED is defined
- V4_CFG_DARK_SITE_ENABLED
- V4_CFG_CR_USER is defined
- V4_CFG_CR_USER is not none
- V4_CFG_CR_PASSWORD is defined
- V4_CFG_CR_PASSWORD is not none
command:
cmd: |
helm registry login {{ V4_CFG_OCI_REGISTRY_URI }} -u {{ V4_CFG_CR_USER }} --password-stdin
helm registry login {{ V4_CFG_CR_URL }} -u {{ V4_CFG_CR_USER }} --password-stdin
args:
stdin: "{{ V4_CFG_CR_PASSWORD }}"
tags:
Expand Down

0 comments on commit 65b7b53

Please sign in to comment.