diff options
Diffstat (limited to 'notes/deploy.md')
-rw-r--r-- | notes/deploy.md | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/notes/deploy.md b/notes/deploy.md index 127d0e9..8d159b1 100644 --- a/notes/deploy.md +++ b/notes/deploy.md @@ -1,7 +1,23 @@ -# Full redeployment +# Full redeployment or first deployment -After a complete server purge just run (requires a root password and _some_ Linux distribution running on it.): +This requires a root password and _some_ Linux distribution running on it. -```sh -./scripts/deploy.sh "<ssh url>" "<hostname>" +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" ``` |