cumin: use %t, thanks @lelutin authored by anarcat's avatar anarcat
...@@ -88,12 +88,13 @@ After=network.target ...@@ -88,12 +88,13 @@ After=network.target
ExecStart=-/usr/bin/ssh -W localhost:8080 puppetdb-01.torproject.org ExecStart=-/usr/bin/ssh -W localhost:8080 puppetdb-01.torproject.org
StandardInput=socket StandardInput=socket
StandardError=journal StandardError=journal
Environment=SSH_AUTH_SOCK=/run/user/1000/gnupg/S.gpg-agent.ssh Environment=SSH_AUTH_SOCK=%t/gnupg/S.gpg-agent.ssh
``` ```
In the file above, change the path given to `SSH_AUTH_SOCK` so that it matches The `Environment` variable is necessary for the ssh command to be able
your user ID. This environment variable is necessary for the ssh command to be to request the key from your YubiKey, this may vary according to your
able to request the key from your yubi key. authentication system. It's only there because systemd might not have
the right variables from your environment, depending on how it's started.
And you'll need the following for socket activation, in And you'll need the following for socket activation, in
`~/.config/systemd/user/puppetdb-tunnel.socket`: `~/.config/systemd/user/puppetdb-tunnel.socket`:
... ...
......