blob: 8d159b1bc3967532490de5d3e684fdf25159bbcb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Full redeployment or first deployment
This requires a root password and _some_ Linux distribution running on it.
We assume that following variables are set.
```bash
HOST="<host-name>" # e.g., server1
SSH_URL="<ssh-url>" # e.g., root@server1.vhack.eu
```
## Generate a networking configuration
```bash
scp scripts/mk_network_config.sh "$SSH_URL:/root/"
ssh "$SSH_URL" /root/mk_networking_config.sh > "hosts/by-name/$HOST/networking.nix"
```
## Re-deploy
```bash
./scripts/deploy.sh "$SSH_URL" "$HOST"
```
|