commit - 8d7cfd44d5664178241bbc8515145b27f5bc40ca
commit + 35f45d4555abd8ce0f441d8e2ccac344df592146
blob - d9d7b278f84e59567f787f5691f9061cf1b582b1
blob + 5d7b8916a48c90a68c1075ae0b5bff4110351794
--- Makefile
+++ Makefile
.POSIX:
PREFIX:=/usr/local
SHELLS=ksh93 ksh yash sh
-UTILITY_VERSION=0.0.1
+UTILITY_VERSION=0.0.2
UTILITY=$(PWD)/r7
SSH_ID=$(HOME)/.ssh/managed/inda.re/id_ed25519_cobalt
SSH_TEST_NODES=tools0
rm -fr _release/r7-$(UTILITY_VERSION)
mkdir -p _release/r7-$(UTILITY_VERSION)
cp r7 r7.1 Makefile README.md _release/r7-$(UTILITY_VERSION)
+ cp -r groups/ _release/r7-$(UTILITY_VERSION)
cd _release && tar cfv r7-$(UTILITY_VERSION).tar r7-$(UTILITY_VERSION)
gzip -9 _release/r7-$(UTILITY_VERSION).tar
cp _release/r7-$(UTILITY_VERSION).tar.gz _release/r7-latest.tar.gz
@for shell in ${SHELLS}; do \
ashell=$$(command -v $$shell || true); \
if test -x "$$ashell"; then \
- if time make tests SHELL=$$ashell; then \
+ if time make tests SHELL=$$ashell SH=$$ashell; then \
: \
else \
failed="$$(basename "$$ashell") $$failed"; \
fi; \
else \
- notfound="$$shell $$notfound";\
+ notfound="$$shell $$notfound"; \
fi; \
done; \
echo; \
echo 'aaa' > testdir/workdir2/groups/grouplib.dir/subdir/subitem
echo 'bbb' > testdir/workdir2/groups/grouplib.dir/subdir/subitem2
cp testdir/testfile2 testdir/workdir2/groups/grouplib.dir/
- cd testdir/workdir2 && . $(UTILITY) && \
+ cd testdir/workdir2 && set -e && . $(UTILITY) && \
echo 'prefix grouplib' > site-config && \
echo "group grouplib '.*'" >> site-config && \
$R run-config && $R output-dump && $R info && \
blob - a08b9a6254071f9ce31a172e3bc64524089aa37f
blob + 451dc64e5bbf4f5281f2bfcceaea01a0fefa182a
--- README.md
+++ README.md
title: R7
section: 1
header: User Manual
-footer: v0.0.1
date: Tue Jun 3 2025
---
+## Version
+
+$version$
+
## Tutorial
### Introduction
file _(See below)_.
The idea is to store hosts configurations in `nodes/hostname` directories that
-maps each hosts `/etc` and to assign those hosts to configuration groups
-containing the directives to install the configuration and requirements.
+maps each host's `/etc` and to assign those hosts to configuration groups
+containing the directives to install the configuration and potential
+requirements.
_Nodes sub-directories are hostnames understood by the ssh client and
configuration._
### Other examples
+Inside the r7 release, a small example groups library can be found in the
+`groups` directory, that can also be browsed in the
+[repository](https://got.inda.re/?action=summary&path=r7.git).
+
#### System shell profile
Here we install the `profile` file provided in the `groupname.dir` directory or
***Usage:***
```sh
-import hostname
+import HOST
```
---
- Optional dependencies are openrsync, rsync, column, graphviz and pandoc.
- The HTML output is a work in progress.
+
+---
blob - 4c989a5603b836f070c900ebc22d08d536ab61ff
blob + d3b79a3a9daad6d46ddad3ae6b29ab5db2443c1a
--- index.md
+++ index.md
### Tarball
- [v0.0.1](https://inda.re/r7/releases/r7-0.0.1.tar.gz)
+- [v0.0.2](https://inda.re/r7/releases/r7-0.0.2.tar.gz)
- [latest](https://inda.re/r7/releases/r7-latest.tar.gz)
## Documentation
blob - 4fb29851125bf48094c006ad9c00ab130225d414
blob + 2e266f8fe67c69ebbcf4c9b375aea90e3679077f
--- r7
+++ r7
# shellcheck disable=SC2046,SC2031
# Global configuration
# ====================
-VERSION=0.0.1
+VERSION=0.0.2
: "${HOSTNAME:=$(uname -n)}"
# shellcheck disable=SC2031
blob - /dev/null
blob + e14120990286444a7989af334fe56aea0823d894 (mode 644)
--- /dev/null
+++ r7.1
+'\" t
+.\" Automatically generated by Pandoc 3.6.2
+.\"
+.TH "R7" "1" "Tue Jun 3 2025" "" "User Manual"
+.SS Version
+\f[I]v\f[R]\f[I]e\f[R]\f[I]r\f[R]\f[I]s\f[R]\f[I]i\f[R]\f[I]o\f[R]\f[I]n\f[R]
+.SS Tutorial
+.SS Introduction
+R7 is a configuration management framework made to configure nodes with
+configuration files and related operations versionned in a central
+repository.
+To remain code versionning system agnostic, manual or automated
+versionning is left to the user, via makefiles or triggered from r7
+\f[CR]site\-config\f[R] configuration file \f[I](See below)\f[R].
+.PP
+The idea is to store hosts configurations in \f[CR]nodes/hostname\f[R]
+directories that maps each host\[cq]s \f[CR]/etc\f[R] and to assign
+those hosts to configuration groups containing the directives to install
+the configuration and potential requirements.
+.PP
+\f[I]Nodes sub\-directories are hostnames understood by the ssh client
+and configuration.\f[R]
+.PP
+\f[I]Currently, r7 requires valid ssh configuration and keyfiles in the
+repository \f[CI].ssh/\f[I] directory.\f[R]
+.PP
+\f[I]Repositories can be initialized with \f[CI]rset init\f[I] or
+\f[CI]rset \-w path/to/new\-repository init\f[I], the user will then
+have to provide valid configurations and keys for \f[CI].ssh/\f[I] in
+the newly created directory.\f[R]
+.PP
+\f[I]See Technical Notes for dependencies and supported platforms.\f[R]
+.PP
+There is an example of r7 repository:
+.IP
+.EX
+\&./nodes/
+\&./nodes/hostA
+\&./nodes/hostB
+\&./nodes/hostC
+\&./groups/
+\&./groups/common
+\&./groups/test0
+\&./groups/common.dir
+\&./groups/test0.dir
+\&./.ssh/
+\&./.ssh/config
+\&./.ssh/id_ed25519_r7
+\&./.ssh/id_ed25519_r7.pub
+\&./site\-config
+.EE
+.PP
+There is an example of r7 site configuration (\f[CR]site\-config\f[R]
+file):
+.IP
+.EX
+prefix install state doc
+group common \[aq].*\[aq]
+group test0 hostB hostC
+output\-dump
+summary
+.EE
+.PP
+There is an exemple of the deployment of that configuration within the
+r7 repository:
+.IP
+.EX
+$ r7 run\-config
+\- (ok) hostA:common::install_nothing
+\- (ok) hostA:common::state_uname
+\- (ok) hostA:common::doc_tutorial
+\- (ok) hostB:common::install_nothing
+\- (ok) hostB:common::state_uname
+\- (ok) hostB:common::doc_tutorial
+\- (ok) hostC:common::install_nothing
+\- (ok) hostC:common::state_uname
+\- (ok) hostC:common::doc_tutorial
+\- (ok) hostB:test0::state_test
+\- (ok) hostC:test0::state_test
+.EE
+.PP
+In this example, everything goes fine, groups are executed on each
+related nodes, note the \f[CR]\[aq].*\[aq]\f[R] matching all hosts
+present in \f[CR]./nodes\f[R].
+Groups are POSIX shell scripts that are a collection of functions.
+.PP
+There is the \f[CR]common\f[R] group:
+.IP
+.EX
+install_nothing() \f[B]{\f[R]
+ echo Nothing installed
+\f[B]}\f[R]
+
+state_uname() \f[B]{\f[R]
+ uname \-a
+\f[B]}\f[R]
+
+doc_tutorial() \f[B]{\f[R]
+ echo \[dq]## Welcome to the R7 tutorial!\[dq]
+\f[B]}\f[R]
+.EE
+.PP
+And there is the \f[CR]test0\f[R] group:
+.IP
+.EX
+state_test() \f[B]{\f[R]
+ test 1 \-eq 1
+\f[B]}\f[R]
+.EE
+.PP
+Any function managed by \f[CR]r7\f[R] needs to be declared in the format
+\f[CR]\[ha]PREFIX_NAME()\f[R].
+.PP
+Group files names can\[cq]t contain spaces, tabs or newlines, as well
+for nodes dirnames.
+\f[I]The `:' character is not recommanded as well as it may reduce
+lisibility of the interactive output.\f[R]
+.PP
+Called groups and node directories are copied to related nodes in
+\f[CR]hostname:/tmp/r7/\f[R]:
+.IP
+.EX
+/tmp/r7/hostA/ # Contents of test.org/nodes/hostA/
+/tmp/r7/common.dir # Contents of test.org/groups/common.dir/
+/tmp/r7/test.dir # Contents of test.org/groups/test.dir
+.EE
+.PP
+Groups may have no \f[CR].dir\f[R] directory, in this case, nothing is
+copied.
+.PP
+Once the group copy is done, functions are executed in the order of the
+defined prefix (part of the \f[CR]site\-config\f[R] file shown before):
+.IP
+.EX
+prefix install state doc
+.EE
+.PP
+This means the functions matching \f[CR]\[ha]install_.*()\f[R],
+\f[CR]\[ha]state_.*()\f[R] and \f[CR]\[ha]doc_.*()\f[R] (the default
+\f[CR]R7_PREFIX\f[R]) in the respective declaration order they\[cq]re
+found in the related group file will be executed.
+.PP
+Site confiurations are shell scripts sourced by r7 after it\[cq]s
+environment is initialized, so \f[CR]prefix\f[R], \f[CR]group\f[R],
+\f[CR]output\-dump\f[R], \f[CR]summary\f[R] are the functions or aliases
+provided by r7 itself.
+This allow for scripting from the \f[CR]site\-config\f[R] file.
+Here \f[CR]output\-dump\f[R], and \f[CR]summary\f[R] are called to
+output potential errors, diffs and permissions changes at the end of the
+interactive output obtained by \f[CR]r7 run\-config\f[R].
+If nothing catched happened, nothing is added to the output.
+.SS Errors during remote execution of groups
+In our previous example, we modify \f[CR]state_test\f[R] so the
+\f[CR]test\f[R] fails.
+.IP
+.EX
+state_test() \f[B]{\f[R]
+ test 1 \-eq 2
+\f[B]}\f[R]
+.EE
+.PP
+And we re\-run the configuration to see what\[cq]s happenning.
+.IP
+.EX
+$ r7 run\-config
+\- (ok) hostA:common::install_nothing
+\- (ok) hostA:common::state_uname
+\- (ok) hostA:common::doc_tutorial
+\- (ok) hostB:common::install_nothing
+\- (ok) hostB:common::state_uname
+\- (ok) hostB:common::doc_tutorial
+\- (ok) hostC:common::install_nothing
+\- (ok) hostC:common::state_uname
+\- (ok) hostC:common::doc_tutorial
+\- (error 1) hostB:test0::state_test
+\- (error 1) hostC:test0::state_test
+\- (error 1) \- in hostB test0 state_test (1748622980)
+\- (error 1) \- in hostC test0 state_test (1748622980)
+.EE
+.PP
+The last two lines are part of the \f[CR]summary\f[R] output.
+.PP
+Let\[cq]s modify the \f[CR]state_test\f[R] function again to add some
+verbosity to it\[cq]s output.
+.PP
+\f[I]Note that we also change the return value.\f[R]
+.IP
+.EX
+state_test() \f[B]{\f[R]
+ echo something
+ false \f[B]||\f[R] \f[B]{\f[R]
+ echo >&2 failed
+ \f[B]return\f[R] 22
+ \f[B]}\f[R]
+\f[B]}\f[R]
+.EE
+.PP
+This will produce the following summary:
+.IP
+.EX
+\- (error 22) \- in hostB test0 state_test (1748622980)
+
+ something
+ failed
+
+\- (error 22) \- in hostC test0 state_test (1748622980)
+
+ something
+ failed
+.EE
+.PP
+Diffs and permissions changes are also displayed by the
+\f[CR]summary\f[R] command.
+When they\[cq]re are detected, the captured related output is shown.
+.SS Repository initialisation
+Using the \f[CR]init\f[R] command, we can specify the current or a
+specifed work directory to be created and act as an r7 repository.
+.PP
+\f[I]Automated versionning of outputs are currently let to the user, a
+recommended place would be the end of the site configuration file.\f[R]
+.PP
+This command initializes a new directory called \f[CR]test.org\f[R]:
+.IP
+.EX
+r7 \-w test.org init
+cd test.org
+.EE
+.PP
+Once this step is done, it is required to:
+.IP \[bu] 2
+Copy or initialize the ssh key to the \f[CR].ssh\f[R] folder in the
+repository created in \f[CR].ssh/id_ed25519\-r7\f[R] and
+\f[CR]./ssh/id_ed25519\-r7.pub\f[R]
+.IP \[bu] 2
+Adjust the SSH client configuration file in the repository
+\f[CR].ssh/config\f[R]
+.PP
+\f[I]Note that it is possible to import additionnal SSH configurations,
+like the user one from the SSH configuration, but it is advised to keep
+them separate.\f[R]
+.SS SSH agent handling
+The function \f[CR]unlock\f[R] can be used to set the SSH agent
+environement, this will be required for any automated operation later
+done by r7:
+.IP
+.EX
+cd test.org
+\&. $(command \-v r7) \f[I]# Sourcing r7\f[R]
+unlock
+tmux \f[B]||\f[R] screen
+.EE
+.PP
+\f[I]\f[BI]\f[B]Warning:\f[BI]\f[I] Unlock will terminate any running
+\f[CI]ssh\-agent\f[I] instances.\f[R]
+.SS Adding new hosts
+For adding a new host, the simplest way is to have pre\-configured
+\f[CR]authorized_keys\f[R] for the target user, it is then required to
+add it to the \f[CR]known_hosts\f[R] file.
+For that, it is possible to use r7 SSH functions:
+.IP
+.EX
+\&. $(command \-v r7) \f[I]# Sourcing r7\f[R]
+ssh\-accept\-new hostname
+.EE
+.PP
+If resetting the target\[cq]s user \f[CR]authorized_keys\f[R] file is
+needed, the following function can be used:
+.IP
+.EX
+\&. $(command \-v r7) \f[I]# Sourcing r7\f[R]
+ssh\-authorized\-keys\-reset hostname
+.EE
+.PP
+\f[I]\f[BI]Warning:\f[I] This will resets the SSH authorized_keys file
+for the target user (root, by default) and put the
+\f[CI].ssh/id_ed25519\-r7.pub\f[I] in place.\f[R]
+.PP
+Once the host is accepted in the \f[CR]known_hosts\f[R] file, it\[cq]s
+possible to import it automatically.
+.SS Importing hosts configurations
+\f[I]This feature currently only support OpenBSD.\f[R]
+.PP
+Avoiding to import the configuration manually is possible with the
+\f[CR]import\f[R] command:
+.IP
+.EX
+r7 import hostname
+.EE
+.PP
+Most common configuration files will be copied in a newly created
+\f[CR]nodes/hostname\f[R] sub\-directory.
+.SS Writing group files
+Group files collects fonctions related to the configuration of the
+operating system, networking, services, global and user configurations
+packages installations and application deployments.
+.PP
+By specifying the execution prefix, the user determines the order of
+execution of the functions declared in the group file.
+.IP
+.EX
+service_A() \f[B]{\f[R]
+ service A enable
+ service A restart
+\f[B]}\f[R]
+
+service_B() \f[B]{\f[R]
+ service B enable
+ service B restart
+\f[B]}\f[R]
+
+state_A() \f[B]{\f[R]
+ service A status
+\f[B]}\f[R]
+
+doc_A() \f[B]{\f[R]
+ echo \[dq]## Service A\[dq]
+ echo
+ echo \[dq]\- [url](http://test.org/)\[dq]
+ echo
+\f[B]}\f[R]
+.EE
+.PP
+\f[I]\f[BI]file\f[I]: \f[CI]groups/example1\f[I]\f[R]
+.PP
+With the default prefix, \f[CR]install\f[R], \f[CR]state\f[R],
+\f[CR]doc\f[R], the fonction that will be executed are
+\f[CR]state_A\f[R] and \f[CR]doc_A\f[R].
+To test that group file with all the functions inside we can call r7 the
+following way:
+.IP
+.EX
+r7 \-P \[aq]service state doc\[aq] group example1 hostname
+.EE
+.PP
+Or using the \f[CR]\-a\f[R] flag which will create a prefix
+automatically with all functions present in the group file:
+.IP
+.EX
+r7 \-a group example1 hostname
+.EE
+.PP
+In a real situation, this example will have failing functions because
+the \f[CR]service\f[R] command may not be found or the services named
+\f[CR]A\f[R] or \f[CR]B\f[R] does not exist.
+.IP
+.EX
+! (error 127) tools0:example1::service_A
+! (error 127) tools0:example1::service_B
+! (error 127) tools0:example1::state_A
+\- (ok) tools0:example1::doc_A
+.EE
+.PP
+We could force the group execution to stop using a combination of the
+\f[CR]\-e\f[R] flag and the \f[CR]error\f[R] group function.
+.IP
+.EX
+service_A() \f[B]{\f[R]
+ service A enable \f[B]&&\f[R]
+ service A restart \f[B]||\f[R]
+ error unable to setup service A
+\f[B]}\f[R]
+
+service_B() \f[B]{\f[R]
+ service B enable \f[B]&&\f[R]
+ service B restart \f[B]||\f[R]
+ error unable to setup service B
+\f[B]}\f[R]
+
+state_A() \f[B]{\f[R]
+ service A status
+\f[B]}\f[R]
+
+doc_A() \f[B]{\f[R]
+ echo \[dq]## Service A\[dq]
+ echo
+ echo \[dq]\- [url](http://test.org/)\[dq]
+ echo
+\f[B]}\f[R]
+.EE
+.PP
+\f[I]\f[BI]file:\f[I] \f[CI]groups/example2\f[I]\f[R]
+.PP
+Let\[cq]s run the updated example with the \f[CR]\-s\f[R] flag to
+trigger the summary output.
+.IP
+.EX
+rm \-fr _output
+r7 \-sea group example2 hostname
+.EE
+.PP
+This will produce something like the following:
+.IP
+.EX
+! (error) tools0:example2::service_A
+! (exit) tools0:example2::service_A
+\- (error 127) \- in tools0 example2 service_A (1748791986)
+
+ /bin/sh: <stdin>[155]: service: not found
+ :: 1748791986 tools0 ERROR unable to setup service A
+.EE
+.SS Using the r7 install functions
+The group library comes with the following functions that will allow
+installation of files and triggering actions if necessary:
+\f[CR]install\f[R], \f[CR]groupinstall\f[R], \f[CR]nodeinstall\f[R].
+They are all shortcuts to an internal \f[CR]r7_install\f[R] function,
+it\[cq]s just the wrappers changes directory to respectively
+\f[CR]/tmp/r7\f[R], \f[CR]/tmp/r7/groupname.dir/\f[R] and
+\f[CR]/tmp/r7/hostname/\f[R].
+.PP
+If we want to install files from the group directory we will use
+something like:
+.IP
+.EX
+install_program() \f[B]{\f[R]
+ groupinstall \-m 755 \-o root:bin my_program /usr/local/bin
+\f[B]}\f[R]
+.EE
+.PP
+\f[I]We are supposing to have the file
+\f[CI]groups/example3.dir/my_program\f[I]\f[R]
+.PP
+And if it\[cq]s something from node, we should use:
+.IP
+.EX
+install_program_config() \f[B]{\f[R]
+ nodeinstall \-m 644 \-o root:wheel my_config /etc
+\f[B]}\f[R]
+.EE
+.PP
+We can now chain the \f[CR]install\f[R] functions to configuration
+checking and initialization of programs, services or network features
+like in the following example, in which we install \f[CR]ntp.conf\f[R]
+from the deployed node directory to \f[CR]/etc\f[R]:
+.IP
+.EX
+service_ntpd() \f[B]{\f[R]
+ nodeinstall \-m 644 \-o root:wheel ntpd.conf /etc \f[B]&&\f[R]
+ ntpd \-n \f[B]&&\f[R]
+ rcctl enable ntpd \f[B]&&\f[R]
+ rcctl restart ntpd
+\f[B]}\f[R]
+.EE
+.SS Using the r7 node function
+We may want to avoid executing a function or parts of it if the node has
+no related files before executing the installation and actions handling
+parts.
+This can be done with the help of the \f[CR]node\f[R] function.
+.IP
+.EX
+service_ntpd() \f[B]{\f[R]
+ node ntpd.conf \f[B]&&\f[R]
+ nodeinstall \-m 644 \-o root:wheel ntpd.conf /etc \f[B]&&\f[R]
+ ntpd \-n \f[B]&&\f[R]
+ rcctl enable ntpd \f[B]&&\f[R]
+ rcctl restart ntpd
+\f[B]}\f[R]
+.EE
+.PP
+Here, \f[CR]node\f[R] will return \f[CR]31\f[R] if there is no file or
+directory called \f[CR]ntpd.conf\f[R] inside the deployed node directory
+(\f[CR]/tmp/r7/hostname\f[R]).
+.PP
+\f[CR]0\f[R], \f[CR]30\f[R] and \f[CR]31\f[R] exit codes are ignored
+when r7 will search for execution errors.
+This means \f[CR]30\f[R] and \f[CR]31\f[R] exit code are reserved to r7.
+.PP
+In other terms, this will update the NTP daemon configuration only if
+\f[CR]ntpd.conf\f[R] is present in the node directory, otherwise it is
+kept by default, which is the system provided default
+\f[CR]ntpd.conf\f[R].
+.SS Sourcing specific files
+Here\[cq]s an example how to source additionnal shell from the deployed
+node directory, or elsewhere:
+.IP
+.EX
+service_sysrc() \f[B]{\f[R]
+ sysrc dumpdev=NO
+ sysrc kld_list=\[dq]vmm if_tuntap if_bridge nmdm\[dq]
+ sysrc microcode_update_enable=YES
+ sysrc mountd_enable=YES
+ sysrc nfs_server_enable=YES
+ sysrc ntpdate_enable=YES
+ sysrc powerd_enable=YES
+ sysrc rcshutdown_timeout=900
+ sysrc rpcbind_enable=YES
+ sysrc sshd_enable=YES
+ sysrc zfs_enable=YES
+ nodesource sysrc.local
+\f[B]}\f[R]
+.EE
+.PP
+In this FreeBSD example, we configure the system RC globally with
+\f[CR]service_sysrc\f[R] which apply, if \f[CR]sysrc.local\f[R] is found
+in the root of the node directory, it\[cq]s sourcing in the current
+scope via the help of \f[CR]nodesource sysrc.local\f[R].
+.PP
+The file \f[CR]nodes/hostname/sysrcl.local\f[R] contains the following:
+.IP
+.EX
+sysrc ifconfig_igb0=DHCP
+sysrc ifconfig_igb1=up
+.EE
+.SS Other examples
+Inside the r7 release, a small example groups library can be found in
+the \f[CR]groups\f[R] directory, that can also be browsed in the \c
+.UR https://got.inda.re/?action=summary&path=r7.git
+repository
+.UE \c
+\&.
+.SS System shell profile
+Here we install the \f[CR]profile\f[R] file provided in the
+\f[CR]groupname.dir\f[R] directory or the profile provided by the node
+directory:
+.IP
+.EX
+setup_profile() \f[B]{\f[R]
+ groupinstall \-m 644 \-o root:wheel profile /etc
+ node profile \f[B]&&\f[R]
+ nodeinstall \-m 644 \-o root:wheel profile /etc
+\f[B]}\f[R]
+.EE
+.SS Users
+Here we add new users:
+.IP
+.EX
+setup_users() \f[B]{\f[R]
+ useradd user1 2>/dev/null \f[B]||\f[R] :
+ useradd user2 2>/dev/null \f[B]||\f[R] :
+\f[B]}\f[R]
+.EE
+.SS Crontab
+In the following example, we install a script and call it from a
+dedicated user crontab.
+.IP
+.EX
+mail_admins=admins\[at]test.org
+
+install_myscript() \f[B]{\f[R]
+ groupinstall \-o root:bin \-m 755 myscript /usr/local/bin \f[B]&&\f[R]
+ useradd \-d /var/empty \-s /sbin/nologin _myscript
+ crontab \-u _myscript \- <<\-/
+ MAILTO=$mail_admins
+ */5 * * * * myscript
+ /
+}
+.EE
+.SS Consulting the output
+After the execution is done, the result are saved in the \f[CR]_run\f[R]
+directory, \f[CR]output\-dump\f[R] needs to be called to produce the
+current \f[CR]_output\f[R] structure.
+.PP
+The r7 \f[CR]output\f[R] command can then be used to show specific
+output groups or functions:
+.IP
+.EX
+r7 output
+.EE
+.PP
+Will show the whole output of the latest groups deployments.
+.PP
+This format can be used to match specific host, group or function:
+.IP
+.EX
+r7 output [hostname [groupname [funcname]]]
+.EE
+.PP
+For example:
+.IP
+.EX
+$ r7 output tools0 OpenBSD state_packages\[rs]*
+\- tools0 OpenBSD state_packages_upgrades
+
+ quirks\-7.103 signed on 2025\-05\-30T01:12:03Z
+
+\- tools0 OpenBSD state_packages_repository
+
+ https://cdn.openbsd.org/pub/OpenBSD
+.EE
+.PP
+\f[I]Note that the \f[CI]output\f[I] function arguments are using
+shell\[cq]s case globbing patterns.\f[R]
+.SS r7 command line
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+r7 [options] [command [arguments...]]
+.EE
+.SS Options
+.IP \[bu] 2
+\f[B]\-h\f[R] Show usage and exit
+.IP \[bu] 2
+\f[B]\-d\f[R] Enable debug mode
+.IP \[bu] 2
+\f[B]\-i\f[R] Specify the SSH identity file
+.IP \[bu] 2
+\f[B]\-F\f[R] Specify the SSH client configuration file
+.IP \[bu] 2
+\f[B]\-w\f[R] Set the work directory where \f[CR]./nodes\f[R] and
+\f[CR]./groups\f[R] can be found
+.IP \[bu] 2
+\f[B]\-r\f[R] Set the run directory (default: \f[CR]./_run\f[R])
+.IP \[bu] 2
+\f[B]\-o\f[R] Set the output directory (default: \f[CR]./_output\f[R])
+.IP \[bu] 2
+\f[B]\-c\f[R] Specify the site configuration file (default:
+\f[CR]./site\-config\f[R])
+.IP \[bu] 2
+\f[B]\-n\f[R] Enable dry run mode; prevents any modification on hosts
+.IP \[bu] 2
+\f[B]\-e\f[R] Exit the group execution on the error function
+.IP \[bu] 2
+\f[B]\-p\f[R] Run each host in parallel per group call
+.IP \[bu] 2
+\f[B]\-O\f[R] Show output interactively
+.IP \[bu] 2
+\f[B]\-P\f[R] Specify a prefix
+.IP \[bu] 2
+\f[B]\-a\f[R] Select all available prefixes for a group command
+.IP \[bu] 2
+\f[B]\-s\f[R] Apply output\-dump and summary after a group command
+.SS Commands
+.PP
+.TS
+tab(@);
+lw(18.7n) lw(51.3n).
+T{
+Name
+T}@T{
+Description
+T}
+_
+T{
+\f[B]run\-config\f[R]
+T}@T{
+Run the site configuration
+T}
+T{
+\f[B]group\f[R]
+T}@T{
+Deploy specified group to hosts
+T}
+T{
+\f[B]output\-dump\f[R]
+T}@T{
+Dump the run directory to the output directory
+T}
+T{
+\f[B]output\f[R]
+T}@T{
+Consult the output
+T}
+T{
+\f[B]summary\f[R]
+T}@T{
+Produce a summary of errors and changes
+T}
+T{
+\f[B]digraph\-host\f[R]
+T}@T{
+Produce a dot digraph for hosts
+T}
+T{
+\f[B]digraph\-ssh\f[R]
+T}@T{
+Produce a dot digraph of SSH ID\[cq]s, users and nodes relations
+T}
+T{
+\f[B]import\f[R]
+T}@T{
+Import TARGET host in the current nodes directory
+T}
+T{
+\f[B]info\f[R]
+T}@T{
+Default command showing active nodes and summary
+T}
+T{
+\f[B]init\f[R]
+T}@T{
+Initialize a new work directory
+T}
+.TE
+.SS Environment
+.PP
+.TS
+tab(@);
+lw(9.7n) lw(31.4n) lw(29.0n).
+T{
+Name
+T}@T{
+Default value
+T}@T{
+Description
+T}
+_
+T{
+R7_DEBUG
+T}@T{
+no
+T}@T{
+Enable debug mode
+T}
+T{
+R7_DRYRUN
+T}@T{
+no
+T}@T{
+Enable dry\-run mode
+T}
+T{
+R7_GROUP_ALLPREFIX
+T}@T{
+no
+T}@T{
+Group selects all available prefix
+T}
+T{
+R7_GROUP_SUMMARY
+T}@T{
+no
+T}@T{
+Enable output\-dump and summary after group execution
+T}
+T{
+R7_GROUP_EXITONERROR
+T}@T{
+no
+T}@T{
+Enable exit on error function
+T}
+T{
+R7_PARALLEL
+T}@T{
+no
+T}@T{
+Enable group nodes parallel execution
+T}
+T{
+R7_PREFIX
+T}@T{
+install state doc
+T}@T{
+Set the r7 group execution prefix
+T}
+T{
+R7_SHOWOUTPUT
+T}@T{
+no
+T}@T{
+Show interactive output
+T}
+T{
+R7_WORKDIR
+T}@T{
+PWD
+T}@T{
+Set the r7 repository path
+T}
+T{
+R7_SITE_CONFIG
+T}@T{
+R7_WORKDIR/site\-config
+T}@T{
+Set the r7 \f[CR]site\-config\f[R] path
+T}
+T{
+R7_OUTPUTDIR
+T}@T{
+R7_WORKDIR/_output
+T}@T{
+Set the r7 output directory path
+T}
+T{
+SSH_CONFIG_DIR
+T}@T{
+R7_WORKDIR/.ssh
+T}@T{
+Set the SSH configuration directory path
+T}
+T{
+SSH_CONFIG_FILE
+T}@T{
+R7_WORKDIR/.ssh/config
+T}@T{
+Set the SSH configuration file path
+T}
+T{
+SSH_CONTROL_DIR
+T}@T{
+SSH_CONFIG_DIR/control
+T}@T{
+Set the SSH control dir path
+T}
+T{
+SSH_IDENTITY_FILE
+T}@T{
+R7_WORKDIR/.ssh/id_ed25519_r7
+T}@T{
+Set the SSH identity file
+T}
+T{
+SSH_KNOWN_HOSTS
+T}@T{
+R7_WORKDIR/.ssh/known_hosts
+T}@T{
+Set the SSH known hosts file
+T}
+T{
+SSH_CONNECT_TIMEOUT
+T}@T{
+3
+T}@T{
+Set the SSH connect timeout
+T}
+.TE
+.SS Group variables
+Those variables are available during the execution of th group
+file\[cq]s functions.
+.PP
+.TS
+tab(@);
+l l.
+T{
+Name
+T}@T{
+Description
+T}
+_
+T{
+trace_id
+T}@T{
+Current run trace ID
+T}
+T{
+groupname
+T}@T{
+Current group name being executed
+T}
+T{
+exitonerror
+T}@T{
+Cause the error function to exit if equals \f[CR]yes\f[R]
+T}
+T{
+nodename
+T}@T{
+Contains the output of \f[CR]nodename\f[R]
+T}
+T{
+nodedir
+T}@T{
+Contains the output of \f[CR]nodedir\f[R]
+T}
+T{
+groupdir
+T}@T{
+Contains the output of \f[CR]groupdir\f[R]
+T}
+.TE
+.SS Group functions
+Those functions are accessible during the execution of the group
+file\[cq]s functions.
+.IP " 1." 4
+trace
+.IP " 2." 4
+error
+.IP " 3." 4
+node
+.IP " 4." 4
+nodename
+.IP " 5." 4
+nodedir
+.IP " 6." 4
+groupdir
+.IP " 7." 4
+install
+.IP " 8." 4
+groupinstall
+.IP " 9." 4
+nodeinstall
+.IP "10." 4
+installdir
+.IP "11." 4
+groupinstalldir
+.IP "12." 4
+nodeinstalldir
+.IP "13." 4
+source
+.IP "14." 4
+groupsource
+.IP "15." 4
+nodesource
+.PP
+ * * * * *
+.SS trace
+\f[B]\f[BI]Description:\f[B]\f[R] Append a trace containing the current
+node name and \f[CR]trace_id\f[R]
+.PP
+\f[B]Usage:\f[R]
+.IP
+.EX
+trace [string...]
+.EE
+.SS error
+\f[B]\f[BI]Description:\f[B]\f[R] Trace an error message that will
+inform the user of an event in the summary output, exit the group
+execution if \f[CR]\-e\f[R] is set
+.PP
+\f[B]Usage:\f[R]
+.IP
+.EX
+error [string...]
+.EE
+.SS node
+\f[B]\f[BI]Description:\f[B]\f[R] Returns true if the argument is an
+existing file or directory inside \f[CR]/tmp/r7/$(nodename)\f[R], else,
+returns 31
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+node [filename\f[B]|\f[R]dirname]
+.EE
+.SS nodename
+\f[B]\f[BI]Description:\f[B]\f[R] Returns the small hostname of the
+current host
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+nodename
+.EE
+.SS nodedir
+\f[B]\f[BI]Description:\f[B]\f[R] Returns \f[CR]/tmp/r7/$(nodename)\f[R]
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+nodename
+.EE
+.SS groupdir
+\f[B]\f[BI]Description:\f[B]\f[R] Returns
+\f[CR]/tmp/r7/$groupname.dir\f[R]
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+groupdir
+.EE
+.SS install
+\f[B]\f[BI]Description:\f[B]\f[R] Change directory to \f[CR]/tmp/r7\f[R]
+and install files if changed and sets mode and owner, returns true if
+the file changed, otherwise returns 30
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+install [\-o owner] [\-m mode] source destintaion
+.EE
+.SS groupinstall
+\f[B]\f[BI]Description:\f[B]\f[R] Change directory to the current group
+\f[CR].dir\f[R] directory in \f[CR]/tmp/r7\f[R] then performs like
+\f[CR]install\f[R]
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+groupinstall [\-o owner] [\-m mode] source destintaion
+.EE
+.SS nodeinstall
+\f[B]\f[BI]Description:\f[B]\f[R] Change directory to the current node
+directory in \f[CR]/tmp/r7\f[R] then performs like \f[CR]install\f[R]
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+nodeinstall [\-o owner] [\-m mode] source destintaion
+.EE
+.SS installdir
+\f[B]\f[BI]Description:\f[B]\f[R] Install directory calling
+\f[CR]install\f[R] for each file and checking for permissions changes.
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+installdir [\-o fileowner] [\-m filemode] [\-O dirowner] [\-O dirmode] source
+destination
+.EE
+.SS groupinstalldir
+\f[B]\f[BI]Description:\f[B]\f[R] Change directory to the current group
+directoy then call installdir
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+groupinstalldir [\-o fileowner] [\-m filemode] [\-O dirowner] [\-O dirmode] source
+destination
+.EE
+.SS nodeinstalldir
+\f[B]\f[BI]Description:\f[B]\f[R] Change directory to the current group
+directoy then call installdir
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+nodeinstalldir [\-o fileowner] [\-m filemode] [\-O dirowner] [\-O dirmode] source
+destination
+.EE
+.SS source
+\f[B]\f[BI]Description:\f[B]\f[R] Source a POSIX shell file in the
+current execution
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+source filename
+.EE
+.SS groupsource
+\f[B]\f[BI]Description:\f[B]\f[R] Change directory to the current group
+directory then call source with the file name as argument, produces an
+error if filename is not found from the group directory
+.IP
+.EX
+groupsource filename
+.EE
+.SS nodesource
+\f[B]\f[BI]Description:\f[B]\f[R] Change directory to the current group
+directory then call node and source with the file name as argument
+without producing an error if the filename is not found
+.IP
+.EX
+nodesource filename
+.EE
+.SH r7 library
+Usable from the r7 \f[CR]site\-config\f[R] file or sourced in the
+current shell using:
+.IP
+.EX
+\&. $(command \-v r7)
+.EE
+.PP
+Each functions are declared with underscore names and aliased with
+dashes.
+Shorter aliases are also available, list all declared aliases with:
+.IP
+.EX
+alias
+.EE
+.SS Interface
+.IP "1." 3
+info
+.IP "2." 3
+usage
+.PP
+ * * * * *
+.SS info
+\f[B]\f[BI]Description:\f[B]\f[R] Default command showing active nodes
+and summary, ran when sourced
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+info
+.EE
+.SS usage
+\f[B]\f[BI]Description:\f[B]\f[R] Shows the command line help
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+usage
+.EE
+.SS SSH functions
+.IP " 1." 4
+unlock
+.IP " 2." 4
+copy
+.IP " 3." 4
+ssh
+.IP " 4." 4
+ssh\-debug
+.IP " 5." 4
+ssh\-known\-hosts
+.IP " 6." 4
+ssh\-authorized\-keys\-reset
+.IP " 7." 4
+ssh\-accept\-new
+.IP " 8." 4
+ssh\-control\-master\-clean
+.IP " 9." 4
+ssh\-users
+.IP "10." 4
+ssh\-ids
+.IP "11." 4
+ssh\-authorized\-keys
+.IP "12." 4
+ssh\-ids\-hosts
+.PP
+ * * * * *
+.SS unlock
+\f[B]\f[BI]Description:\f[B]\f[R] Resets the SSH agent environment and
+issues ssh\-add for SSH_IDENTITY_FILE
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+unlock
+.EE
+.SS copy
+\f[B]\f[BI]Description:\f[B]\f[R] r7 openrsync, rsync, scp wrapper;
+selected in order of availability
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+copy SRC DST
+.EE
+.SS ssh
+\f[B]\f[BI]Description:\f[B]\f[R] r7 SSH wrapper; behaves like the
+standard OpenSSH command
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+ssh OPTION HOST
+.EE
+.SS ssh\-debug
+\f[B]\f[BI]Description:\f[B]\f[R] r7 SSH with debug connection mode for
+a specific HOST
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+ssh\-debug HOST
+.EE
+.SS ssh\-known\-hosts
+\f[B]\f[BI]Description:\f[B]\f[R] Calls ssh\-keygen to dump the SSH
+known_hosts file
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+ssh\-known\-hosts
+.EE
+.SS ssh\-authorized\-keys\-reset
+\f[B]\f[BI]Description:\f[B]\f[R] Resets SSH authorized_keys on the
+specified HOST
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+ssh\-authorized\-keys\-reset HOST
+.EE
+.SS ssh\-accept\-new
+\f[B]\f[BI]Description:\f[B]\f[R] Adds a new host entry in the SSH
+known_hosts file
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+ssh\-accept\-new HOST
+.EE
+.SS ssh\-control\-master\-clean
+\f[B]\f[BI]Description:\f[B]\f[R] Cleans the SSH control master
+directory
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+ssh\-control\-master\-clean
+.EE
+.SS ssh\-users
+\f[B]\f[BI]Description:\f[B]\f[R] Searches nodes for authorized_keys_*
+and returns a list of users
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+ssh\-users
+.EE
+.SS ssh\-ids
+\f[B]\f[BI]Description:\f[B]\f[R] Returns sorted SSH IDs
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+ssh\-ids
+.EE
+.SS ssh\-authorized\-keys
+\f[B]\f[BI]Description:\f[B]\f[R] Returns the list of authorized_keys
+from nodes
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+ssh\-authorized\-keys
+.EE
+.SS ssh\-ids\-hosts
+\f[B]\f[BI]Description:\f[B]\f[R] Returns SSH IDs along with matching
+keyfile and hostname
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+ssh\-ids\-hosts
+.EE
+.SS Deployment functions
+.IP "1." 3
+nodes
+.IP "2." 3
+nodes\-active
+.IP "3." 3
+run\-config
+.IP "4." 3
+members
+.IP "5." 3
+group
+.IP "6." 3
+group\-functions
+.IP "7." 3
+prefix
+.PP
+ * * * * *
+.SS nodes
+\f[B]\f[BI]Description:\f[B]\f[R] Returns a list of available nodes
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+nodes
+.EE
+.SS nodes\-active
+\f[B]\f[BI]Description:\f[B]\f[R] Returns a list of active nodes by
+detecting SSH availability
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+nodes\-active
+.EE
+.SS run\-config
+\f[B]\f[BI]Description:\f[B]\f[R] Executes \f[CR]R7_SITE_CONFIG\f[R] in
+the loaded environment
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+run\-config
+.EE
+.SS members
+\f[B]\f[BI]Description:\f[B]\f[R] Returns a list of active nodes
+matching a list of grep REGEXES
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+members REGEXES
+.EE
+.SS group
+\f[B]\f[BI]Description:\f[B]\f[R] Applies GROUPNAME functions (in prefix
+order) to the provided MEMBERS list
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+group GROUPNAME MEMBERS
+.EE
+.SS group\-functions
+\f[B]\f[BI]Description:\f[B]\f[R] Returns a list of functions found in
+the specified GROUPNAME
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+group\-functions GROUPNAME
+.EE
+.SS prefix
+\f[B]\f[BI]Description:\f[B]\f[R] Sets the current PREFIX for matching
+function names
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+prefix PREFIX
+.EE
+.SS Text output functions
+.IP " 1." 4
+output\-dump
+.IP " 2." 4
+output\-latest
+.IP " 3." 4
+output\-status
+.IP " 4." 4
+output\-duration
+.IP " 5." 4
+output
+.IP " 6." 4
+output\-diffs
+.IP " 7." 4
+output\-permissions
+.IP " 8." 4
+output\-errors
+.IP " 9." 4
+summary
+.IP "10." 4
+trace\-id\-last
+.PP
+ * * * * *
+.SS output\-dump
+\f[B]\f[BI]Description:\f[B]\f[R] Dumps R7_RUNDIR to R7_OUTPUTDIR
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+output\-dump
+.EE
+.SS output\-latest
+\f[B]\f[BI]Description:\f[B]\f[R] Returns a list of outputs from the
+latest run
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+output\-latest
+.EE
+.SS output\-status
+\f[B]\f[BI]Description:\f[B]\f[R] Returns a list of current dumped
+functions exit status codes
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+output\-status
+.EE
+.SS output\-duration
+\f[B]\f[BI]Description:\f[B]\f[R] Returns a list of durations of
+executed groups
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+output\-duration
+.EE
+.SS output
+\f[B]\f[BI]Description:\f[B]\f[R] Shows the dumped output matching HOST,
+GROUPNAME, and FUNCTION (or any if unspecified)
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+output HOST GROUPNAME FUNCTION
+.EE
+.SS trace\-id\-last
+\f[B]\f[BI]Description:\f[B]\f[R] Returns the latest execution trace_id
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+trace\-id\-last
+.EE
+.SS output\-diffs
+\f[B]\f[BI]Description:\f[B]\f[R] Returns the diffs from the latest
+execution
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+output\-diffs
+.EE
+.SS output\-permissions
+\f[B]\f[BI]Description:\f[B]\f[R] Returns the latest permission changes
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+output\-permissions
+.EE
+.SS output\-errors
+\f[B]\f[BI]Description:\f[B]\f[R] Returns the latest errors detected
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+output\-errors
+.EE
+.SS summary
+\f[B]\f[BI]Description:\f[B]\f[R] Produces a summary of errors, diffs,
+and permission outputs
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+summary
+.EE
+.SS Digraph output
+.IP "1." 3
+digraph\-host
+.IP "2." 3
+digraph\-ssh\-id\-hosts
+.PP
+ * * * * *
+.SS digraph\-host
+\f[B]\f[BI]Description:\f[B]\f[R] Returns a directed graph (in DOT
+format) showing relations among groups, functions, and nodes
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+digraph\-host
+.EE
+.SS digraph\-ssh\-id\-hosts
+\f[B]\f[BI]Description:\f[B]\f[R] Returns a directed graph (in DOT
+format) of relations between SSH IDs and hosts
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+digraph\-ssh\-id\-hosts
+.EE
+.SS HTML output
+.IP "1." 3
+html
+.SS html
+\f[B]\f[BI]Description:\f[B]\f[R] Retunrs a report page with the content
+of \f[CR]README.md\f[R] in HTML format
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+html
+.EE
+.PP
+ * * * * *
+.SS Node importing
+.IP "1." 3
+import
+.SS import
+\f[B]\f[BI]Description:\f[B]\f[R] Import configuration files from a
+target host
+.PP
+\f[B]\f[BI]Usage:\f[B]\f[R]
+.IP
+.EX
+import HOST
+.EE
+.PP
+ * * * * *
+.SS Technical notes
+.IP \[bu] 2
+Supported shells are ksh93, oksh, yash and bash.
+.IP \[bu] 2
+Supported platforms are OpenBSD, FreeBSD, NetBSD and GNU/Linux.
+.IP \[bu] 2
+Busybox support is planned.
+.IP \[bu] 2
+Optional dependencies are openrsync, rsync, column, graphviz and pandoc.
+.IP \[bu] 2
+The HTML output is a work in progress.
+.PP
+ * * * * *