Server Maintenance Commands
cluster
The cfy cluster command is used to manage clusters of tenants in Cloudify Manager. Optional flags These commands support the common CLI flags. Commands Start Usage cfy cluster start [OPTIONS] Start a Cloudify Manager cluster with the current manager as the master. This initializes all the Cloudify Manager cluster components on the current manager, and marks it as the master. After that, other managers can join the cluster by passing this manager’s IP address and encryption key.
init
The cfy init command is used to initialize a working Cloudify directory. Before you can use cfy, you must initialize a working directory for it, in which relevant functional information will be stored. Running cfy intall or cfy profiles use initializes an environment automatically. Usage cfy init [OPTIONS] [BLUEPRINT_PATH] Initialize a Cloudify environment. This is required to perform many actions and should be the first action performed after installing Cloudify.
ldap
The cfy ldap command is used to set LDAP authentication to enable you to integrate your LDAP users and groups with Cloudify. Optional flags These commands support the common CLI flags. Commands set Usage cfy LDAP set [OPTIONS] Set Cloudify Manager to use the LDAP authenticator. Required flags -s, --ldap-server TEXT - The LDAP address against which to authenticate, for example: ldaps://ldap.domain.com. -u, --ldap-username TEXT- The LDAP admin username to be set on the Cloudify Manager.
profiles
The cfy profiles command is used to manage Cloudify profiles. Each profile can have its own credentials for managers and Cloudify various environmental settings Optional flags These commands support the common CLI flags. Commands list Usage cfy profiles list [OPTIONS] List all profiles. Example $ cfy profiles list ... Listing all profiles... Profiles: +---------------+--------------+----------+-------------------------------------+----------+-----------+---------------+------------------+----------------+-----------------+ | name | manager_ip | ssh_user | ssh_key_path | ssh_port | rest_port | rest_protocol | manager_username | manager_tenant | bootstrap_state | +---------------+--------------+----------+-------------------------------------+----------+-----------+---------------+------------------+----------------+-----------------+ | *10.
snapshots
The cfy snapshots command is used to manage data snapshots of Cloudify manager. You must have admin credentials to create and restore snapshots. You can use the command to create, upload, download, delete and list snapshots and also to restore a Manager using a snapshot archive. For more about working with snapshots, go to: snapshots. Optional flags These commands support the common CLI flags. Commands create Usage cfy snapshots create [OPTIONS] [SNAPSHOT_ID]
ssh
The cfy ssh command is used to connect to a Cloudify manager via SSH. You can use the command to create a new terminal session, run a command, or connect to a shared tmux-based session. Usage cfy ssh [OPTIONS] Connects to a running manager via SSH. host starts a tmux session (e.g. tmux new -s “ssh_session_vi120m”) after which a command for a client is printed in the tmux session for the host to send to the client (i.
tenants
The cfy tenants command is used to create and manage tenants on Cloudify Manager. You can run commands on a tenant other than the one that you are logged into by specifying the name of the tenant to which the command applies. For example, cfy tenants add-user USERNAME -t TENANT_NAME can be used to add a user to a different tenant. Requirements To use the command you must have Cloudify sys_admin credentials.
user-groups
The cfy user-groups command is used to define and manage user groups on Cloudify Manager. To use the command you must have Cloudify admin credentials. If your Cloudify Manager is integrated with LDAP/AD. ensure that the group names that you define exactly match those defined in LDAP. Requirements To use the command you must have Cloudify admin credentials. User names and passwords must conform to the following requirements:
users
The cfy users command is used to manage users and passwords on Cloudify Manager. If you choose not to integrate Cloudify Manager with LDAP-based user management system, you must add each user individually with a unique username and a password. You can also create user groups and add users to them. The users and user groups can be assigned to one or more tenants, with different roles in each tenant.