hades.bin package
hades.bin.agent module
Hades frontend for the celery
command.
Loads the Hades configuration and transfers control to Celery.
-
class hades.bin.agent.Formatter(prog, indent_increment=2, max_help_position=24, width=None)[source]
Bases: HelpFormatter
-
add_usage(usage: str, actions: Iterable[Action], groups: Iterable, prefix: Optional[str] = None) → None[source]
-
hades.bin.agent.create_parser() → ArgumentParser[source]
-
hades.bin.agent.main() → int[source]
hades.bin.check_database module
Check the status of the Hades database.
Try to select data as the different hades users from the database to check if
the database is running and accessible.
-
hades.bin.check_database.check_database(engine: Engine, user: struct_passwd, tables: Iterable[Table]) → None[source]
Check a set of tables as a user.
- Parameters:
engine -- The SQLAlchemy engine
user -- The user to switch to
tables -- The tables to check
- Raises:
DBAPIError -- if errors occur.
-
hades.bin.check_database.check_table(conn: Connection, table: Table) → None[source]
Perform SELECT NULL
on a given table.
-
hades.bin.check_database.create_parser() → ArgumentParser[source]
-
hades.bin.check_database.main() → int[source]
hades.bin.deputy module
Run the Hades DBus daemon for privileged operations.
-
hades.bin.deputy.create_parser() → ArgumentParser[source]
-
hades.bin.deputy.main() → int[source]
hades.bin.export_options module
Export Hades options in a format suitable for various tools, such as shells.
Exports the subset of Hades options, that can be represented in the target
format in a format that can be sourced by the target tool. POSIX shells or
systemd don't support arrays for example, whereas advanced shells like bash
or zsh
do.
-
hades.bin.export_options.create_parser() → ArgumentParser[source]
-
hades.bin.export_options.main() → int[source]
hades.bin.generate_config module
Generate configuration files from templates and directories.
-
hades.bin.generate_config.create_parser() → ArgumentParser[source]
-
hades.bin.generate_config.group(value: str) → struct_group[source]
-
hades.bin.generate_config.main() → int[source]
-
hades.bin.generate_config.mode(value: str) → int[source]
-
hades.bin.generate_config.relative_path(value: str) → PurePath[source]
hades.bin.lease_server module
hades-lease-server entrypoint
-
hades.bin.lease_server.create_parser() → ArgumentParser[source]
-
hades.bin.lease_server.main() → int[source]
hades.bin.vrrp_notify module
Keepalived notification receiver.
Invoked by keepalived, if the state of VRRP instances changes.
-
HADES_CELERY_NODE_QUEUE
- Default:
Will be computed from the format string '{}{}.{}'
, with HADES_CELERY_PREFIX
, HADES_SITE_NAME
, HADES_SITE_NODE_ID
as positional arguments.
- Type:
str
-
HADES_CELERY_NOTIFY_EXCHANGE
- Default:
Will be computed from the format string '{}notify'
, with HADES_CELERY_PREFIX
as positional argument.
- Type:
str
-
HADES_CELERY_NOTIFY_EXCHANGE_TYPE
- Default:
'topic'
- Type:
str
-
HADES_CELERY_ROUTING_KEY_MASTERS_ALL
- Default:
Will be computed from the format string 'masters'
, with HADES_SITE_NAME
as positional argument.
- Type:
str
-
HADES_CELERY_ROUTING_KEY_MASTERS_SITE
- Default:
Will be computed from the format string 'masters.all.{}'
, with HADES_SITE_NAME
as positional argument.
- Type:
str
-
HADES_CELERY_ROUTING_KEY_MASTERS_SITE_AUTH
- Default:
Will be computed from the format string 'masters.auth.{}'
, with HADES_SITE_NAME
as positional argument.
- Type:
str
-
HADES_CELERY_ROUTING_KEY_MASTERS_SITE_ROOT
- Default:
Will be computed from the format string 'masters.root.{}'
, with HADES_SITE_NAME
as positional argument.
- Type:
str
-
HADES_CELERY_ROUTING_KEY_MASTERS_SITE_UNAUTH
- Default:
Will be computed from the format string 'masters.unauth.{}'
, with HADES_SITE_NAME
as positional argument.
- Type:
str
-
HADES_CELERY_RPC_EXCHANGE
- Default:
Will be computed from the format string '{}rpc-call'
, with HADES_CELERY_PREFIX
as positional argument.
- Type:
str
-
HADES_CELERY_RPC_EXCHANGE_TYPE
- Default:
'topic'
- Type:
str
-
hades.bin.vrrp_notify.create_parser() → ArgumentParser[source]
-
hades.bin.vrrp_notify.main() → int[source]
-
hades.bin.vrrp_notify.update_bindings(config: Config, name: str, state: str) → None[source]