hardwrre facts
This commit is contained in:
3
base/hardware/init.sls
Normal file
3
base/hardware/init.sls
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
include:
|
||||
- base.hostconfig.{{ grains.get('hardware') | lower }}
|
||||
22
base/hardware/raspberrypi.sls
Normal file
22
base/hardware/raspberrypi.sls
Normal file
@@ -0,0 +1,22 @@
|
||||
systemd:
|
||||
service:
|
||||
raspberrypi_exporter:
|
||||
Unit:
|
||||
Description: Prometheus exporter for Raspberry Pi metrics
|
||||
Wants: raspberrypi_exporter.timer
|
||||
|
||||
Service:
|
||||
ExecStart: /usr/local/sbin/raspberrypi_exporter
|
||||
User: pi
|
||||
Group: gpio
|
||||
Type: oneshot
|
||||
|
||||
timer:
|
||||
raspberrypi_exporter:
|
||||
Unit:
|
||||
Description: Timer for the Raspberry Pi Prometheus exporter
|
||||
Timer:
|
||||
OnCalendar: '*:*:0,15,30,45'
|
||||
Install:
|
||||
WantedBy: timers.target
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
|
||||
include:
|
||||
- base.hostconfig.{{ grains.get('nodename') }}
|
||||
#{% if salt['file.file_exists']('{0}.sls'.format(grains.get('nodename'))) %}
|
||||
#- base.hostconfig.{{ grains.get('nodename') }}
|
||||
#{% endif %}
|
||||
|
||||
@@ -3,5 +3,6 @@
|
||||
---
|
||||
|
||||
include:
|
||||
- base.hardware
|
||||
- base.sys.sysctl
|
||||
- base.hostconfig
|
||||
|
||||
Reference in New Issue
Block a user