Skip to content

Files

Latest commit

 

History

History
39 lines (35 loc) · 1.95 KB

proc_adding-google-gce-details-to-a-compute-profile.adoc

File metadata and controls

39 lines (35 loc) · 1.95 KB

Adding Google GCE Details to a Compute Profile

Use this procedure to add Google GCE hardware settings to a compute profile. When you create a host on Google GCE using this compute profile, these settings are automatically populated.

To use the CLI instead of the {ProjectWebUI}, see the CLI procedure.

Procedure
  1. In the {ProjectWebUI}, navigate to Infrastructure > Compute Profiles.

  2. In the Compute Profiles window, click the name of an existing compute profile, or click Create Compute Profile, enter a Name, and click Submit.

  3. Click the name of the GCE compute resource.

  4. From the Machine Type list, select the machine type to use for provisioning.

  5. From the Image list, select the image to use for provisioning.

  6. From the Network list, select the Google GCE network to use for provisioning.

  7. Optional: Select the Associate Ephemeral External IP checkbox to assign a dynamic ephemeral IP address that {Project} uses to communicate with the host. This public IP address changes when you reboot the host. If you need a permanent IP address, reserve a static public IP address on Google GCE and attach it to the host.

  8. In the Size (GB) field, enter the size of the storage to create on the host.

  9. Click Submit to save the compute profile.

CLI procedure
  1. Create a compute profile to use with the Google GCE compute resource:

    # hammer compute-profile create --name My_GCE_Compute_Profile
  2. Add GCE details to the compute profile:

    # hammer compute-profile values create \
    --compute-attributes "machine_type=f1-micro,associate_external_ip=true,network=default" \
    --compute-profile "My_GCE_Compute_Profile" \
    --compute-resource "My_GCE_Compute_Resource" \
    --volume "size_gb=20"