This section provides an example of using the CLI to create a Linux server cloud.

The following are the steps to configure Linux cloud using the CLI method:

Procedure

  1. Create your cloud as follows:
    [admin:10-50-0-2]: > configure cloud gcp
  2. Attach an IPAM profile as follows:
    [admin:10-50-0-2]: cloud> ipam_provider_ref gcp
  3. Create Linux server configuration as follows:
    [admin:10-50-0-2]: cloud> linuxserver_configuration
    [admin:10-50-0-2]: cloud:linuxserver_configuration> hosts host_ip 10.50.0.5
    [admin:10-50-0-2]: cloud:linuxserver_configuration:hosts> host_attr attr_key CPU attr_val 2
    New object being created
    [admin:10-50-0-2]: cloud:linuxserver_configuration:hosts:host_attr> save
    [admin:10-50-0-2]: cloud:linuxserver_configuration:hosts> host_attr attr_key MEMORY attr_val 4
    New object being created
    [admin:10-50-0-2]: cloud:linuxserver_configuration:hosts:host_attr> save
    [admin:10-50-0-2]: cloud:linuxserver_configuration:hosts> host_attr attr_key DPDK attr_val No
    New object being created
    [admin:10-50-0-2]: cloud:linuxserver_configuration:hosts:host_attr> save
    [admin:10-50-0-2]: cloud:linuxserver_configuration:hosts> host_attr attr_key SE_INBAND_MGMT attr_val True
    New object being created
    [admin:10-50-0-2]: cloud:linuxserver_configuration:hosts:host_attr> save
    [admin:10-50-0-2]: cloud:linuxserver_configuration:hosts> save

    Repeat the above host steps to incorporate additional Service Engines.

  4. Save your config as follows:
    [admin:10-50-0-2]: cloud:linuxserver_configuration> save
    [admin:10-50-0-2]: cloud> save
  5. After specifying the Linux server configuration, you can go to edit mode using the following command:
    [admin:10-50-0-2]: cloud:linuxserver_configuration> new
  6. Copy in the host data and change the SE resource variables and ssh_user_refaccordingly as follows:
    hosts:
    - host_attr:
    - attr_key: CPU
    attr_val: '2'
    - attr_key: MEMORY
    attr_val: '4'
    - attr_key: DPDK
    attr_val: 'No'
    - attr_key: SE_INBAND_MGMT
    attr_val: 'True'
    host_ip:
    addr: 10.50.0.4
    type: V4
    - host_attr:
    - attr_key: CPU
    attr_val: '2'
    - attr_key: MEMORY
    attr_val: '4'
    - attr_key: DPDK
    attr_val: 'No'
    - attr_key: SE_INBAND_MGMT
    attr_val: 'True'
    host_ip:
    addr: 10.50.0.6
    type: V4
    se_inband_mgmt: false
    se_log_disk_size_GB: 5
    se_sys_disk_size_GB: 10
    ssh_user_ref: root