Appendix A. Appendix
A.1. Appliance Console Command-Line Interface (CLI)
Currently, the appliance_console_cli feature is a subset of the full functionality of the appliance_console itself, and covers functions most likely to be scripted using the command-line interface (CLI).
-
After starting the Red Hat CloudForms appliance, log in with a user name of
rootand the default password ofsmartvm. This displays the Bash prompt for the root user. -
Enter the
appliance_console_cliorappliance_console_cli --helpcommand to see a list of options available with the command, or simply enterappliance_console_cli --option <argument>directly to use a specific option.
Table A.1. Database Configuration Options
| Option | Description |
|---|---|
| --region (-r) | region number (create a new region in the database - requires database credentials passed) |
| --internal (-i) | internal database (create a database on the current appliance) |
| --dbdisk | database disk device path (for configuring an internal database) |
| --hostname (-h) | database hostname |
| --port |
database port (defaults to |
| --username (-U) |
database username (defaults to |
| --password (-p) | database password |
| --dbname (-d) |
database name (defaults to |
Table A.2. v2_key Options
| Option | Description |
|---|---|
| --key (-k) | create a new v2_key |
| --fetch-key (-K) | fetch the v2_key from the given host |
| --force-key (-f) | create or fetch the key even if one exists |
| --sshlogin |
ssh username for fetching the v2_key (defaults to |
| --sshpassword | ssh password for fetching the v2_key |
Table A.3. IPA Server Options
| Option | Description |
|---|---|
| --host (-H) | set the appliance hostname to the given name |
| --ipaserver (-e) | IPA server FQDN |
| --ipaprincipal (-n) |
IPA server principal (default: |
| --ipapassword (-w) | IPA server password |
| --ipadomain (-o) | IPA server domain (optional). Will be based on the appliance domain name if not specified. |
| --iparealm (-l) | IPA server realm (optional). Will be based on the domain name of the ipaserver if not specified. |
| --uninstall-ipa (-u) | uninstall IPA client |
-
In order to configure authentication through an IPA server, in addition to using Configure External Authentication (httpd) in the
appliance_console, external authentication can be optionally configured via theappliance_console_cli(command-line interface). -
Specifying --host will update the hostname of the appliance. If this step was already performed via the
appliance_consoleand the necessary updates made to/etc/hostsif DNS is not properly configured, the --host option can be omitted.
Table A.4. Certificate Options
| Option | Description |
|---|---|
| --ca (-c) |
CA name used for certmonger (default: |
| --postgres-client-cert (-g) | install certs for postgres client |
| --postgres-server-cert | install certs for postgres server |
| --http-cert | install certs for http server (to create certs/httpd* values for a unique key) |
| --extauth-opts (-x) | external authentication options |
The certificate options augment the functionality of the certmonger tool and enable creating a certificate signing request (CSR), and specifying certmonger the directories to store the keys.
Table A.5. Other Options
| Option | Description |
|---|---|
| --logdisk (-l) | log disk path |
| --tmpdisk |
initialize the given device for temp storage (volume mounted at |
| --verbose (-v) | print more debugging info |
Example Usage
$ ssh root@appliance.test.company.com
To create a new database locally on the server using /dev/sdb:
# appliance_console_cli --internal --dbdisk /dev/sdb --region 0 --password smartvm
To copy the v2_key from a host some.example.com to local machine:
# appliance_console_cli --fetch-key some.example.com --sshlogin root --sshpassword smartvm
You could combine the two to join a region where db.example.com is the appliance hosting the database:
# appliance_console_cli --fetch-key db.example.com --sshlogin root --sshpassword smartvm --hostname db.example.com --password mydatabasepassword
To configure external authentication:
# appliance_console_cli --host appliance.test.company.com
--ipaserver ipaserver.test.company.com
--ipadomain test.company.com
--iparealm TEST.COMPANY.COM
--ipaprincipal admin
--ipapassword smartvm1To uninstall external authentication:
# appliance_console_cli --uninstall-ipa
A.2. Storage SKU Types
Table A.6. Storage SKU types
| SKU Type | Description |
|---|---|
| Standard_LRS | Locally Redundant Storage: Synchronous copies of data are created within a single data center. |
| Standard_GRS | Geographically Redundant Storage: Same as Standard_LRS with additional asynchronous copies stored in a secondary data center in a separate geographical location. |
| Standard_RAGRS | Read-Access Geographically Redundant Storage: Same as Standard_GRS with additional read access to the secondary data center. |
| Standard_ZRS | Zone Redundant Storage: For block blobs only. Stores three copies of data across multiple data centers within the region or across regions. |
| Premium_LRS | Premium Locally Redundant Storage: Same as Standard_LRS, but uses Premium Storage disks. |

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.