Merge pull request #2 from noelmcloughlin/macos_1
feat(macos): basic package and group handling
This commit is contained in:
commit
e58bf2255e
@ -20,6 +20,7 @@ prometheus-config-file-file-managed:
|
||||
- mode: 644
|
||||
- user: root
|
||||
- group: {{ prometheus.rootgroup }}
|
||||
- makedirs: True
|
||||
- template: jinja
|
||||
- context:
|
||||
config: {{ prometheus.config|json }}
|
||||
|
@ -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:
|
||||
args_file: /etc/default/prometheus
|
||||
exporters:
|
||||
@ -41,4 +45,5 @@ Solaris: {}
|
||||
|
||||
Windows: {}
|
||||
|
||||
MacOS: {}
|
||||
MacOS:
|
||||
rootgroup: {{ macos_group | d('') }}
|
||||
|
Loading…
Reference in New Issue
Block a user