Skip to content

Commit 27056a0

Browse files
committed
Reference terraform module in the README
1 parent 4b65ea4 commit 27056a0

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

README.md

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
[![Docker Repository on Quay](https://quay.io/repository/utilitywarehouse/ssh-key-agent/status "Docker Repository on Quay")](https://quay.io/repository/utilitywarehouse/ssh-key-agent)
44

5-
Companion service for https://github.com/utilitywarehouse/ssh-key-manager runs on the host and populates `authorized_keys` file based on the groups provided.
5+
Companion service for https://github.com/utilitywarehouse/ssh-key-manager runs
6+
on the host and populates `authorized_keys` file based on the groups provided.
67

78
### client
89

@@ -26,23 +27,9 @@ docker will create it as directory:
2627
> exist on the Docker host, -v will create the endpoint for you. It is always
2728
> created as a directory.
2829
29-
```
30-
[Unit]
31-
Description=ssh-key-agent
32-
After=docker.service
33-
Requires=docker.service
34-
[Service]
35-
Restart=on-failure
36-
ExecStartPre=-/bin/mkdir -p /home/user/.ssh/
37-
ExecStartPre=-/usr/bin/touch /home/user/.ssh/authorized_keys
38-
ExecStart=/bin/sh -c 'docker run --name=%p_$(uuidgen) --rm \
39-
-v /home/user/.ssh/authorized_keys:/authorized_keys \
40-
-e SKA_KEY_URI=https://[app/bucket]/authmap \
41-
42-
-e SKA_AKF_LOC=/authorized_keys \
43-
-e SKA_INTERVAL=60 \
44-
quay.io/utilitywarehouse/ssh-key-agent'
45-
ExecStop=/bin/sh -c 'docker stop -t 3 "$(docker ps -q --filter=name=%p_)"'
46-
[Install]
47-
WantedBy=multi-user.target
48-
```
30+
example Systemd service: [./terraform/resources/ssh-key-agent.service](./terraform/resources/ssh-key-agent.service)
31+
32+
### terraform module
33+
34+
Repository includes a terraform module, for use instructions have a look at
35+
[./terraform/README.md](./terraform/README.md)

0 commit comments

Comments
 (0)