Metadata-Version: 2.5
Name: trytond_clef_xcpng
Version: 8.0.0.1
Summary: XCP-ng host level configuration for the Clef suite
Author: Clemens Hupka
Maintainer-email: Clemens Hupka <clemens.hupka@backend.at>
License-Expression: GPL-3.0-or-later
License-File: COPYRIGHT
License-File: LICENSE
Keywords: configuration,database,management,tryton
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Plugins
Classifier: Framework :: Tryton
Classifier: Topic :: Office/Business
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Requires-Dist: trytond-clef<8.1,>=8.0
Requires-Dist: trytond-company<8.1,>=8.0
Requires-Dist: trytond-strings-xo-infrastructure<8.1,>=8.0
Requires-Dist: trytond-strings-xo<8.1,>=8.0
Requires-Dist: trytond<8.1,>=8.0
Provides-Extra: test
Description-Content-Type: text/x-rst

XCP-ng Host Configuration
=========================

The ``clef_xcpng`` module holds the host level configuration of the
XCP-ng hosts of a Xen Orchestra instance and pushes it to the hosts.

Features
--------

- **Host configuration**: the NTP servers, the DNS servers, the time
  zone, the update mode and the SSH public keys authorised on a host.
- **Push contract**: the desired settings are sent with a ``PATCH`` on
  ``hosts/<uuid>`` of the Xen Orchestra REST API v0, through the client
  of the ``strings_xo`` module.  An unset setting is never sent, so it
  never clears the configuration of the host.
- **Push wizard**: *Push XCP-ng Configuration* pushes the configuration
  of every active host of a Xen Orchestra server and reports the
  counters and the errors of the run.  A *Dry Run* builds the payload of
  every configuration without sending anything.
- **Push buttons**: a *Push* button on a configuration, and a *Push
  XCP-ng Configuration* button on a Xen Orchestra server that pushes
  every active configuration of its hosts.
- **Per-host state**: the state, the date of the last successful push
  and the error of the last failed push are recorded on the
  configuration.
- **Security**: a dedicated *XCP-ng Configuration* group, the Xen
  Orchestra groups of the suite, and a multi-company rule per model.

Scope
-----

The inventory of the Xen Orchestra objects and the actions on them are
the responsibility of the ``strings_xo_*`` suite: ``strings_xo``
provides the server configuration, the encrypted credentials, the REST
client and the synchronisation framework, and
``strings_xo_infrastructure`` mirrors the pools, hosts, networks and
storage of an instance.

This module adds only the *desired* host level configuration on top of
the hosts mirrored by ``strings_xo_infrastructure`` and therefore
depends on it instead of duplicating any inventory.

Configuration
-------------

After installing the module, open *Clef > XCP-ng Host Configurations*
and create one configuration per host.  The host is selected among the
hosts mirrored by ``strings_xo_infrastructure`` and the company of the
configuration follows the company of the host.

Fill in the NTP and DNS servers (one per line), the IANA time zone, the
update mode and the SSH public keys authorised on the host, then push
the configuration with the *Push* button of the configuration or with
*Clef > Push XCP-ng Configuration*, which covers every active host of a
server and can be run as a dry run first.

Dependencies
------------

- Tryton modules: ``ir``, ``res``, ``company``, ``clef``, ``strings_xo``,
  ``strings_xo_infrastructure``.

Models
------

- ``clef.xcpng.host.config`` — ``XCPngHostConfig``: the host level
  configuration of an XCP-ng host.
- ``clef.xcpng.ssh.key`` — ``XCPngSSHKey``: an SSH public key authorised
  on a host.
- ``xo.host`` — ``XOHost``: the hosts of the ``strings_xo`` suite the
  configuration applies to.
- ``xo.server`` — ``XOServer``: extended with the *Push XCP-ng
  Configuration* entry point.

Wizards
-------

- *Push XCP-ng Configuration* — push the host level configuration of the
  active hosts of a Xen Orchestra server, with an optional dry run.
