Skip to content

Commit

Permalink
convert deprecated use
Browse files Browse the repository at this point in the history
of local_file/sensitive_content to local_sensitive_file/content
  • Loading branch information
Shay Bergmann committed May 17, 2022
1 parent 986f7aa commit 66dc913
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/terraform/core.nix
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,16 @@ in {

resource.tls_private_key.private_key = { algorithm = "RSA"; };

resource.local_file = {
resource.local_sensitive_file = {
"ssh-${config.cluster.name}" = lib.mkIf config.cluster.generateSSHKey {
filename = "secrets/ssh-${config.cluster.name}";
sensitive_content =
content =
var "tls_private_key.${config.cluster.name}.private_key_pem";
file_permission = "0600";
};
};

resource.local_file = {
"ssh-${config.cluster.name}-pub" =
lib.mkIf config.cluster.generateSSHKey {
filename = "secrets/ssh-${config.cluster.name}.pub";
Expand Down

0 comments on commit 66dc913

Please sign in to comment.