refatoring of k8s and no more gluster
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
include:
|
include:
|
||||||
- .packages
|
- .packages
|
||||||
- .pki
|
- .pki
|
||||||
- .gluster.client
|
#- .gluster.client
|
||||||
- sysctl
|
- sysctl
|
||||||
- rsyslog
|
- rsyslog
|
||||||
- sudoers
|
- sudoers
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import sys
|
|||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
FAN_PIN = getenv('RPI_FAN_PIN', 21) # BCM pin used to drive transistor's base
|
FAN_PIN = getenv('RPI_FAN_PIN', 21) # BCM pin used to drive transistor's base
|
||||||
WAIT_TIME = getenv('RPI_FAN_WAITTIME', 5) # [s] Time to wait between each refresh
|
WAIT_TIME = getenv('RPI_FAN_WAITTIME', 10) # [s] Time to wait between each refresh
|
||||||
FAN_MIN = getenv('RPI_FAN_MIN', 80) # [%] Fan minimum speed.
|
FAN_MIN = getenv('RPI_FAN_MIN', 80) # [%] Fan minimum speed.
|
||||||
PWM_FREQ = getenv('RPI_FAN_PWMFREQ', 25000) # [Hz] Change this value if fan has strange behavior
|
PWM_FREQ = getenv('RPI_FAN_PWMFREQ', 25000) # [Hz] Change this value if fan has strange behavior
|
||||||
# Fan speed will change only of the difference of temperature is higher than hysteresis
|
# Fan speed will change only of the difference of temperature is higher than hysteresis
|
||||||
@@ -21,7 +21,7 @@ prom_collect_dir = getenv('RPI_PROM_COLLECTDIR','/tmp/textfile-collector')
|
|||||||
prom_collect_file = prom_collect_dir + '/rpi_fan.prom'
|
prom_collect_file = prom_collect_dir + '/rpi_fan.prom'
|
||||||
|
|
||||||
# Configurable temperature and fan speed steps
|
# Configurable temperature and fan speed steps
|
||||||
tempSteps = [60, 66, 70, 75] # [°C]
|
tempSteps = [60, 70, 75, 80] # [°C]
|
||||||
speedSteps = [0, 80, 90, 100] # [%]
|
speedSteps = [0, 80, 90, 100] # [%]
|
||||||
# tempSteps = [40, 45]
|
# tempSteps = [40, 45]
|
||||||
# speedSteps = [0, 100]
|
# speedSteps = [0, 100]
|
||||||
|
|||||||
16
k8s/docker.sls
Normal file
16
k8s/docker.sls
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# vim: ft=yaml
|
||||||
|
---
|
||||||
|
|
||||||
|
docker_pkgs:
|
||||||
|
pkg.installed:
|
||||||
|
- pkgs:
|
||||||
|
- docker.io
|
||||||
|
|
||||||
|
|
||||||
|
/etc/docker/daemon.json:
|
||||||
|
file.managed:
|
||||||
|
- source: salt://k8s/files/etc_docker_daemon.json
|
||||||
|
- mode: 644
|
||||||
|
- user: root
|
||||||
|
- group: root
|
||||||
10
k8s/init.sls
10
k8s/init.sls
@@ -3,6 +3,7 @@
|
|||||||
---
|
---
|
||||||
include:
|
include:
|
||||||
- .admin
|
- .admin
|
||||||
|
- .docker
|
||||||
#- .filesystems
|
#- .filesystems
|
||||||
|
|
||||||
|
|
||||||
@@ -13,18 +14,9 @@ include:
|
|||||||
- user: root
|
- user: root
|
||||||
- group: root
|
- group: root
|
||||||
|
|
||||||
/etc/docker/daemon.json:
|
|
||||||
file.managed:
|
|
||||||
- source: salt://k8s/files/etc_docker_daemon.json
|
|
||||||
- mode: 644
|
|
||||||
- user: root
|
|
||||||
- group: root
|
|
||||||
|
|
||||||
|
|
||||||
k8s_pkgs:
|
k8s_pkgs:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- pkgs:
|
- pkgs:
|
||||||
- docker.io
|
|
||||||
- cgroupfs-mount
|
- cgroupfs-mount
|
||||||
- debootstrap
|
- debootstrap
|
||||||
- kubectl
|
- kubectl
|
||||||
|
|||||||
1
top.sls
1
top.sls
@@ -8,6 +8,7 @@ base:
|
|||||||
- hardware
|
- hardware
|
||||||
'tumor*':
|
'tumor*':
|
||||||
- base.pki.ca
|
- base.pki.ca
|
||||||
|
- k8s.docker
|
||||||
'G@osarch:arm64 or G@osarch:armhf or G@osarch:armel':
|
'G@osarch:arm64 or G@osarch:armhf or G@osarch:armel':
|
||||||
- match: compound
|
- match: compound
|
||||||
- base.packages.arch.arm
|
- base.packages.arch.arm
|
||||||
|
|||||||
Reference in New Issue
Block a user