sparse-twilight-39311
12/04/2024, 8:51 AMclever-sunset-76585
12/04/2024, 9:10 AMsparse-twilight-39311
12/04/2024, 9:58 AMsparse-twilight-39311
12/04/2024, 9:59 AMclever-sunset-76585
12/04/2024, 2:42 PMpulumi-random
provider's RandomPassword
?sparse-twilight-39311
12/04/2024, 6:50 PMsparse-twilight-39311
12/04/2024, 6:50 PMclever-sunset-76585
12/04/2024, 6:53 PMsparse-twilight-39311
12/04/2024, 6:58 PMsparse-twilight-39311
12/09/2024, 7:18 PMsparse-twilight-39311
12/09/2024, 7:20 PM_, err = pulumi_local.NewCommand(ctx,
"NixOS installation",
&pulumi_local.CommandArgs{
Create: pulumi.String(fmt.Sprintf(`nixos-anywhere -i %s --flake %s root@%s `, sshKeyIdentityFileName, flake, ipAddress)),
},
)
the sshKeyIdentityFileName
is actually a tempfile which will be different on every invocation.
what's needed so that it doesn't try to "create" after it successfully ran once?clever-sunset-76585
12/09/2024, 8:50 PMpulumi-command
, it looks like the way you've used it should do exactly that -- run once on creation. But based on your question, I am assuming that's not what you are observing? Do you have this wrapped inside another component by any chance? Can you reveal a bit more about what is going on around this snippet?