0
0
mirror of https://github.com/saltstack-formulas/users-formula.git synced 2024-11-28 00:48:22 +01:00

Merge pull request #199 from noelmcloughlin/macos

fix(macos): ensure correct prime_group value
This commit is contained in:
N 2019-06-23 17:04:17 +01:00 committed by GitHub
commit 7884fe6b29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,5 +93,6 @@
{% if grains.os == 'MacOS' %} {% if grains.os == 'MacOS' %}
{% set group = salt['cmd.run']("stat -f '%Sg' /dev/console") %} {% set group = salt['cmd.run']("stat -f '%Sg' /dev/console") %}
{% do users.update({'root_group': group,}) %} {% do users.update({'root_group': group,
{% endif %} 'prime_group': group}) %}
{%- endif %}