introducing hostconfig

This commit is contained in:
2020-05-24 15:12:06 +02:00
parent cf53ff8440
commit 7134d1bf77
4 changed files with 10 additions and 4 deletions

5
base/hostconfig/init.sls Normal file
View File

@@ -0,0 +1,5 @@
{% if salt['file.file_exists']({0}.sls'.format(grains.nodename)) %}
include:
- .{{ grains.nodename }}
{% endif %}

View File

@@ -0,0 +1 @@
has_fan: True

View File

@@ -2,6 +2,6 @@
# vim: ft=yaml # vim: ft=yaml
--- ---
#include: include:
# - .log.rsyslog.client - .sys.sysctl
# - .sys.sysctl - .hostconfig

View File

@@ -4,9 +4,9 @@
base: base:
'*': '*':
- base
- saltmine - saltmine
- prometheus.node_exporter - prometheus.node_exporter
- base.sys.sysctl
- ceph - ceph
'riot01*': 'riot01*':
- haproxy - haproxy