Aller au contenu principal

Administration

This page explains how a PiRogue 2.x is administered, and why changes must go through pirogue-admin-client. To change the configuration, see Configure a PiRogue.

The PiRogue functionalities are all controlled and configured by the pirogue-admin tool. pirogue-admin uses and writes its configuration files in the system folder: /var/lib/pirogue/admin.

By default, on a first and fresh installation, pirogue-admin detects and generates the best configuration for the current system.

However, modifying this configuration must be done using the pirogue-admin-client tool after the initial installation.

A configuration made of variables​

The whole configuration of a PiRogue is a set of variables, displayed by pirogue-admin-client system get-configuration:

Get the current system configuration
pirogue-admin-client system get-configuration

The result should look like:

Example of configuration
pi@pirogue ➜ pirogue-admin-client system get-configuration
DASHBOARD_PASSWORD: PiRogue
ENABLE_DHCP: 'True'
ENABLE_PUBLIC_ACCESS: 'False'
EXTERNAL_ADDRESS: 192.168.1.37
EXTERNAL_INTERFACE: enp0s3
EXTERNAL_NETWORKS: 192.168.1.0/24
ISOLATED_ADDRESS: 10.8.0.1
ISOLATED_INTERFACE: wg0
ISOLATED_NETWORK: 10.8.0.0/24
PUBLIC_CONTACT_EMAIL: root@pirogue.local
PUBLIC_DOMAIN_NAME: pirogue.local
PUBLIC_EXTERNAL_ADDRESS: 185.199.111.153
SYSTEM_HOSTNAME: pirogue
SYSTEM_OPERATING_MODE: wireguard
WIFI_COUNTRY_CODE: FR
WIFI_PASSPHRASE: superlongkey
WIFI_SSID: PiRogue

Under the hood, administrating a PiRogue consists in modifying these variables. Subsequently, lots of system files are updated and system services are started, stopped or reloaded accordingly.

With the wide variety of PiRogue's new network capabilities, it could be hard to maintain a coherent and safe relationship between all the configuration variables, the system files, and the services.

This is why PiRogue offers two level of administration:

  • pirogue-admin: low-level administration tool (used internally, and must not be used directly)
  • pirogue-admin-client: high-level administration tool aiming safety and ease of use
Never use pirogue-admin

pirogue-admin must not be used directly, use pirogue-admin-client instead.

The administration client​

pirogue-admin-client is the tool to administrate high-level PiRogue features. It allows you to configure many PiRogue components without having to deal with the complexity of the system.

You can explore all its capabilities using the command line parameter --help, e.g:

List administration commands
pirogue-admin-client --help

The tool is subdivided in sections on which --help can be shown, e.g:

Example of administration commands
pirogue-admin-client wifi --help
pirogue-admin-client wifi get-configuration --help
pirogue-admin-client wifi set-configuration --help
pirogue-admin-client system --help
# ... and so on
Prefer a graphical interface?

Most of these features are also available in the admin web interface, served at /admin next to the dashboard.

The variables are described in Default configuration.

Remote administration​

pirogue-admin-client does not have to run on the PiRogue. It talks to an administration service of the PiRogue, authenticated with a token, so the same client can administer a PiRogue from another computer, on the same network or over the Internet once the PiRogue is exposed. The admin web interface and Colander's PiRogue fleet use the same service.

Sharing the administration token gives full control of the PiRogue. User accesses apply the principle of least privilege: each one has its own token, a limited list of permissions, and can be revoked without changing the administration token.