diff --git a/salt/cloud.sls b/salt/cloud.sls index 63d4776..bf66959 100644 --- a/salt/cloud.sls +++ b/salt/cloud.sls @@ -48,7 +48,12 @@ cloud-cert-{{ cert }}-pem: - source: salt://{{ slspath }}/files/key - template: jinja - user: root - - group: root + - group: + {%- if grains['kernel'] in ['FreeBSD', 'OpenBSD', 'NetBSD'] %} + wheel + {%- else %} + root + {%- endif %} - mode: 600 - makedirs: True - defaults: @@ -91,7 +96,12 @@ salt-cloud-providers-permissions: file.directory: - name: {{ salt_settings.config_path }}/cloud.providers.d - user: root - - group: root + - group: + {%- if grains['kernel'] in ['FreeBSD', 'OpenBSD', 'NetBSD'] %} + wheel + {%- else %} + root + {%- endif %} - file_mode: 600 - dir_mode: 700 - recurse: diff --git a/salt/gitfs/keys.sls b/salt/gitfs/keys.sls index 3b002b8..e432909 100644 --- a/salt/gitfs/keys.sls +++ b/salt/gitfs/keys.sls @@ -10,7 +10,12 @@ gitfs-key-{{ key }}-{{ type }}: - source: salt://salt/files/gitfs_key.jinja - template: jinja - user: root - - group: root + - group: + {%- if grains['kernel'] in ['FreeBSD', 'OpenBSD', 'NetBSD'] %} + wheel + {%- else %} + root + {%- endif %} - mode: 600 - makedirs: True - defaults: