Skip to content

Commit

Permalink
feat(macos): basic package and group handling
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmcloughlin committed May 31, 2019
1 parent fc7bf24 commit bda2a7c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions grafana/config/file.sls
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ grafana-config-file-file-managed:
- mode: 640
- user: root
- group: {{ grafana.group }}
- makedirs: True
- template: jinja
- context:
config: {{ grafana.config|json }}
Expand Down
9 changes: 8 additions & 1 deletion grafana/osfamilymap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
# you will need to provide at least an empty dict in this file, e.g.
# osfamilymap: {}
---
{%- if grains.os == 'MacOS' %}
{% set macos_group = salt['cmd.run']("stat -f '%Sg' /dev/console") %}
{%- endif %}

Debian:
pkgrepo:
humanname: grafana_official
Expand Down Expand Up @@ -47,4 +51,7 @@ Solaris: {}

Windows: {}

MacOS: {}
MacOS:
rootgroup: {{ macos_group | d('') }}
service:
group: {{ macos_group | d('') }}

0 comments on commit bda2a7c

Please sign in to comment.