mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2026-10-02 14:20:05 +02:00
Use a different group name for GID 0 depending on the minion's O/S
Some Unix variants name GID 0 "wheel". Unfortunately, one cannot specify this group by ID, because Python conflates integer 0 with boolean False, nor can one specify this group using the string '0', because of assumptions in the Salt or Python codebases regarding group names.
This commit is contained in:
2 files changed
+18
-3
No files matched your search
+6
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user