Allow ssh config hostnames #49

Merged
J-Swift merged 3 commits from J-Swift/feature/allow-ssh-config-hostnames into master 2023-12-11 18:35:57 +00:00
Showing only changes of commit 279c5c55eb - Show all commits

View file

@ -32,6 +32,10 @@ Below is a minimal example:
_module.args.nixinate = { _module.args.nixinate = {
host = "itchy.scratchy.com"; host = "itchy.scratchy.com";
sshUser = "matthew"; sshUser = "matthew";
# Or optionally pass a 'short' hostname that is defined in ssh config
sshConfigHost = "itchy-scratchy";
buildOn = "remote"; # valid args are "local" or "remote" buildOn = "remote"; # valid args are "local" or "remote"
substituteOnTarget = true; # if buildOn is "local" then it will substitute on the target, "-s" substituteOnTarget = true; # if buildOn is "local" then it will substitute on the target, "-s"
hermetic = false; hermetic = false;
@ -91,6 +95,11 @@ Connection to itchy.scratchy.com closed.
A string representing the username a machine to connect to via ssh. A string representing the username a machine to connect to via ssh.
- `sshConfigHost` *`string`*
A string representing an entry in ssh config. If provided, it takes precedence
over `host` and `sshUser`.
- `buildOn` *`"remote"`* or *`"local"`* - `buildOn` *`"remote"`* or *`"local"`*
- `"remote"` - `"remote"`