prometheus-formula/prometheus/osfamilymap.yaml

73 lines
1.6 KiB
YAML
Raw Normal View History

# -*- 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 %}
2019-04-26 13:09:43 +02:00
Debian:
args_file: /etc/default/prometheus
2019-04-26 13:09:43 +02:00
exporters:
node:
config_file: /etc/default/prometheus-node-exporter
RedHat: {}
Suse: {}
Gentoo: {}
Arch: {}
Alpine: {}
FreeBSD:
rootgroup: wheel
config_file: /usr/local/etc/prometheus.yml
2019-04-26 13:09:43 +02:00
exporters:
node:
pkg:
name: node_exporter
2019-04-26 13:09:43 +02:00
service: node_exporter
pkg:
archive:
source_hash: 94a63f14baeadab2f17b5ae0bbeda6688e6d06f964ef4e32c2954a0ecf3996a1
OpenBSD:
rootgroup: wheel
kernel: openbsd
pkg:
archive:
source_hash: c3c69919b359f00a84ef12f7ed6a956111790d64a71bd94990572baaf63377ce
NetBSD:
rootgroup: wheel
kernel: netbsd
pkg:
archive:
source_hash: fbfed9922eb8f1045952e0e8b93406028e123a5adb233a0ba7d4fc4e5c537b2c
Solaris: {}
Windows:
pkg:
archive:
name: C:\\Program Files
source_hash: eb138082a4d5e4d5b1e3ca838fa508f053474d46bca76e87ab0834f0d8b110db
MacOS:
rootgroup: {{ macos_group | d('') }}
pkg:
archive:
source_hash: 740e36bcacc0c5d4495f5341fcfa8b7e0dc623d12e8b07ac291052ea0a681325