Skip to content

Commit 11b07e2

Browse files
carmstrongMatthew Fisher
authored andcommitted
feat(contrib/coreos/user-data): create Deis motd
With the upgrade to CoreOS 310.0.0 in #911, the CoreOS motd lists failed units, 3 of which we expect to be failed (since we are stopping the reboot manager service). It probably makes sense for us to manage our own MOTD anyway, with Deis support information. This commit works for both CoreOS 298.0.0 and CoreOS 310.0.0.
1 parent 67ce450 commit 11b07e2

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

contrib/coreos/user-data

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,17 @@ coreos:
6666
Type=oneshot
6767
ExecStart=/usr/bin/systemctl stop update-engine.service
6868
ExecStartPost=/usr/bin/systemctl mask update-engine.service
69+
- name: write-deis-motd.service
70+
command: start
71+
content: |
72+
[Unit]
73+
Description=write the Deis motd
74+
ConditionFileNotEmpty=/run/deis/motd
75+
76+
[Service]
77+
Type=oneshot
78+
ExecStartPre=/usr/bin/rm /etc/motd
79+
ExecStart=/usr/bin/ln -s /run/deis/motd /etc/motd
80+
write_files:
81+
- path: /run/deis/motd
82+
content: " \e[31m* * \e[34m* \e[32m***** \e[39mddddd eeeeeee iiiiiii ssss\n\e[31m* * \e[34m* * \e[32m* * \e[39md d e e i s s\n \e[31m* * \e[34m***** \e[32m***** \e[39md d e i s\n\e[32m***** \e[31m* \e[34m* * \e[39md d e i s\n\e[32m* * \e[31m* * \e[34m* * \e[39md d eee i sss\n\e[32m***** \e[31m* * \e[34m***** \e[39md d e i s\n \e[34m* \e[32m***** \e[31m* * \e[39md d e i s\n \e[34m* * \e[32m* * \e[31m* * \e[39md d e e i s s\n\e[34m***** \e[32m***** \e[31m* * \e[39mddddd eeeeeee iiiiiii ssss\n\n\e[39mWelcome to Deis!\n"

0 commit comments

Comments
 (0)