lemano baseline
Accept a generation as a target’s baseline
Description
Accept generation SEQ of a target, or its latest generation, as the
target's baseline: the reference its later generations are compared with.
The baseline points to the generation; nothing is copied, and history is
not changed. A generation that already is the baseline is left as it is,
and the baseline is shown.
Each object of a later generation is then in sync (the same as in the
baseline), changed, added (not in the baseline) or missing (in the
baseline, no longer seen). lemano diff NAME --baseline lists them, and
lemano target show NAME counts them.
With --only or --skip the baseline does not move: it takes the chosen
objects from generation SEQ (the latest by default), each as it is there,
or as absent when that generation no longer has it, and keeps its own
generation for everything else. --only takes the objects it names; --skip
takes every object that differs except those it names. Name an object as
lemano diff --baseline prints it (File//etc/app.conf), or by its identity
alone (/etc/app.conf); repeat the flag for several. A name that matches no
object that differs is refused. Nothing is written to history: the choice
is kept with the baseline, and shown by lemano target show and lemano diff
NAME --baseline. An accepted object that changes again shows as changed
against what was accepted. Moving the baseline as a whole, with a
generation and neither flag, ends these acceptances.Synopsis
lemano baseline NAME [SEQ]Examples
lemano baseline web-07
lemano baseline web-07 3
lemano baseline web-07 3 --only /etc/ssh/sshd_config --only Package/nginx
lemano baseline web-07 --skip Sysctl/vm.swappiness
lemano baseline web-07 --showFlags
| Flag | Type | Default | Description |
|---|---|---|---|
--only | stringArray | take only this object (Kind/identity or identity) from the generation into the baseline; repeatable | |
-o, --output | string | output format: json or yaml (default: a table for people) | |
--show | only show the baseline, changing nothing | ||
--skip | stringArray | take every object that differs except this one (Kind/identity or identity); repeatable |
Flags inherited from parent commands
| Flag | Type | Default | Description |
|---|---|---|---|
--log-level | string | warn | log level on standard error: debug, info, warn or error |
--no-color | never colour the text (colour is also off when $NO_COLOR is set, when $TERM is dumb and when the output is not a terminal; $FORCE_COLOR turns it on, over $NO_COLOR) | ||
--password-prompt | ask on the terminal for the login password of each target whose file names none | ||
--ssh-config | string | ssh configuration file that targets’ connection settings are read from, or none to read none (default $LEMANO_SSH_CONFIG, else the files ssh reads) | |
--store | string | path of the store (default $LEMANO_STORE, else $XDG_DATA_HOME/lemano/lemano.db) | |
--sudo-password-prompt | ask on the terminal for the sudo password of each target whose file names none |
Exit codes
See exit codes.
See also
- lemano: the parent command