figlet - display large characters made up of ordinary screen characters

Ein FIGlet-Font ist eine schmückende Schriftart, die zur Darstellung von Buchstaben und Zahlen aus ASCII-Zeichen zusammengesetzt wird. FIGlet-Fonts sind Teil der ASCII-Art. Die Bezeichnung kommt ursprünglich von einem Computerprogramm namens FIGlet, das diese Schriftarten zur Erstellung von ASCII-Art verwendet.

Installation

apt install figlet

Im Ordner /etc/update-motd.d/ die Datei 00-ffhf-header anlegen.

#!/bin/sh
#
#    00-header - create the header of the MOTD
#    Copyright (C) 2009-2010 Canonical Ltd.
#
#    Authors: Dustin Kirkland <kirkland@canonical.com>
#
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License along
#    with this program; if not, write to the Free Software Foundation, Inc.,
#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

if [ -f /usr/bin/figlet ]; then /usr/bin/figlet "Freifunk Herford"; fi

Beispiel Ausgabe:

 _____         _  __             _      _   _            __               _
|  ___| __ ___(_)/ _|_   _ _ __ | | __ | | | | ___ _ __ / _| ___  _ __ __| |
| |_ | '__/ _ \ | |_| | | | '_ \| |/ / | |_| |/ _ \ '__| |_ / _ \| '__/ _` |
|  _|| | |  __/ |  _| |_| | | | |   <  |  _  |  __/ |  |  _| (_) | | | (_| |
|_|  |_|  \___|_|_|  \__,_|_| |_|_|\_\ |_| |_|\___|_|  |_|  \___/|_|  \__,_|

Welcome to Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-69-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Thu Nov 21 02:02:19 CET 2019

  System load:  0.24               Users logged in:        0
  Usage of /:   26.9% of 18.61GB   IP address for ens3:    188.68.40.226
  Memory usage: 17%                IP address for hfBR:    10.34.0.5
  Swap usage:   0%                 IP address for exitVPN: 10.45.10.6
  Processes:    112

 * Kata Containers are now fully integrated in Charmed Kubernetes 1.16!
   Yes, charms take the Krazy out of K8s Kata Kluster Konstruction.

     https://ubuntu.com/kubernetes/docs/release-notes

 * Canonical Livepatch is available for installation.
   - Reduce system reboots and improve kernel security. Activate at:
     https://ubuntu.com/livepatch

0 Software-Pakete können aktualisiert werden.
0 Aktualisierungen sind Sicherheitsaktualisierungen.

Salt State File

figlet.sls

# figlet - display large characters made up of ordinary screen characters

{% set figlet = salt['grains.filter_by']({
  'Debian': {'pkg': 'figlet'},
}, default='Debian') %}

{{ figlet.pkg }}:
  pkg.installed:
    - name: {{ figlet.pkg }}

/etc/update-motd.d/00-ffhf-header:
  file.managed:
    - name: /etc/update-motd.d/00-ffhf-header
    - source: salt://gateway/etc/update-motd.d/00-ffhf-header
    - mode: 755
    - user: root
    - group: root
    - makedirs: True