Add initial scripts, which make up the infra-rebuild tool
infra-rebuild is a simple NixOS deployment tool, which simply uses nixos-rebuild internally, but tries to make it more convenient to deploy infrastructure. It supports most of the nixos-rebuild operations - build, build-vm, build-vm-with-bootloader, switch, boot, test - but also provides a reboot operation, which runs nixos-rebuild boot followed by initiating a reboot. The tool doesn't need any configuration for a standard use case. It tries to get the hosts FQDN from its NixOS configuration and tries to deploy to it. However for special cases, where a custom target hostname, user or port is needed, it allows one to define those in a deployment_configuration.json. infra-rebuild also allows for multiple hosts to be specified at once. The tool then simply runs the specified operation for each host sequentially. Much inspiration was taken from bij. See here: https://git.clerie.de/clerie/bij And inspiration was also taken from Colmena. See here: https://github.com/zhaofengli/colmena
This commit is contained in:
commit
946ab46275
6 changed files with 208 additions and 0 deletions
3
helper/msg_error.sh
Executable file
3
helper/msg_error.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
echo "$(tput bold)$(tput setaf 9)$@$(tput sgr0)"
|
||||
3
helper/msg_info.sh
Executable file
3
helper/msg_info.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
echo "$(tput bold)$(tput setaf 12)$@$(tput sgr0)"
|
||||
3
helper/msg_warning.sh
Executable file
3
helper/msg_warning.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
echo "$(tput bold)$(tput setaf 11)$@$(tput sgr0)"
|
||||
Loading…
Add table
Add a link
Reference in a new issue