You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes it's useful to pass the SSH key content directly.
Change the default of `ssh_agent` to only enable when `ssh_private_key`
or `ssh_private_key_file` is being passed.
Also, refactor things a little bit.
| NIX\_PATH | Allow to pass custom NIX\_PATH. Ignored if `-`. |`string`|`"-"`| no |
102
+
| NIX\_PATH | Allow to pass custom NIX\_PATH|`string`|`""`| no |
103
103
| build\_on\_target | Avoid building on the deployer. Must be true or false. Has no effect when deploying from an incompatible system. Unlike remote builders, this does not require the deploying user to be trusted by its host. |`string`|`false`| no |
104
104
| config | NixOS configuration to be evaluated. This argument is required unless 'nixos\_config' is given |`string`|`""`| no |
105
105
| config\_pwd | Directory to evaluate the configuration in. This argument is required if 'config' is given |`string`|`""`| no |
106
106
| extra\_build\_args | List of arguments to pass to the nix builder |`list(string)`|`[]`| no |
107
107
| extra\_eval\_args | List of arguments to pass to the nix evaluation |`list(string)`|`[]`| no |
108
108
| keys | A map of filename to content to upload as secrets in /var/keys |`map(string)`|`{}`| no |
109
109
| nixos\_config | Path to a NixOS configuration |`string`|`""`| no |
110
-
| ssh\_agent | Whether to use an SSH agent |`bool`|`true`| no |
111
-
| ssh\_private\_key\_file | Path to private key used to connect to the target\_host. Ignored if `-` or empty. |`string`|`"-"`| no |
112
-
| target\_host | DNS host to deploy to |`any`| n/a | yes |
110
+
| ssh\_agent | Whether to use an SSH agent. True if not ssh\_private\_key is passed |`bool`|`null`| no |
111
+
| ssh\_private\_key | Content of private key used to connect to the target\_host |`string`|`""`| no |
112
+
| ssh\_private\_key\_file | Path to private key used to connect to the target\_host |`string`|`""`| no |
113
+
| target\_host | DNS host to deploy to |`string`| n/a | yes |
113
114
| target\_port | SSH port used to connect to the target\_host |`number`|`22`| no |
114
115
| target\_system | Nix system string |`string`|`"x86_64-linux"`| no |
115
116
| target\_user | SSH user used to connect to the target\_host |`string`|`"root"`| no |
0 commit comments