Skip to content

Commit

Permalink
Fix mirror grain extraction in k3s setup
Browse files Browse the repository at this point in the history
The simplified mirror_hostname value doesn't work because the
`server_mounted_mirror` is `{}`.
  • Loading branch information
cbosdo committed Dec 11, 2024
1 parent 20faaf7 commit 4341f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/server_containerized/install_k3s.sls
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ helm_install:
- name: helm
{% endif %}

{%- set mirror_hostname = grains.get('server_mounted_mirror', grains.get('mirror')) %}
{%- set mirror_hostname = grains.get('server_mounted_mirror') if grains.get('server_mounted_mirror') else grains.get('mirror') %}
{% if mirror_hostname %}
mirror_pv_file:
file.managed:
Expand Down

0 comments on commit 4341f83

Please sign in to comment.