diff --git a/terranix/containers/website/default.nix b/terranix/containers/website/default.nix index 623e921..36c9815 100644 --- a/terranix/containers/website/default.nix +++ b/terranix/containers/website/default.nix @@ -6,9 +6,6 @@ let in { resource."nomad_job"."website" = nomadJob { - lifecycle.replace_triggered_by = [ - "resource.nomad_job.website.hcl2[0].vars[\"flake_path\"]" - ]; jobspec = ./job.hcl; vars = { flake_ref = "${vars.flake_host}?rev=${vars.flake_rev}&ref=${vars.flake_ref}"; diff --git a/terranix/lib/nomad_job.nix b/terranix/lib/nomad_job.nix index 0c1ac5d..1b4773c 100644 --- a/terranix/lib/nomad_job.nix +++ b/terranix/lib/nomad_job.nix @@ -9,11 +9,4 @@ enabled = true; inherit vars; }; - lifecycle = { - ignore_changes = [ - "hcl2[0].vars[\"flake_ref\"]" - "hcl2[0].vars[\"flake_sha\"]" - ]; - create_before_destroy = true; - }; } // builtins.removeAttrs args [ "jobspec" "vars" ]