Jörg Thalheim
8b907bb53c
update terraform documentation
2024-07-01 11:32:17 +00:00
misumisumi
fde12bc1f0
Fix: an error where a directory could not be created when there were multiple decrypt keys
2024-07-01 11:32:17 +00:00
misumisumi
5ccebbc4cc
Accept nix-option in terraform
2024-07-01 11:32:17 +00:00
Michael Hoang
9216d7713b
terraform/install: deal with symlinks better
2024-06-30 14:05:24 +00:00
Sizhe Zhao
d8b8cc69b0
feat(terraform): don't mention rsync
2024-05-26 09:13:58 +00:00
Victor Hugo Aguiar Pacce
88a60aa8b8
Allow installs through terraform to work on different ports
...
Signed-off-by: Victor Hugo Aguiar Pacce <victor.pacce@ossystems.com.br>
2024-04-29 16:19:09 +00:00
Jörg Thalheim
dfa627fdfa
terraform: link to nixos wiki as an example
2024-04-06 17:43:43 +00:00
Bruno Bigras
c34fd217b1
terraform/all-in-one.md: add syntax highlighting ( #292 )
2024-03-22 10:22:35 +01:00
Jörg Thalheim
9e34fce5da
Merge pull request #276 from srounce/patch-1
...
feat(terraform): re-export store path result from all-in-one module
2024-02-22 06:25:52 +07:00
JayDeLux
7e7bb3b367
Typo
2024-02-12 15:11:19 +01:00
Jonas Chevalier
d16702387b
Update all-in-one.md
2024-01-23 21:08:04 +01:00
Samuel Rounce
f71c9427c8
Add result output to all-in-one.md
2024-01-23 12:53:07 +00:00
Samuel Rounce
60d3b38bcb
feat(terraform): re-export store path result from all-in-one
2024-01-23 12:05:32 +00:00
Michael Hoang
38d8eea71f
terraform/install: support build_on_remote
2024-01-01 01:05:57 +00:00
Pol Dellaiera
9c3de7d78d
Replace numtide
with nix-community
2023-11-23 09:09:02 +00:00
Jörg Thalheim
98f1b5083c
terraform: change captilization
2023-09-17 16:47:53 +02:00
Jörg Thalheim
05188edc51
terraform/docs: improve terraform modules overview
2023-09-17 15:37:56 +02:00
Jörg Thalheim
ad11b67610
terraform/docs: link to modules and give an overview what each one does
2023-09-17 14:51:09 +02:00
Jörg Thalheim
535c3ee272
add terraform examples
2023-09-17 12:41:57 +00:00
Jörg Thalheim
6ab330d99e
generate terraform documentation
2023-09-17 08:40:45 +00:00
Jörg Thalheim
2bc305e1cb
terraform: add no-reboot option
2023-09-05 15:23:15 +02:00
Jörg Thalheim
bd3f79f11d
extend terraform module to support extra_files_script
2023-09-05 15:23:15 +02:00
Jörg Thalheim
50e1df362e
Revert "wip: extend terraform module to support extra_files_script"
...
This reverts commit 9661aeffcb
.
This was pushed by accident to main
2023-09-05 15:22:07 +02:00
Jörg Thalheim
9661aeffcb
wip: extend terraform module to support extra_files_script
2023-09-05 15:20:28 +02:00
a-kenji
f417afd489
chore: fix typos
2023-08-22 13:55:28 +02:00
Jean-François Roche
8ba2cbf6f4
terraform: do not show private key in local-exec logs
...
While running terraform with and without verbose mode enabled, we don't want the private key content to be shown in the terraform apply output.
2023-06-07 01:19:41 +02:00
dantefromhell
39da91a2e2
Skips nixos-rebuild if stop-after-disko is true
2023-06-05 12:40:43 +02:00
dantefromhell
31c332f3c1
Add stop_after_disko logic to all-in-one module
2023-06-05 12:40:43 +02:00
dantefromhell
28593f799d
Fix variable description in install module
2023-06-05 12:40:43 +02:00
dantefromhell
c0b3ac4e45
Add var.stop_after_disko to all-in-one module
2023-06-05 12:40:43 +02:00
dantefromhell
aee8a3af7b
Add stop_after_disko logic to install module
2023-06-05 12:40:43 +02:00
dantefromhell
1643769f0a
Add var.stop_after_disko to install step
2023-06-05 12:40:43 +02:00
Jean-François Roche
a82a84da8a
terraform/nixos-rebuild: do not ignore deploy errors by default
...
Add option to ignore systemd errors during deployment.
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2023-04-04 17:10:28 +02:00
Jean-François Roche
4371932193
fix(rebuild): use sudo if rebuild with another user than root
...
In order to switch the NixOS configuration, we must have root access.
If we are connecting to the target host with a non-root user, we use the "sudo" command.
We could instead use `nixos-rebuild --use-remote-sudo --target-host` but it
would evaluate the nixos system again.
2023-03-31 21:33:05 +02:00
zimbatm
eafa9cfce5
nixos-rebuild: fix double trap
...
Only one callback can be installed per signal in Bash. Because the
previous `trap` removes the whole temporary workdir, the one around the
SSH key is redundant.
2023-03-29 16:17:29 +02:00
zimbatm
1120774e38
nixos-rebuild: fix SSH key security race
...
Make sure the ssh_key file is always 0700
2023-03-29 16:17:28 +02:00
Samuel Rounce
5adb698f51
fix(terraform/nixos-rebuild): typo in variables.sh
2023-03-29 09:09:21 +01:00
Jean-François Roche
16143cd8c0
terraform: allow nixos-rebuild to use specified private key for deployment
...
`nixos-rebuild/deploy.sh` script enable ssh authentication with a given private key
through the `SSH_KEY` environment variable.
Add additional variable for the private key used for the deployment.
To encourage the use of ssh-agent and discourage the storage of deployment keys in the terraform state
we do not set the install ssh key as the default for the deployment key.
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2023-03-28 00:28:48 +02:00
Jörg Thalheim
48fe2fa8cc
nixos-rebuild: allow to change deploy user
2023-03-04 13:53:20 +01:00
Jörg Thalheim
c2f70ed844
nixos-rebuild: allow to change deploy user
2023-03-03 14:47:03 +01:00
Jörg Thalheim
c0c5fcce92
make nix find the right flake
2023-03-01 11:36:25 +01:00
Jörg Thalheim
ed67349b96
terraform: improve module description
2023-02-23 17:10:09 +01:00
Jörg Thalheim
29b0f1b5f2
terraform: add instance_id to trigger reinstall
2023-02-23 16:15:52 +01:00
Jörg Thalheim
ed0ab16c58
terraform: drop dependency on the retry program
2023-02-23 16:15:52 +01:00
Jörg Thalheim
ac7f3b86a5
terraform: actually passthru kexec-url to nixos-anywhere
2023-02-22 16:42:55 +01:00
Jörg Thalheim
2abdb32c67
terraform/nix-build: fix building from non-flake
2023-02-22 16:42:55 +01:00
Jörg Thalheim
23bbd22fb2
add debug logging option
2023-02-22 16:42:55 +01:00
Jörg Thalheim
57a6ec5ffc
terraform/install: fix nixos-anywhere flake attribute name
2023-02-22 16:42:49 +01:00
lassulus
411fb9bd76
terraform: init modules
2023-02-14 07:34:24 +01:00