Skip to main content

Integrate with Google Cloud Using the Welcome Project


Integrate with Google Cloud Using the Welcome Project

Google Cloud consists of a set of physical assets, such as computers and hard disk drives, and virtual resources, such as virtual machines (VMs), that are contained in Google's data centers around the globe.

Read more about Google Cloud here.open in new window

This How To will highlight some of the key steps to configuring the Google Cloud plugins included in our Process Automation version. The background for these steps is covered in detail on Google's support site here: Creating and Managing Service Account Keysopen in new window.

Pre-Requisites

This How To is based on the Process Automation Welcome Projects.

  • Rundeck Welcome Project version 1.5
    (Process Automation 3.4.4 is min product version)
  • Administrative access to a Google Cloud environment
  • Create at least one Virtual Machine Instanceopen in new window and note which Zone it is created in.

Authentication & Configuration

Follow the steps outlined in the Google Cloud Integration Overviewopen in new window doc to configure credentials for the GCP plugins. Credentials can be configured on a per Project basis or for the entire Process Automation system.

Configuring Process Automation

  1. Login to Rundeck as admin.
  2. Open the Welcome to Rundeck project entry.
  3. Open the Key Storage entry from the Project Settings menu.
  4. Select the gcp-access-key.json and click Overwrite Key.
  5. In the dropdown select Upload File and choose the JSON file from the earlier steps.
  6. Click Save

Confirming GCP Plugins are working

Nodes

  1. Navigate to the Nodes section in the Welcome to Rundeck project.
  2. Search for nodes using tags: gcpcompute.
    If your Node Source is configured correctly and there are VMs in the configured zone they will be listed in the Nodes list.
GCP Nodes
GCP Nodes

Job Steps

After confirming Nodes are being listed choose one that can safely be restarted. Choose wisely

  1. Navigate to the Jobs section in the Welcome to Rundeck project.
  2. Open Cloud Services > GCP > Node Steps > VM and choose Restart VM Instance.
  3. Select the node to be restarted and click Run Job Now.
Restart GCP Node
Restart GCP Node

More Information