zuul-jobs/roles/add-fileserver
Ian Wienand f76cfbab11 linters: fix spaces between filters
This fixes a number of places where we do not have spaces between
filters.  I think that this is a reasonable rule for readability (I
also think it probably was enforced, but maybe later versions got
better at detecting it?).

These are detected by a later version of Ansible lint; this change
should have no operational change to any roles but prepares us to
update in a follow-on change.

Change-Id: I07e1a109b87adce86f483d14d7e02fcecb8313d5
2022-07-27 17:13:39 +10:00
..
tasks linters: fix spaces between filters 2022-07-27 17:13:39 +10:00
README.rst Document upload-logs reliance on add-fileserver 2019-01-22 14:41:11 -08:00

Add a remote fileserver to the inventory so that content can be uploaded in subsequent tasks or roles.

Role Variables

Complex argument which contains the information about the remote destination as well as the authentication information needed. It is expected that this argument comes from a Secret

Example:

- secret:
    name: site_logs
      data:
        fqdn: logs.example.org
        path: /srv/static/logs
        ssh_known_hosts: |
          logs.example.org ssh-rsa ...
        ssh_username: zuul
        ssh_private_key: !encrypted/pkcs1-oaep
          - ...

The FQDN of the remote host.

The remote path. Content will be put into a directory below this path that matches zuul.project.short_name. The full path including the project short name will be added to the hostvars of the host as zuul_fileserver_project_path.

String containing known host signature for the remote host.

Contents of the ssh private key to use.

This is an optional variable that will be inserted between the base of the path (provided by the path variable) and the zuul.project.short_name final path element.