@ -363,7 +363,8 @@
distro, d
Valid if the value matches the distro. Distro is calculated by
running lsb_release -si.
running lsb_release -si or by inspecting the ID from /etc/os-
release.
os, o Valid if the value matches the OS. OS is calculated by running
uname -s.
@ -376,7 +377,7 @@
hostname, h
Valid if the value matches the short hostname. Hostname is cal-
culated by running hostname , and trimming off any domain.
culated by running uname -n , and trimming off any domain.
default
Valid when no other alternate is valid.
@ -497,7 +498,7 @@
------------- ------------- --------------------------
yadm.class YADM_CLASS Locally defined yadm class
yadm.distro YADM_DISTRO lsb_release -si
yadm.hostname YADM_HOSTNAME hostname (without domain)
yadm.hostname YADM_HOSTNAME uname -n (without domain)
yadm.os YADM_OS uname -s
yadm.user YADM_USER id -u -n
yadm.source YADM_SOURCE Template filename
@ -505,6 +506,9 @@
NOTE: The OS for "Windows Subsystem for Linux" is reported as "WSL",
even though uname identifies as "Linux".
NOTE: If lsb_release is not available, DISTRO will be the ID specified
in /etc/os-release.
Examples:
whatever##template with the following content