From 97e1d1f07a2acc8e9b048412911d61695d7187b3 Mon Sep 17 00:00:00 2001 From: hk Date: Thu, 4 Nov 2021 15:26:42 +0100 Subject: [PATCH] fix: make it possible to not have key_url set Fixes #520 --- salt/pkgrepo/debian/install.sls | 2 ++ 1 file changed, 2 insertions(+) diff --git a/salt/pkgrepo/debian/install.sls b/salt/pkgrepo/debian/install.sls index 0a936ff..21ac37a 100644 --- a/salt/pkgrepo/debian/install.sls +++ b/salt/pkgrepo/debian/install.sls @@ -21,7 +21,9 @@ salt-pkgrepo-install-saltstack-debian: - humanname: SaltStack Debian Repo - name: {{ salt_settings.pkgrepo }} - file: /etc/apt/sources.list.d/salt.list + {% if salt_settings.get('key_url') is not none %} - key_url: {{ salt_settings.key_url }} + {% endif %} - clean_file: True # Order: 3 because we can't put a require_in on "pkg: salt-{master,minion}" # because we don't know if they are used.