Commit Graph

168 Commits

Author SHA1 Message Date
Andreas Zweili 7260d60ca2 Use nixos-rebuild in test_build 2023-06-05 10:06:45 +02:00
Andreas Zweili 17d2f9fab9 Skip mobile when update all servers 2023-04-23 13:47:43 +02:00
Andreas Zweili 3d55d681a9 Correct permissions for built images 2023-04-01 12:08:02 +02:00
Andreas Zweili fa7079fa7a Update home-manager script 2023-02-10 09:28:56 +01:00
Andreas Zweili 57eae5b15d Remove the pihole system 2023-01-09 19:15:30 +01:00
Andreas Zweili 15f38fe9ca Ignore test-raspi in remote updates 2023-01-06 19:04:44 +01:00
Andreas Zweili 424c6ab2eb Use the compressed image
Apparently the script compresses the image anyway so why waste the CPU cycles
to uncompress it right afterwards.
2022-12-06 23:12:35 +01:00
Andreas Zweili 1bb7c2fb34 Revert "Don't compress the raspi images"
This reverts commit c3d8e03e2c.
2022-12-06 23:00:53 +01:00
Andreas Zweili c3d8e03e2c Don't compress the raspi images 2022-12-06 22:48:27 +01:00
Andreas Zweili acade67d00 Replace nixos-rebuild with nix 2022-12-01 18:33:04 +01:00
Andreas Zweili 9307c8638d Don't jump into home dir 2022-12-01 18:24:21 +01:00
Andreas Zweili 385ca89339 Replace builds with tests 2022-12-01 18:14:25 +01:00
Andreas Zweili b7cbd2d7e6 Test a binary cache on github 2022-11-30 23:39:25 +01:00
Andreas Zweili 2ada81f601 Remove proxmox related configs 2022-11-12 15:33:49 +01:00
Andreas Zweili 40022fbcdb Add an option to enable reboots 2022-11-12 15:28:35 +01:00
Andreas Zweili 48895a1a74 Don't remove the result after building a Raspi image
This should keep the built artifacts around a bit longer.
2022-11-09 19:13:09 +01:00
Andreas Zweili 1df48d32c9 Extend the image build script 2022-11-05 20:29:18 +01:00
Andreas Zweili 7fb0a60a20 Add a script to build raspi images 2022-11-05 20:00:33 +01:00
Andreas Zweili 89a55f792a Define pihole more explictly 2022-11-04 16:35:14 +01:00
Andreas Zweili 1aab14c998 Make sure that pihole gets built at the end 2022-11-04 13:48:54 +01:00
Andreas Zweili e4aa23f217 Remove set -e
This doesn't work because the reboot triggers an error
2022-11-04 13:48:22 +01:00
Andreas Zweili c21f8c2a4d Add a test script 2022-11-04 13:22:42 +01:00
Andreas Zweili cdb504ca6c Change into the correct directory before starting 2022-11-04 13:22:16 +01:00
Andreas Zweili ec1287ec24 Fail the remove updates on the first error 2022-11-04 13:22:09 +01:00
Andreas Zweili 8e97eda3b1 Order skip array alphabetically 2022-11-03 11:33:58 +01:00
Andreas Zweili 7e2be956cf Skip staubfinger in remote updates 2022-11-03 11:33:41 +01:00
Andreas Zweili 7b6e254ea3 Get all the hosts programmatically from the flake 2022-11-02 20:54:02 +01:00
Andreas Zweili 4289a62f23 Remove unused code 2022-10-14 08:40:33 +02:00
Andreas Zweili f90470a34b Rename raspi-test to management 2022-10-14 08:39:51 +02:00
Andreas Zweili 1d52442f70 Add a script to install new systems 2022-09-16 12:46:26 +02:00
Andreas Zweili 5746b2c433 remove system from update script 2022-09-06 23:04:43 +02:00
Andreas Zweili 8c68bd9e88 Add proxy to remote_switch.sh 2022-09-06 22:42:27 +02:00
Andreas Zweili 32e60fc279 Move the git server to the second last stage 2022-08-23 21:36:00 +02:00
Andreas Zweili 87a7fd48c8 Move pihole to the bottom of the list 2022-07-18 12:01:47 +02:00
Andreas Zweili 1c9908f40e Add raspi-test to the remote update script 2022-06-27 17:39:13 +02:00
Andreas Zweili f71388c83d Remove unused systems 2022-06-14 22:05:26 +02:00
Andreas Zweili 092ba56a53 Remove unused systems 2022-05-20 13:43:43 +02:00
Andreas Zweili 67b19dd765 Fix the SSH command 2022-05-20 13:35:18 +02:00
Andreas Zweili 85632d6fad Move the reboot step into the main loop 2022-05-20 13:32:40 +02:00
Andreas Zweili 292750ae80 Add reboot step 2022-05-20 13:29:35 +02:00
Andreas Zweili 76904c227c Comment out paused and testing systems 2022-05-04 23:10:45 +02:00
Andreas Zweili 22390be238 add nomad servers to update script 2022-03-07 22:55:41 +01:00
Andreas Zweili 9813a31883 add the k3s servers to the update script 2022-03-04 15:49:28 +01:00
Andreas Zweili 684e65c52f add restic server to backup script 2022-02-28 15:15:11 +01:00
Andreas Zweili 82bd691b33 add jdownloader to update script 2022-02-28 14:21:34 +01:00
Andreas Zweili e54b3fbb88 correct the scripts 2022-01-31 15:45:25 +01:00
Andreas Zweili cb42e3e820 correct single machine script 2022-01-31 14:31:55 +01:00
Andreas Zweili fb3b288e3f rewrite scripts from xonsh to bash 2022-01-31 12:42:56 +01:00
Andreas Zweili 5cc0762325 update scripts 2022-01-31 12:28:59 +01:00
Andreas Zweili 51b7e4c85b extend remote switch script 2022-01-25 19:28:10 +01:00
Andreas Zweili b8d9bc1c75 extend update script 2022-01-25 19:18:53 +01:00
Andreas Zweili ec7c9a5877 correct the remote install script 2022-01-25 18:13:39 +01:00
Andreas Zweili 359f4dd21a correct path for shell.nix 2022-01-25 18:08:14 +01:00
Andreas Zweili 9783d9c4c5 try to use nix-shell in shebang 2022-01-25 18:07:08 +01:00
Andreas Zweili 4ec267e6b3 add bash script for setup 2022-01-25 18:02:41 +01:00
Andreas Zweili 431b65d786 remove for loop 2022-01-25 17:53:46 +01:00
Andreas Zweili aa49a32c8c correct the host 2022-01-25 17:52:39 +01:00
Andreas Zweili 70693704e8 try a script to install a new vm 2022-01-25 17:50:58 +01:00
Andreas Zweili a5b87a660f add a script to deploy a single machine 2022-01-25 06:45:44 +01:00
Andreas Zweili 51c4989d23 add various systems to the update script 2022-01-24 23:04:42 +01:00
Andreas Zweili f76ffbc24f remove unused script 2022-01-24 12:44:52 +01:00
Andreas Zweili 20b2c874a4 extend home-manager setup script for non-nixos 2022-01-24 12:44:09 +01:00
Andreas Zweili 5b189702b8 add a script to fix the secrets permissions 2022-01-24 10:54:46 +01:00
Andreas Zweili a0076aeb34 remove the test vm from the update script 2022-01-24 10:40:50 +01:00
Andreas Zweili 72f2d1c2d9 add a script for remote updates 2022-01-23 12:28:06 +01:00
Andreas Zweili 67bf564c89 specify the ssh key 2022-01-17 17:52:49 +01:00
Andreas Zweili cbb38874d7 use tmux in the update script
this makes it more robust when running on an unstable connection
2022-01-17 11:21:13 +01:00
Andreas Zweili 68ccc39f51 finish the update script 2022-01-16 18:20:16 +01:00
Andreas Zweili 9c2b466590 remove sudo from the update script 2022-01-16 18:03:36 +01:00
Andreas Zweili 9ed81a8e4b add a script to update my hosts 2022-01-16 17:20:10 +01:00
Andreas Zweili efd9a68bff update the vm script 2022-01-12 22:32:02 +01:00
Andreas Zweili a62d95dac5 add a script to setup the VM home 2022-01-12 21:53:09 +01:00
Andreas Zweili 0aa36e9c7f refactor the format-disk script 2021-12-23 11:22:42 +01:00
Andreas Zweili aa7baf88ab log the LVM target 2021-12-20 19:20:39 +01:00
Andreas Zweili 2d30761c33 remove unusable script and update README 2021-12-20 17:08:01 +01:00
Andreas Zweili 3ae53df7eb make install script executable 2021-12-20 17:02:59 +01:00
Andreas Zweili 10eddaab79 remove old scripts 2021-12-20 16:59:36 +01:00
Andreas Zweili be8011dec5 add the last --script option 2021-12-20 16:58:20 +01:00
Andreas Zweili 78d9e7cd4f remove unused argument 2021-12-20 15:58:11 +01:00
Andreas Zweili 43f1a68936 add missing comma 2021-12-20 15:56:33 +01:00
Andreas Zweili 0a0797a4de use strings with parted 2021-12-20 15:55:27 +01:00
Andreas Zweili d8c1de19e7 remove duplicate print 2021-12-20 15:45:58 +01:00
Andreas Zweili faee1d933e add script option 2021-12-20 15:44:51 +01:00
Andreas Zweili 3c0b94bb55 first try for a parted fix 2021-12-20 15:42:58 +01:00
Andreas Zweili 490d402c3f add some log lines 2021-12-20 15:32:11 +01:00
Andreas Zweili a86fd43185 add partition table 2021-12-20 12:24:33 +01:00
Andreas Zweili 88e8bebe37 add a password prompt for luks 2021-12-20 10:41:11 +01:00
Andreas Zweili b0902cd334 refactor the format script a bit 2021-12-19 20:25:09 +01:00
Andreas Zweili ba210d5d6d fix a typo 2021-12-19 20:16:49 +01:00
Andreas Zweili 0dd3df4331 run cryptsetup in batch mode 2021-12-19 20:12:52 +01:00
Andreas Zweili 9a34894861 complete the format-disk script 2021-12-19 20:10:49 +01:00
Andreas Zweili 3ec32d711d add functions for boot and main partition 2021-12-19 19:33:19 +01:00
Andreas Zweili 2a8c4a2791 extend format_disk function 2021-12-19 19:15:51 +01:00
Andreas Zweili f51fd05547 add questsion for swap and encryption 2021-12-19 19:15:29 +01:00
Andreas Zweili 0c0cbd0714 add import 2021-12-19 19:15:01 +01:00
Andreas Zweili 0c14b063c9 add y_n function 2021-12-19 19:14:23 +01:00
Andreas Zweili 2e278d85bb add function to read RAM amount 2021-12-19 18:58:31 +01:00
Andreas Zweili aa98d610b0 extend the main function 2021-12-19 18:48:18 +01:00
Andreas Zweili faec2e08be always return int for the disk selection 2021-12-19 18:47:51 +01:00
Andreas Zweili 0a7d19e719 make funktions public 2021-12-19 18:47:36 +01:00