aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-10-16 11:58:11 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-10-16 11:58:11 +0200
commitd442b9a068b39e0180027398faa7011bbbe3c3c9 (patch)
tree011c2bd709002ceca5881b8c383ebbe81c4b5c02 /README.md
parent9a8cbf91215317a571ed3714f76230a751a91896 (diff)
downloadnixcfg-d442b9a068b39e0180027398faa7011bbbe3c3c9.tar.gz
nixcfg-d442b9a068b39e0180027398faa7011bbbe3c3c9.zip
Update README
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 11 insertions, 2 deletions
diff --git a/README.md b/README.md
index f796b3e..3c2a505 100644
--- a/README.md
+++ b/README.md
@@ -18,6 +18,7 @@ Basically:
- All existing administrators pull their key and sign it
- An existing administrator reencrypt the keystore with this new key and push it
- The new administrator clone the repo and check that they can decrypt the secrets
+ - Finally, the new administrator must choose a password to operate over SSH with `./passwd prod rick` where `rick` is the target username
## How to create files for a new zone
@@ -26,11 +27,19 @@ Basically:
Basically:
- Create your `site` file in `cluster/prod/site/` folder
- Create your `node` files in `cluster/prod/node/` folder
- - Add your wireguard configuration to `cluster/prod/cluster.nix`
+ - Add your wireguard configuration to `cluster/prod/cluster.nix` (you will have to edit your NAT config manually)
## How to deploy a Nix configuration on a fresh node
-*To be written*
+We suppose that the node name is `datura`.
+Start by doing the deployment one node at a time, you will have plenty of time
+in your operator's life to break everything through automation.
+
+Run:
+ - `./deploy_wg prod datura` - to generate wireguard's keys
+ - `./deploy_nixos prod datura` - to deploy the nix configuration files (need to be redeployed on all nodes as hte new wireguard conf is needed everywhere)
+ - `./deploy_password prod datura` - to deploy user's passwords
+ - `./deploy_pki prod datura` - to deploy Nomad's and Consul's PKI
## How to operate a node