Skip to content

Commit

Permalink
Merge pull request #191 from input-output-hk/fix-core-user-data
Browse files Browse the repository at this point in the history
fix: TF core workspace user data destructive change
  • Loading branch information
manveru committed Sep 28, 2022
2 parents 0e00ddd + 6994c61 commit a145656
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/terraform.nix
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@

# This user data only injects the cache and nix3 config so that
# deploy-rs can take it from there (efficiently)
#
# CAUTION: Without a special migration procedure, such as TF targeting,
# changing this user data will cause a forced destroy and
# re-create of all core nodes on the next TF core workspace plan/apply.
userDataDefaultNixosConfigCore = ''
### https://nixos.org/channels/nixpkgs-unstable nixos
{ pkgs, config, ... }: {
Expand All @@ -86,7 +90,7 @@
experimental-features = nix-command flakes
''';
binaryCaches = [
"https://cache.iog.io"
"https://hydra.iohk.io"
"${cfg.s3Cache}"
];
binaryCachePublicKeys = [
Expand Down

0 comments on commit a145656

Please sign in to comment.