From fcd2567b1d5e7b6fd7d1bf4cc3087fffe75a78f0 Mon Sep 17 00:00:00 2001 From: jeanluc Date: Wed, 23 Mar 2022 13:08:20 +0100 Subject: [PATCH] fix(minion): correct root user group on MacOS --- salt/minion.sls | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/salt/minion.sls b/salt/minion.sls index 042585b..90f97dd 100644 --- a/salt/minion.sls +++ b/salt/minion.sls @@ -198,7 +198,7 @@ permissions-minion-config: - name: {{ salt_settings.config_path | path_join('minion') }} - user: {{ salt_settings.rootuser }} - group: - {%- if grains['kernel'] in ['FreeBSD', 'OpenBSD', 'NetBSD'] %} + {%- if grains['kernel'] in ['FreeBSD', 'OpenBSD', 'NetBSD', 'Darwin'] %} wheel {%- else %} root @@ -218,7 +218,7 @@ salt-minion-pki-dir: {% endif %} - user: {{ salt_settings.rootuser }} - group: - {%- if grains['kernel'] in ['FreeBSD', 'OpenBSD', 'NetBSD'] %} + {%- if grains['kernel'] in ['FreeBSD', 'OpenBSD', 'NetBSD', 'Darwin'] %} wheel {%- else %} root @@ -237,7 +237,7 @@ permissions-minion.pem: {% endif %} - user: {{ salt_settings.rootuser }} - group: - {%- if grains['kernel'] in ['FreeBSD', 'OpenBSD', 'NetBSD'] %} + {%- if grains['kernel'] in ['FreeBSD', 'OpenBSD', 'NetBSD', 'Darwin'] %} wheel {%- else %} root @@ -258,7 +258,7 @@ permissions-minion.pub: {% endif %} - user: {{ salt_settings.rootuser }} - group: - {%- if grains['kernel'] in ['FreeBSD', 'OpenBSD', 'NetBSD'] %} + {%- if grains['kernel'] in ['FreeBSD', 'OpenBSD', 'NetBSD', 'Darwin'] %} wheel {%- else %} root