A list of files and directories to install in the volume from cfg and sec keys, or fetched from an https url.

	<path> from <obj_path|obj_relpath> [key <key>] [mode <mode>] [user <user>] [group <group>] [signal <sig>:<rid>] [source <uri>] [template] [required]
	<path> source <https_url> [sha256 <hex>] [mode <mode>] [user <user>] [group <group>] [signal <sig>:<rid>] [required]
	<path> [mode <mode>] [user <user>] [group <group>] [signal <sig>:<rid>]

Where:

* `<path>` (e.g. `/init/installed`, `/init/`)
  * must start with a `/`.
  * is relative to the target resource head.
  * is considered a directory if it ends with a `/` or if both `from <obj_path|obj_relpath>` and `source` are omitted.
  * is a file fetched from the url if `source <https_url>` is given and `from <obj_path|obj_relpath>` omitted.
  * content is copied from the value of the key referenced by `from <obj_path|obj_relpath>`.
  * if `key <key>` is not specified, the key name defaults to the `<path>` with the leading `/` stripped.
    e.g. `fs#1.install = /a/b from ./sec/sec1` will install `<fs#1 head>/a/b` from the `./sec/sec1` key named `a/b`.

* `<obj_path>` (e.g. `ns1/sec/d`)
  * is the absolute path of the datastore to install keys from. Note that if the datastore and
    the installing object namespaces are different, the datastore must explicitely share its keys with
    the installing object.

* `<obj_relpath>` (e.g. `./sec/d`)
  * is the path of the datastore to install keys from, relative to the installing object namespace.

* a `*` in the name of `<obj_path|obj_relpath>` (e.g. `./sec/haproxy-*`)
  * installs the keys of each sec or cfg of the namespace whose name matches, the `*` matching one character or
    more. A datastore of another namespace is installed from when it shares its keys with the installing object.
  * the `<path>` holds a `*` too, replaced for each datastore by the part of its name the `*` matched: so the
    files of the datastores are told apart.
    e.g. `/certs/*.pem from ./sec/haproxy-* key fullpem` installs the `fullpem` key of `./sec/haproxy-www.example.com`
    as `<head>/certs/www.example.com.pem`, and `/tenants/*/ from ./cfg/tenant-* key conf/*` installs the `conf/*` keys
    of `./cfg/tenant-a` in `<head>/tenants/a/`.
  * a datastore created is installed from at its first key added, and the files of a datastore deleted are removed.
  * `required` fails the install when no datastore matches.

* `key <key>`
  * `<key>` is the key name or a globbing pattern from `<obj_path|obj_relpath>`.
  * the file a key installed is removed when the key is, at the next install, and so are the files of a line
    taken away from `install`: a file the line did not install, as one written there by hand, stays.
  * if not specified, defaults to the `<path>` with the leading `/` stripped.
    e.g. `fs#1.install = /a/b from ./sec/sec1` will install `<fs#1 head>/a/b` from the `./sec/sec1` key named `a/b`.

* `<mode>`, `<user>`, `<group>` default values are defined by the `perm`, `user` and `group` resource keywords,
  and the `<mode>` of a directory by the `dirperm` resource keyword. Without `perm`, a file from a sec is installed
  with mode `0600`, and a file from a cfg with mode `0644`.

* `<sig>:<rid>` (e.g. `HUP:container#haproxy`)
  * `<sig>` is the signal to send to the target resource `<rid>` processes when the file content is modified,
    or the file removed with its key.

* `required`
  * stop installing items if this item install failed.

* `source <uri>`
  * seed the datastore key with the content of `<uri>`, as it is written: a template is stored as a template.
  * the key is seeded at the provision and the start of the object, and by the install of the resource, at its
    start, its provision or its task run, when the datastore does not hold it. A key already there is never
    written again, whatever the source, and an unprovision leaves it.
  * `source random` generates a password, once, at the provision of the object on its leader node, the datastore
    created in the namespace of the object if needed. The other nodes wait for it to reach them. An install not
    finding it fails, required or not, naming the key and the datastore: no node makes one of its own. An object
    whose resources have nothing to provision, as apps alone, is never provisioned, and its first start fails on
    the key missing: give it a `fs.flag` resource, which the provision provisions.
  * a source seeds a key named: it is refused with a key pattern, as `key conf/*`, which names no key to seed.
    `source random` is refused in the datastores of a pattern, as `from ./sec/haproxy-*`, as a datastore made
    later would never have its key: add the key with each datastore. An `http://`, `https://` or file uri seeds
    the datastores the pattern matches, at each install.
  * an `http://` or `https://` uri is fetched, as the `node.allowed_urls` and SSRF policies allow. Any other uri is
    the path of a regular file of the node, which requires the root grant. `/dev/urandom` is such a path, and
    refused as no regular file: `source random` is the generator.
  * a key two keywords of the object seed from two sources, an install line and an `environment` reference
    included, and a key of a datastore of another namespace, which shares its keys for the object to read them,
    are refused by the validation of the configuration.
  * the write of a key refreshes the services installing from the datastore, on every node it reaches: a refresh
    installs what the datastore holds, and seeds no key.

* `source <https_url>` with no `from <obj_path|obj_relpath>`
  * fetches the file straight into the volume, with no datastore: a file too large for a key, as the web ui of an
    application, e.g. `/web/html/index.html.gz required source https://github.com/opensvc/oc3-frontend/releases/latest/download/index.html.gz`.
  * the url is an `https://` one, whatever the grants of the user: an `http://` url, a path or `random` are refused,
    as they are the sources of a key, which a line names with `from`. The `node.allowed_urls` and SSRF policies apply.
  * `<path>` names the file, and is refused ending with a `/`. `key` and `template` are refused: the file is no key,
    and is installed as it is fetched.
  * the file is fetched at the start, the provision or the install of the resource when it is missing, or when the
    url changed: a start finding the file of the url fetches nothing. A url naming the latest release is not fetched
    again on its own: change it for the url of a version, or delete the file, for the next install to fetch it.
  * the file is written aside and renamed in place once whole, so a fetch failing leaves the file fetched before.
    A fetch over `node.max_install_size`, announced or sent, fails naming the url. `sha256 <hex>` fails a fetch whose
    content is of another sha256.
  * a file kept is checked, at each install, against the `sha256` of the line, else the digest its mark holds,
    else the one the node recorded at its fetch: a file written over since, by a user of the volume or an
    upload a volume keeping no mark let in, is fetched again, with a warning. The file stays root's, readable
    by root alone, until it takes its place, its owner and mode given then.
  * the file is marked installed from the url: an upload does not replace it, and a delete is allowed. A line taken
    away from `install` removes its file, as long as it is the one fetched.
  * a refresh of the datastores, at the write of a key, fetches nothing.
  * `required` fails the install when the fetch fails, naming the url. Else the fetch failing is a warning.
  * `<mode>`, `<user>`, `<group>` default values are the ones of a file of a cfg key.

* `template`
  * the key content is a go template, rendered on each node at each install into the installed file. The key
    keeps the template, so a file says what the node it is installed on knows when it is installed.
  * the data is the [env] section: `{{.foo}}` is replaced by the evaluated value of `env.foo`.
  * the functions are:
    * `ref "<reference>"`: the value of an om reference, written without its braces, evaluated for this node.
      e.g. `{{ref "nodename"}}`, `{{ref "clusternodes"}}`, `{{ref "volume#1.mnt"}}`.
    * `split <string>`: the words of a string, as a list a reference returns.
      e.g. `{{range split (ref "clusternodes")}}{{.}} {{end}}`.
    * `key "<obj_path|obj_relpath>" "<key>"`: the content of a datastore key, the datastore sharing its keys with
      the installing object namespace. The installed file mode is the line's, so a file rendering a sec key
      wants a `mode` as tight as the key's.
    * `network "<name>"`: the network `<name>`, with the fields `Name`, `Type`, `Network`, `Peers` and
      `ReverseZones`. A routed_bridge network lists the other nodes in `Peers`, as this node reaches them, with
      the fields `Nodename`, `Local` and `Remote` (the addresses of this node and the peer the network joins),
      `Subnet`, and `Tunnel` (the tunnel device, empty when the network is routed to the peer). Other networks
      list none. `ReverseZones` are the reverse zones of the addresses the network hands out, which the cluster
      nameservers answer for, none when `cluster.dns_reverse` is false: a resolver forwards them to the cluster
      nameservers, e.g. `{{range networks}}{{range .ReverseZones}}{{.}}=10.0.0.1,{{end}}{{end}}`.
    * `networks`: the networks of the node, each as `network` returns it.
    * `tunnels`: the peers the networks of the node reach by a tunnel, each tunnel once, as networks joining the
      same two addresses share one. e.g. `{{range tunnels}}{{.Nodename}} {{.Local}} {{.Remote}}{{end}}`.
  * the file is compared to what the template renders at each install, so the `signal` follows a change of
    what the template reads too, at the next install.
  * a change of a key the `key` function read at the last render installs the file again, on each node, as a
    change of the template key does: a file rendered from a sec follows the sec.

An install writing or removing files, whatever runs it, a start, a provision, a task or a change of a key,
publishes a `FileInstalled` event, and none when it finds them up to date. A task with `on = FileInstalled,rid=<rid>` has
what reads them read them again, e.g. a host task with `container` running `swanctl --load-all`.
