about summary refs log blame commit diff stats
path: root/notes/deploy.md
blob: 8d159b1bc3967532490de5d3e684fdf25159bbcb (plain) (tree)
1
2
                                       
 















                                                                                   
 
       
                                      
   
# 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"
```