Create a Cluster Config to Automate the Platform9 CLI

Command: config create

The pf9ctl config create command creates and activates a new deployment configuration that will be used by the subsequent CLI commands.

When you install pf9ctl CLI, it asks for some parameters for your PMK deployment, such as the deployment url, username, password, etc. These parameters are then stored in a config file which is later referenced every time you run a cli command like pf9ctl cluster create.

The config create command lets you create a new configuration. NOTE - This command also makes the newly created configuration the new default - which means any future invokations of the CLI will now use this configuration.

You can change the default by running pf9ctl config activate command.

Usage

Usage:

pf9ctl config create --name CONFIG_NAME --du_url DEP_URL --os_username USERNAME --os_password PASSWORD --os_region REGION --os_tenant TENANT [OPTIONS]
  • –config_name, –name TEXT [required] - Name for this configuration

  • –du_url, –du TEXT [required] - URL of your PMK deployment / account.

  • –os_username TEXT [required] - The PMK username for the account the CLI should use to connect to PMK

  • –os_password TEXT [required] - The PMK password for the account the CLI should use to connect to PMK

  • –os_region TEXT [required] - The PMK region you wish to use the CLI to connect to. (All PMK accounts are deployed with a default region called RegionOne.)

  • –os_tenant TEXT [required] - The PMK tenant that the cluster or node objects created by the CLI should reside within. (All PMK accounts are deployed with a default tenant called service.)

  • –proxy_url TEXT

  • –manage_hostname TEXT

  • –dns_resolver1 TEXT

  • –dns_resolver2 TEXT

  • –manage_resolver BOOLEAN

  • –help - Show this message and exit.

Example

pf9ctl config create --name MyConfig --du_url  https://your-pmk-url --os_username foo --os_password fakepassword --os_region RegionOne --os_tenant service