Page MenuHomePhabricator

Phacility Cluster CLI Tools
Updated 3,379 Days AgoPublic

Version 1 of 9: You are viewing an older version of this document, as it appeared on Feb 1 2015, 5:27 PM.

This document provides an overview of the CLI tools for administrating devices in the Phacility Cluster.

Core Tools

These tools are provided by rCORE. They can be run from an administrative terminal outside of the cluster. The words "administrative terminal" mean "your laptop".

These tools are specific to the Phacility cluster and not part of the Phabricator upstream.

Commands which affect servers operate through the bastion. See Phacility Cluster Bastion.

Deployment Commands

These commands deploy or upgrade servers.

Deploying or upgrading a bastion host requires the master key.

CommandWorkflowSummary
bin/remotedeployDeploy a new host, installing rCORE on it.
bin/remoteinstallInstall and upgrade system software on a deployed host.
bin/remoteupgradeUpgrade application software on an installed host.

Operational Commands

These commands perform routine operational tasks.

CommandWorkflowSummary
bin/remotebackupManually trigger an instance backup.

Console Commands

These commands are like ssh and mysql, but connect through the bastion (and require the bastion to authorize the request).

CommandWorkflowSummary
bin/remotesshOpen an administrative SSH console on a device, like connecting with ssh.
bin/remotemysqlOpen an administrative MySQL console on a device, like connecting with mysql.

Bastion/Authorization Commands

These commands affect user access to the bastion, and thereby to the cluster.

Authorization must be performed with the master key.

CommandWorkflowSummary
bin/remoteauthorizeAuthorize a user to use the bastion to perform operations work.

Internal Commands

These commands are used internally by other tools.

CommandWorkflowSummary
bin/host(All)Local versions of bin/remote commands; what bin/remote ultimately invokes.
bin/bastion(All)Used by the bastion host to authorize and relay operational traffic.
Tags
None
Referenced Files
None
Subscribers
None
Tokens
"Like" token, awarded by Admins.
Last Author
epriestley
Last Edited
Feb 1 2015, 5:27 PM