summaryrefslogtreecommitdiffstats
path: root/mcp/reclass/classes/system/linux/system/motd/dynamic.yml
blob: 9589e8ef90e79da63989b359d875a69deaec2210 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
parameters:
  linux:
    system:
      motd:
        - warning: |
            #!/bin/sh
            printf "WARNING: This is private network.\n"
            printf "  Unauthorized access is strictly prohibited.\n"
            printf "\n"
        - info: |
            #!/bin/sh
            printf -- "------------------------------------------------------\n"
            printf " Hostname     |  $(hostname)\n"
            printf " Domain       |  $(hostname -d)\n"
            printf " System       |  %s\n" "$(lsb_release -s -d)"
            printf " Kernel       |  %s\n" "$(uname -r)"
            printf " Uptime       |  %s\n" "$(uptime -p)"
            printf " Load Average |  %s\n" "$(cat /proc/loadavg | awk '{print $1", "$2", "$3}')"
            printf -- "------------------------------------------------------\n"