aboutsummaryrefslogtreecommitdiff
path: root/nixops
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-24 13:33:32 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-05-24 13:34:03 +0200
commitc58dcd70150d63e01dfe01adbb38244598e6a881 (patch)
tree1e3a71f7722108a92cb3e59471cbc06b91e655ab /nixops
parentd823e010d653a6bf33ff232da5f90103be7515b8 (diff)
downloadNix-c58dcd70150d63e01dfe01adbb38244598e6a881.tar.gz
Nix-c58dcd70150d63e01dfe01adbb38244598e6a881.tar.zst
Nix-c58dcd70150d63e01dfe01adbb38244598e6a881.zip
Migrate documentation
Diffstat (limited to 'nixops')
-rw-r--r--nixops/migrate_hetzner.md20
1 files changed, 0 insertions, 20 deletions
diff --git a/nixops/migrate_hetzner.md b/nixops/migrate_hetzner.md
deleted file mode 100644
index c7fbe20..0000000
--- a/nixops/migrate_hetzner.md
+++ /dev/null
@@ -1,20 +0,0 @@
1nixops show a deprecation message at each deployment because hetzner
2info is outdated. To fix it:
3
4 cp -a ~/.nixops ~/.nixops.bak
5
6 nixops export --all > all.json
7
8 network=$(cat all.json| jq -r '."cef694f3-081d-11e9-b31f-0242ec186adf".resources.eldiron."hetzner.networkInfo"' | jq -r -c '.networking.interfaces.eth0 = { "ipv4": { "addresses": [ { "address": .networking.interfaces.eth0.ipAddress, "prefixLength": .networking.interfaces.eth0.prefixLength } ] } }')
9
10 cat all.json | jq --arg network "$network" '."cef694f3-081d-11e9-b31f-0242ec186adf".resources.eldiron."hetzner.networkInfo" = $network' > all_new.json
11
12 nixops delete --force -d eldiron
13
14 nixops import < all_new.json
15
16 rm all.json all_new.json
17
18*check that everything works*, then:
19
20 rm -rf ~/.nixops.bak