From e14463c0aba2e71ea3960a875630717fc41da224 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Fri, 1 Apr 2022 11:05:34 -0400 Subject: [PATCH] dont run workstation.trusted-ca if not connected to grid --- salt/workstation/init.sls | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/salt/workstation/init.sls b/salt/workstation/init.sls index c786cdab5..e270c0430 100644 --- a/salt/workstation/init.sls +++ b/salt/workstation/init.sls @@ -1,3 +1,7 @@ include: - workstation.xwindows +{# If the master is 'salt' then the minion hasn't been configured and isn't connected to the grid. #} +{# We need this since the trusted-ca state uses mine data. #} +{% if grains.master != 'salt' %} - workstation.trusted-ca +{% endif %}