prometheus-formula/prometheus/osfamilymap.yaml

50 lines
1.0 KiB
YAML

# -*- coding: utf-8 -*-
# vim: ft=yaml
#
# Setup variables using grains['os_family'] based logic.
# You just need to add the key:values for an `os_family` that differ
# from `defaults.yaml`.
# Only add an `os_family` which is/will be supported by the formula
#
# If you do not need to provide defaults via the `os_family` grain,
# 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:
node:
config_file: /etc/default/prometheus-node-exporter
RedHat: {}
Suse: {}
Gentoo: {}
Arch: {}
Alpine: {}
FreeBSD:
rootgroup: wheel
config_file: /usr/local/etc/prometheus.yml
exporters:
node:
pkg: node_exporter
service: node_exporter
OpenBSD:
rootgroup: wheel
Solaris: {}
Windows: {}
MacOS:
rootgroup: {{ macos_group | d('') }}