A package has one owning module, and sshd already owns openssh on every node — assigning ssh-client was refused for both declaring it, and the refusal left every node unresolvable until it was unassigned. Owning it was wrong besides: unassigning ssh-client would have removed the package sshd serves from. The client binary ships in the package sshd holds.
22 lines
745 B
JSON
22 lines
745 B
JSON
{
|
|
"module": "ssh-client",
|
|
"version": "1",
|
|
"resources": [
|
|
{
|
|
"id": "ssh-dir",
|
|
"type": "directory",
|
|
"path": "${machine:account-home}/.ssh",
|
|
"owner": "${machine:account}",
|
|
"mode": "0700"
|
|
}
|
|
],
|
|
"facts": {
|
|
"ssh-config": {
|
|
"path": ".ssh/config",
|
|
"home": true,
|
|
"shared": true,
|
|
"template": "# The mesh's Host blocks — every other node, so `ssh <node>` reaches it as the\n# right account. This region is replaced whenever a node joins, leaves or is\n# renamed; the rest of this file is yours and is kept untouched.\n{{range .Machines}}{{if ne .Name $.Node}}\nHost {{.Name}} {{.FQDN}}\n HostName {{.FQDN}}\n{{if .Account}} User {{.Account}}\n{{end}}{{end}}{{end}}"
|
|
}
|
|
}
|
|
}
|