update for new deployment
This commit is contained in:
parent
103f517075
commit
2971633493
32
hosts
32
hosts
|
@ -44,28 +44,28 @@ all:
|
|||
children:
|
||||
k3s-server:
|
||||
hosts:
|
||||
k3s-s0:
|
||||
k3s-server0:
|
||||
ansible_host: 192.168.20.20
|
||||
platform: raspberrypi
|
||||
k3s-agent:
|
||||
hosts:
|
||||
k3s-w0:
|
||||
ansible_host: 192.168.20.21
|
||||
platform: raspberrypi
|
||||
k3s-w1:
|
||||
ansible_host: 192.168.20.22
|
||||
platform: raspberrypi
|
||||
k3s-w2:
|
||||
ansible_host: 192.168.20.23
|
||||
platform: raspberrypi
|
||||
k3s-w3:
|
||||
ansible_host: 192.168.20.24
|
||||
platform: vm
|
||||
k3s_extra_args: --node-taint kubernetes.io/arch=amd64:PreferNoSchedule
|
||||
k3s-agent:
|
||||
hosts:
|
||||
k3s-agent0:
|
||||
ansible_host: 192.168.20.21
|
||||
platform: raspberrypi
|
||||
k3s-agent1:
|
||||
ansible_host: 192.168.20.22
|
||||
platform: raspberrypi
|
||||
k3s-agent2:
|
||||
ansible_host: 192.168.20.23
|
||||
platform: raspberrypi
|
||||
k3s-agent3:
|
||||
ansible_host: 192.168.20.24
|
||||
platform: raspberrypi
|
||||
debian:
|
||||
hosts:
|
||||
ubiquiti:
|
||||
ansible_host: 192.168.10.2
|
||||
ansible_host: 192.168.10.3
|
||||
pihole:
|
||||
ansible_host: 192.168.20.2
|
||||
children:
|
||||
|
|
|
@ -11,4 +11,5 @@
|
|||
systemd:
|
||||
name: k3s
|
||||
daemon_reload: yes
|
||||
state: started
|
||||
enabled: yes
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
systemd:
|
||||
name: k3s
|
||||
daemon_reload: yes
|
||||
state: started
|
||||
enabled: yes
|
||||
|
||||
- name: Wait for server node-token to be available
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
SUBSYSTEM=="thermal"
|
||||
KERNEL=="thermal_zone0"
|
||||
|
||||
# If the temp hits 75c, turn on the fan. Turn it off again when it goes back down to 70.
|
||||
ATTR{trip_point_3_temp}=="75000"
|
||||
ATTR{trip_point_3_hyst}=="5000"
|
||||
|
||||
# If the temp hits 78c, higher RPM.
|
||||
ATTR{trip_point_2_temp}=="78000"
|
||||
ATTR{trip_point_2_hyst}=="2000"
|
||||
|
||||
# If the temp hits 80c, higher RPM.
|
||||
ATTR{trip_point_1_temp}=="80000"
|
||||
ATTR{trip_point_1_hyst}=="2000"
|
||||
|
||||
# If the temp hits 81c, highest RPM.
|
||||
ATTR{trip_point_0_temp}=="81000"
|
||||
ATTR{trip_point_0_hyst}=="5000"
|
|
@ -1 +0,0 @@
|
|||
net.ifnames=0 dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=LABEL=writable rootfstype=ext4 fsck.mode=force elevator=deadline rootwait fixrtc cgroup_memory=1 cgroup_enable=memory
|
|
@ -8,14 +8,20 @@
|
|||
mode: 0755
|
||||
notify: reboot
|
||||
|
||||
- name: Configure poe hat fan speed control udev rules
|
||||
copy:
|
||||
src: 50-rpi-fan.rules
|
||||
dest: /etc/udev/rules.d/50-rpi-fan.rules
|
||||
- name: Configure poe hat fan speed control
|
||||
blockinfile:
|
||||
path: /boot/config.txt
|
||||
block: |
|
||||
dtparam=poe_fan_temp0=65000
|
||||
dtparam=poe_fan_temp1=70000
|
||||
dtparam=poe_fan_temp2=75000
|
||||
dtparam=poe_fan_temp3=80000
|
||||
notify: reboot
|
||||
|
||||
- name: Configure kernel command line parameters
|
||||
copy:
|
||||
src: cmdline.txt
|
||||
dest: /boot/firmware/cmdline.txt
|
||||
- name: Enable cgroup memory
|
||||
lineinfile:
|
||||
path: /boot/cmdline.txt
|
||||
backrefs: true
|
||||
regexp: '^(.+ rootwait).*$'
|
||||
line: '\1 cgroup_memory=1 cgroup_enable=memory'
|
||||
notify: reboot
|
||||
|
|
Loading…
Reference in New Issue