Skip to content

Commit

Permalink
fix: update bind ip and port
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p committed May 10, 2024
1 parent ba0a19b commit 58cc537
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 48 deletions.
29 changes: 5 additions & 24 deletions docs/src/notes/nas.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,13 @@ My NAS configuration as documentation currently using Ubuntu 22.04
```yaml
network:
version: 2
bonds:
bond0:
interfaces: [eports]
mtu: 9000
dhcp4: true
parameters:
mode: 802.3ad
lacp-rate: fast
transmit-hash-policy: layer2+3
mii-monitor-interval: 100
ethernets:
eports:
enp6s0f0:
dhcp4: yes
mtu: 9000
enp6s0f1:
dhcp4: yes
mtu: 9000
match:
name: "enp6*"
optional: true
```

2. Add or replace file `/etc/modules-load.d/modules.conf`

```text
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
bonding
```

## ZFS
Expand Down
48 changes: 28 additions & 20 deletions docs/src/notes/pikvm.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Load TESmart KVM

1. Add or replace the file `/etc/kvmd/override.yaml`

```yaml
---

Expand All @@ -16,6 +17,8 @@
prometheus:
auth:
enabled: false
atx:
type: disabled
streamer:
desired_fps:
default: 20
Expand All @@ -30,22 +33,22 @@
type: tesmart
host: 192.168.1.10
port: 5000
wol_dev0:
wol_dev2:
type: wol
mac: 1c:69:7a:0d:8d:99
wol_dev1:
wol_dev3:
type: wol
mac: 1c:69:7a:0e:f7:ed
wol_dev2:
wol_dev4:
type: wol
mac: 1c:69:7a:0d:62:d4
wol_dev3:
wol_dev5:
type: wol
mac: 94:c6:91:a7:7b:2b
wol_dev4:
wol_dev6:
type: wol
mac: 94:c6:91:af:15:3d
wol_dev5:
wol_dev7:
type: wol
mac: 1c:69:7a:09:bf:39
reboot:
Expand All @@ -64,11 +67,6 @@
pin: 0
mode: output
switch: false
dev0_wol:
driver: wol_dev0
pin: 0
mode: output
switch: false
dev1_led:
driver: tes
pin: 1
Expand All @@ -78,11 +76,6 @@
pin: 1
mode: output
switch: false
dev1_wol:
driver: wol_dev1
pin: 0
mode: output
switch: false
dev2_led:
driver: tes
pin: 2
Expand Down Expand Up @@ -148,6 +141,11 @@
pin: 6
mode: output
switch: false
dev6_wol:
driver: wol_dev6
pin: 0
mode: output
switch: false
dev7_led:
driver: tes
pin: 7
Expand All @@ -157,6 +155,11 @@
pin: 7
mode: output
switch: false
dev7_wol:
driver: wol_dev7
pin: 0
mode: output
switch: false
reboot_button:
driver: reboot
pin: 0
Expand All @@ -172,17 +175,18 @@
title: Devices
table:
- ["#pikvm", "pikvm_led|green", "restart_service_button|confirm|Service", "reboot_button|confirm|Reboot"]
- ["#0", "dev0_led", "dev0_btn | KVM", "dev0_wol | WOL"]
- ["#1", "dev1_led", "dev1_btn | KVM", "dev1_wol | WOL"]
- ["#0", "dev0_led", "dev0_btn | KVM"]
- ["#1", "dev1_led", "dev1_btn | KVM"]
- ["#2", "dev2_led", "dev2_btn | KVM", "dev2_wol | WOL"]
- ["#3", "dev3_led", "dev3_btn | KVM", "dev3_wol | WOL"]
- ["#4", "dev4_led", "dev4_btn | KVM", "dev4_wol | WOL"]
- ["#5", "dev5_led", "dev5_btn | KVM", "dev5_wol | WOL"]
- ["#6", "dev6_led", "dev6_btn | KVM"]
- ["#7", "dev7_led", "dev7_btn | KVM"]
- ["#6", "dev6_led", "dev6_btn | KVM", "dev6_wol | WOL"]
- ["#7", "dev7_led", "dev7_btn | KVM", "dev7_wol | WOL"]
```
2. Restart kvmd
```sh
systemctl restart kvmd.service
```
Expand All @@ -199,12 +203,14 @@ systemctl enable --now prometheus-node-exporter
### Install promtail

1. Install promtail

```sh
pacman -S promtail
systemctl enable promtail
```

2. Override the promtail systemd service

```sh
mkdir -p /etc/systemd/system/promtail.service.d/
cat >/etc/systemd/system/promtail.service.d/override.conf <<EOL
Expand All @@ -216,6 +222,7 @@ systemctl enable --now prometheus-node-exporter
```

3. Add or replace the file `/etc/loki/promtail.yaml`

```yaml
server:
log_level: info
Expand All @@ -242,6 +249,7 @@ systemctl enable --now prometheus-node-exporter
```

4. Start promtail

```sh
systemctl daemon-reload
systemctl enable --now promtail.service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ spec:
provider: rfc2136
env:
- name: EXTERNAL_DNS_RFC2136_HOST
value: "192.168.1.42"
value: "192.168.1.103"
- name: EXTERNAL_DNS_RFC2136_PORT
value: "5300"
value: "53"
- name: EXTERNAL_DNS_RFC2136_ZONE
value: &domain devbu.io
- name: EXTERNAL_DNS_RFC2136_TSIG_AXFR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ spec:
provider: rfc2136
env:
- name: EXTERNAL_DNS_RFC2136_HOST
value: "192.168.1.42"
value: "192.168.1.103"
- name: EXTERNAL_DNS_RFC2136_PORT
value: "5300"
value: "53"
- name: EXTERNAL_DNS_RFC2136_ZONE
value: &domain turbo.ac
- name: EXTERNAL_DNS_RFC2136_TSIG_AXFR
Expand Down

0 comments on commit 58cc537

Please sign in to comment.