Skip to content

Commit 98b93ec

Browse files
feat(#347): add managed motd banner (#362)
* feat(#347): add managed motd banner * fix(#347): adjust motd for what prod already shows * fix(#347): disable ubuntu pro motd, enable header, clean up psf motd * chore(#347): apply lint * Update salt/base/motd.sls Co-authored-by: Ee Durbin <[email protected]> * Update salt/base/motd.sls Co-authored-by: Ee Durbin <[email protected]> * Update salt/base/motd.sls * Update salt/base/motd.sls * Update salt/base/motd.sls --------- Co-authored-by: Ee Durbin <[email protected]>
1 parent ba14e1e commit 98b93ec

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

salt/base/motd.sls

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/etc/update-motd.d/10-help-text:
2+
file.managed:
3+
- mode: "0644"
4+
- replace: False
5+
6+
/etc/update-motd.d/60-unminimize:
7+
file.managed:
8+
- mode: "0644"
9+
- replace: False
10+
11+
/etc/update-motd.d/91-contract-ua-esm-status:
12+
file.managed:
13+
- mode: "0644"
14+
- replace: False
15+
16+
/etc/update-motd.d/99-psf:
17+
file.managed:
18+
- mode: "0755"
19+
- contents: |
20+
#!/bin/bash
21+
22+
cat << 'EOF'
23+
24+
============================================================
25+
__ _ _ _
26+
/ _\ __ _| | |_ /\/\ __ _ _ __ __ _ __ _ ___ __| |
27+
\ \ / _` | | __| / \ / _` | '_ \ / _` |/ _` |/ _ \/ _` |
28+
_\ \ (_| | | |_ / /\/\ \ (_| | | | | (_| | (_| | __/ (_| |
29+
\__/\__,_|_|\__| \/ \/\__,_|_| |_|\__,_|\__, |\___|\__,_|
30+
|___/
31+
============================================================
32+
33+
!! WARNING !!: This host is managed by the PSF Salt infrastructure.
34+
Any changes made to this host may be reverted.
35+
36+
Repository: https://github.com/python/psf-salt
37+
38+
EOF
39+
40+
echo ""

salt/top.sls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ base:
1717
- tls
1818
- rsyslog
1919
- datadog
20+
- base.motd
2021

2122
'backup-server':
2223
- match: nodegroup

0 commit comments

Comments
 (0)