File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 8
8
owner : buildkite-agent
9
9
group : buildkite-agent
10
10
11
+ /etc/systemd/system/refresh_authorized_keys.service :
12
+ exists : true
13
+
14
+ /etc/systemd/system/refresh_authorized_keys.timer :
15
+ exists : true
16
+
11
17
/var/lib/buildkite-agent/builds :
12
18
filetype : directory
13
19
exists : true
@@ -128,6 +134,13 @@ command:
128
134
wget --version :
129
135
exit-status : 0
130
136
137
+ # Check refresh authorized keys gear is present, but disabled.
138
+ # disabled: The unit file is not enabled, but contains an [Install] section with installation instructions.
139
+ systemctl is-enabled refresh_authorized_keys.timer :
140
+ exit-status : 1
141
+ stdout :
142
+ - /disabled/
143
+
131
144
systemctl is-enabled docker-gc.timer :
132
145
exit-status : 0
133
146
Original file line number Diff line number Diff line change 1
1
[Unit]
2
2
Description =Download ssh authorized_keys file from s3
3
- Wants =refresh_authorized_keys.service
4
3
5
4
[Service]
6
5
Type =oneshot
7
6
ExecStart =/usr/local/bin/refresh_authorized_keys
8
-
9
- [Install]
10
- WantedBy =multi-user.target
Original file line number Diff line number Diff line change @@ -25,3 +25,6 @@ sudo curl -Lf -o /usr/bin/lifecycled \
25
25
sudo chmod +x /usr/bin/lifecycled
26
26
sudo curl -Lf -o /etc/systemd/system/lifecycled.service \
27
27
https://raw.githubusercontent.com/buildkite/lifecycled/${LIFECYCLED_VERSION} /init/systemd/lifecycled.unit
28
+
29
+ echo " Adding authorized keys systemd units..."
30
+ sudo cp /tmp/conf/ssh/systemd/* /etc/systemd/system
You can’t perform that action at this time.
0 commit comments