2019-04-24 18:18:44 +02:00
|
|
|
# -*- 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: {}
|
|
|
|
---
|
2019-05-31 12:02:41 +02:00
|
|
|
{%- 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:
|
2019-04-26 14:02:30 +02:00
|
|
|
args_file: /etc/default/prometheus
|
2019-04-26 13:09:43 +02:00
|
|
|
exporters:
|
|
|
|
node:
|
|
|
|
config_file: /etc/default/prometheus-node-exporter
|
2019-04-24 18:18:44 +02:00
|
|
|
|
|
|
|
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:
|
2019-06-08 19:39:21 +02:00
|
|
|
pkg:
|
|
|
|
name: node_exporter
|
2019-04-26 13:09:43 +02:00
|
|
|
service: node_exporter
|
2019-06-16 02:33:24 +02:00
|
|
|
pkg:
|
|
|
|
archive:
|
|
|
|
source_hash: 94a63f14baeadab2f17b5ae0bbeda6688e6d06f964ef4e32c2954a0ecf3996a1
|
2019-04-24 18:18:44 +02:00
|
|
|
|
|
|
|
OpenBSD:
|
|
|
|
rootgroup: wheel
|
2019-06-16 02:33:24 +02:00
|
|
|
kernel: openbsd
|
|
|
|
pkg:
|
|
|
|
archive:
|
|
|
|
source_hash: c3c69919b359f00a84ef12f7ed6a956111790d64a71bd94990572baaf63377ce
|
|
|
|
|
|
|
|
|
|
|
|
NetBSD:
|
|
|
|
rootgroup: wheel
|
|
|
|
kernel: netbsd
|
|
|
|
pkg:
|
|
|
|
archive:
|
|
|
|
source_hash: fbfed9922eb8f1045952e0e8b93406028e123a5adb233a0ba7d4fc4e5c537b2c
|
2019-04-24 18:18:44 +02:00
|
|
|
|
|
|
|
Solaris: {}
|
|
|
|
|
2019-06-08 19:39:21 +02:00
|
|
|
Windows:
|
|
|
|
pkg:
|
|
|
|
archive:
|
|
|
|
name: C:\\Program Files
|
|
|
|
source_hash: eb138082a4d5e4d5b1e3ca838fa508f053474d46bca76e87ab0834f0d8b110db
|
2019-04-24 18:18:44 +02:00
|
|
|
|
2019-05-31 12:02:41 +02:00
|
|
|
MacOS:
|
2019-06-16 02:33:24 +02:00
|
|
|
rootgroup: {{ macos_group | d('') }}
|
2019-06-08 19:39:21 +02:00
|
|
|
pkg:
|
|
|
|
archive:
|
|
|
|
source_hash: 740e36bcacc0c5d4495f5341fcfa8b7e0dc623d12e8b07ac291052ea0a681325
|