-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[READY] - openwrt bump, preconf checklist updates, make-dhcpd.sh (#828)
Merging as requested.
- Loading branch information
Showing
23 changed files
with
105 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
## Preconference Checklist | ||
|
||
- \[\] Ensure network team members keys are up to date (https://github.com/socallinuxexpo/scale-network/tree/master/facts/keys) if necessary | ||
- \[\] Update admin key for the expo (https://github.com/socallinuxexpo/scale-network/blob/master/facts/keys/admin_id\*.pub) | ||
- \[\] Update scale version in facts/secrets/\*-openwrt-example.yaml | ||
- \[ \] Ensure network team members keys are up to date (https://github.com/socallinuxexpo/scale-network/tree/master/facts/keys) if necessary | ||
- \[ \] Update admin key for the expo (https://github.com/socallinuxexpo/scale-network/blob/master/facts/keys/admin_id\*.pub) | ||
- \[ \] Update scale version in facts/aps/\*-openwrt-show.yaml | ||
|
||
5. Update root secrets in facts/secrets/\*-openwrt-example.yaml | ||
```bash | ||
find ./facts/aps/ -type f -exec sed -i 's/scale:\ 21/scale:\ 22/g' {} \; | ||
``` | ||
|
||
- \[\] Update scale-signs repo per: https://github.com/socallinuxexpo/scale-signs#yearly-tasks | ||
- \[\] Create release: https://github.com/socallinuxexpo/scale-network/blob/master/RELEASE.md | ||
- \[\] Update wifi password: | ||
- \[ \] Update root secrets in facts/aps/\*-openwrt-show.yaml: | ||
|
||
```bash | ||
openssl passwd -6 newpass | ||
``` | ||
|
||
- \[ \] Update wifi password (if need): | ||
- https://github.com/socallinuxexpo/scale-network/blob/master/facts/secrets/ar71xx-openwrt-show.yaml | ||
- https://github.com/socallinuxexpo/scale-network/blob/master/openwrt/files-mt7622/etc/config/wireless.0 | ||
- \[ \] Create release: https://github.com/socallinuxexpo/scale-network/blob/master/RELEASE.md | ||
- \[ \] Update scale-signs repo per: https://github.com/socallinuxexpo/scale-signs#yearly-tasks |
2 changes: 1 addition & 1 deletion
2
facts/secrets/ath79-openwrt-example.yaml → facts/aps/ath79-openwrt-example.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
facts/secrets/ath79-openwrt-show.yaml → facts/aps/ath79-openwrt-show.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
facts/secrets/mt7622-openwrt-example.yaml → facts/aps/mt7622-openwrt-example.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# scale | ||
root_hash: "$6$CvGoTRZ3/d7w0jt.$kaZnn83uGemQgPznFMz6WgMM8h58Sgs/ydUETmh44RPrCS7D8dqBCklXQyHXKsYnf5nEis4ylwxfNm0NU0piC." | ||
# Bump for each year for scale | ||
scale: 22 | ||
sshd: | ||
password_auth: false | ||
rsyslog: | ||
server: 'loghost.scale.lan' | ||
port: '514' | ||
protocol: 'udp' | ||
ntp: | ||
server: '0.openwrt.pool.ntp.org' | ||
|
||
# Wired/Wireless config can directly be found in files dir |
4 changes: 2 additions & 2 deletions
4
facts/secrets/mt7622-openwrt-show.yaml → facts/aps/mt798x-openwrt-example.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# scale | ||
root_hash: "$6$CvGoTRZ3/d7w0jt.$kaZnn83uGemQgPznFMz6WgMM8h58Sgs/ydUETmh44RPrCS7D8dqBCklXQyHXKsYnf5nEis4ylwxfNm0NU0piC." | ||
# Bump for each year for scale | ||
scale: 22 | ||
sshd: | ||
password_auth: false | ||
rsyslog: | ||
server: 'loghost.scale.lan' | ||
port: '514' | ||
protocol: 'udp' | ||
ntp: | ||
server: '0.openwrt.pool.ntp.org' | ||
|
||
# Wired/Wireless config can directly be found in files dir |
2 changes: 1 addition & 1 deletion
2
facts/secrets/openwrt-example.yaml → facts/aps/openwrt-example.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO5RX5BeD3WfsYvOlvjX1RhBhQiEHtPRut0c+8PlRbU8 scale22x-02022025 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA0JyiGQCbLtjVoi72VA0pR4GjvKqL2JeiqbsxLndZvn conjones@nixtop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOFxaAICX/8f0YSTVL52MrvmGRV9EArQOmUhIgmdwt8o djacu@malachite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
if [[ -z "$1" ]]; then | ||
echo "ERROR: Please pass interface for dhcp server to bind to" | ||
exit 1 | ||
fi | ||
|
||
IFACE=$1 | ||
|
||
sudo ip link add link "$IFACE" name "$IFACE".503 type vlan id 503 | ||
sudo ip addr add 192.168.254.1/24 dev "$IFACE".503 | ||
sudo ip link set up "$IFACE" | ||
sudo ip link set up "$IFACE".503 | ||
|
||
if systemctl is-active --quiet service firewall; then | ||
echo -e "\nWARN: firewall is running so dhcp server might not be able to hand out leases\n\ | ||
WARN: consider running: sudo systemctl stop firewall\n" | ||
fi | ||
|
||
sudo dnsmasq -i "$IFACE".503 \ | ||
--dhcp-range=192.168.254.100,192.168.254.120,255.255.255.0,120s \ | ||
--dhcp-option=3,192.168.254.1 \ | ||
-p0 -d \ | ||
--dhcp-leasefile=./dnsmasq-lease.log \ | ||
--bind-interfaces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
writeShellApplication, | ||
dnsmasq, | ||
}: | ||
writeShellApplication { | ||
name = "make-dhcpd"; | ||
|
||
runtimeInputs = [ dnsmasq ]; | ||
|
||
bashOptions = [ ]; | ||
|
||
text = builtins.readFile ./make-dhcpd.sh; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO5RX5BeD3WfsYvOlvjX1RhBhQiEHtPRut0c+8PlRbU8 scale22x-02022025 | ||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINnRaYbdYsnVqTZNRpXxgK1LlEk9QWa/JwaYAbOZFXiC scale19x-04032022 | ||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAS6QGttw0MBR9UKWfiO3dDp7J/MQdAfpkRQ2hO5oATv [email protected] | ||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA0JyiGQCbLtjVoi72VA0pR4GjvKqL2JeiqbsxLndZvn conjones@nixtop | ||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM/mloyevy5Qdvl4ngNRZ4xIwL2GGvg10XEF/oKrx6VE [email protected] | ||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOFxaAICX/8f0YSTVL52MrvmGRV9EArQOmUhIgmdwt8o djacu@malachite | ||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEqPnzsYPKyURdnUpZx1nt9RFQjaz9q7m5wh525Crsho dlang@dlang-mobile | ||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCtTtJZOyg/9/hbP6IuCyjpA1L0SqMR6wWOU8uJaoa3YlN2sqUkIGne1WYc+4jR+0F2uusDQ1Beb2a9Z0XGxP7nkEIGc5ontC6R/ZUHGf8axz5LXGk9VESR6sMdOjeotSYWwcuj6kPqa0XNXy0nG08dhe8Y+QkjiDQRhjMka4OOmcjMtRAjJyfhROEMpFM18M4Fh3+8j36TatzQQWO6wZ408dQYIc6ShleVfVCvEn5fZ0lm3BRe0UW3wfNs9qupk89VrfUWAEYqvh2uSz9SJBEkGAumreu6ASq7rfPC2DyI60vIT4uaRsqSzfQyT9o1n4v8WmgUKp4kRfZ+T8jWFoUXhj82+2WCCxUlq8D1SRcXDI1OQhHNmH7okorw7TgKJPdM0f96tvgdviH3As6xP/GdnEup8HL0nqKSX8dbRggS9xvmr5SKqGN8QSrclJ+cCsUOWRctgGasf7m+Q6XFNF/8LG6wbqBxxw7TLMLkjVdppHAFoewoBau5cRKGQ++G+BU= dlang@dlang-mobile | ||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBjigwV0KnnaTnFmKjjvnULa5X+hvsy2FAlu+lUUY59f gene@rainbow-planet | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters