hardwrre facts

This commit is contained in:
2020-06-07 15:33:17 +02:00
parent f436705093
commit a50d16b47a
4 changed files with 27 additions and 3 deletions

3
base/hardware/init.sls Normal file
View File

@@ -0,0 +1,3 @@
include:
- base.hostconfig.{{ grains.get('hardware') | lower }}

View 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