Xamal.Configuration.Role (xamal v0.3.0)

Copy Markdown View Source

Role configuration.

Each role has a name, a list of hosts, optional cmd override, and optional env overrides.

Summary

Functions

Create a role from the servers config entry.

Get the resolved env for a host, merging global + role env.

The secrets env file path on the remote server.

Functions

new(name, role_config, raw_config, secrets)

Create a role from the servers config entry.

primary_host(role)

resolved_env(role, global_env)

Get the resolved env for a host, merging global + role env.

secrets_path(role, config)

The secrets env file path on the remote server.