init¶
init¶
Initialise MAAS in the specified run mode.
maasinit[-h]{region+rack,region,rack}...
Command-line options¶
Option |
Effect |
|---|---|
-h, –help |
show this help message and exit. |
Run modes¶
Mode |
Effect |
|---|---|
region+rack |
Both region and rack controllers |
region |
Region controller only |
rack |
Rack controller only |
When installing region or rack+region modes, MAAS needs a PostgreSQL database to connect to.
If you want to set up PostgreSQL for a non-production deployment on this machine, and configure it for use with MAAS, you can install the maas-test-db snap before running maas init:
sudosnapinstallmaas-test-db sudomaasinitregion+rack--database-urimaas-test-db:///
rack¶
Initialise MAAS to run only a rack controller.
maasinitrack[-h][--maas-urlMAAS_URL][--secretSECRET][--force]
Command-line options¶
Option |
Effect |
|---|---|
-h, –help |
show this help message and exit. |
–maas-url |
URL that MAAS should use for communicate from the nodes to MAAS and other controllers of MAAS. |
–secret |
Secret token required for the rack controller to talk to the region controller(s). Only used when in ‘rack’ mode. |
–force |
Skip confirmation questions when initialization has already been performed. |
region¶
Initialise MAAS to run only a region controller.
maasinitregion[-h][--maas-urlMAAS_URL] [--database-uriDATABASE_URI][--vault-uriVAULT_URI] [--vault-approle-idVAULT_APPROLE_ID] [--vault-wrapped-tokenVAULT_WRAPPED_TOKEN] [--vault-secrets-pathVAULT_SECRETS_PATH] [--vault-secrets-mountVAULT_SECRETS_MOUNT] [--num-workersNUM_WORKERS][--enable-debug] [--disable-debug][--enable-debug-queries] [--disable-debug-queries][--force]
Command-line options¶
Option |
Effect |
|---|---|
-h, –help |
show this help message and exit. |
–maas-url |
URL that MAAS should use for communicate from the nodes to MAAS and other controllers of MAAS. |
–database-uri |
URI for the MAAS Postgres database in the form of postgres://user:pass@host:port/dbname or maas-test-db:///. For maas-test-db:/// to work, the maas-test-db snap needs to be installed and connected. |
–vault-uri |
Vault URI. |
–vault-approle-id |
Vault AppRole Role ID. |
–vault-wrapped-token |
Vault Wrapped Token for AppRole ID. |
–vault-secrets-path |
Path prefix for MAAS secrets in Vault KV storage. |
–vault-secrets-mount |
Vault KV mount path. |
–num-workers |
Number of regiond worker processes to run. |
–enable-debug |
Enable debug mode for detailed error and log reporting. |
–disable-debug |
Disable debug mode. |
–enable-debug-queries |
Enable query debugging. Reports number of queries and time for all actions performed. Requires debug to also be True. |
–disable-debug-queries |
Disable query debugging. |
–force |
Skip confirmation questions when initialization has already been performed. |
region+rack¶
Initialise MAAS to run both a region and rack controller.
maasinitregion+rack[-h][--maas-urlMAAS_URL] [--database-uriDATABASE_URI] [--vault-uriVAULT_URI] [--vault-approle-idVAULT_APPROLE_ID] [--vault-wrapped-tokenVAULT_WRAPPED_TOKEN] [--vault-secrets-pathVAULT_SECRETS_PATH] [--vault-secrets-mountVAULT_SECRETS_MOUNT] [--num-workersNUM_WORKERS][--enable-debug] [--disable-debug][--enable-debug-queries] [--disable-debug-queries][--force]
Command-line options¶
Option |
Effect |
|---|---|
-h, –help |
show this help message and exit. |
–maas-url |
URL that MAAS should use for communicate from the nodes to MAAS and other controllers of MAAS. |
–database-uri |
URI for the MAAS Postgres database in the form of postgres://user:pass@host:port/dbname or maas-test-db:///. For maas-test-db:/// to work, the maas-test-db snap needs to be installed and connected. |
–vault-uri |
Vault URI. |
–vault-approle-id |
Vault AppRole Role ID. |
–vault-wrapped-token |
Vault Wrapped Token for AppRole ID. |
–vault-secrets-path |
Path prefix for MAAS secrets in Vault KV storage. |
–vault-secrets-mount |
Vault KV mount path. |
–num-workers |
Number of regiond worker processes to run. |
–enable-debug |
Enable debug mode for detailed error and log reporting. |
–disable-debug |
Disable debug mode. |
–enable-debug-queries |
Enable query debugging. Reports number of queries and time for all actions performed. Requires debug to also be True. |
–disable-debug-queries |
Disable query debugging. |
–force |
Skip confirmation questions when initialization has already been performed. |