Red Hat Cloud Forms is a policy-controlled Cloud management engine that provides self-service environments for Cloud users seamlessly across several popular Cloud providers.
In this tutorial, I will demonstrate the ease in which you can connect your Cloud Forms to Google's Compute Engine (GCE).
This exercise is appropriate for a beginner knowledge level in both Cloud Forms and Google Compute Engine.
You will need:
- Red Hat Cloud Forms installed
- Red Hat Cloud Forms admin credentials
- Google Compute Engine account
- Google Compute Engine admin credentials
- Login to Google Compute Engine.
- Create the Service Account by clicking IAM & admin -> Service Accounts -> [+] CREATE SERVICE ACCOUNT.
- Give your new GCE Service Account a name. Set the role to Project-> Owner (you will be able to reduce permissions as appropriate) and select the JSON radio button-> Create.
- The GCE Project ID and the GCE Service Endpoint JSON will have to be acquired from the GCE portal and placed into the Cloud Forms “Add new cloud provider” dialog.
- The JSON file will be automatically downloaded to your local machine.
- In the GUI for the Red Hat
CloudForms, go to Compute-> Infrastructure-> Clouds-> Providers.
- Go to Configuration -> "Add a New Cloud Provider."
- From the Google Cloud Platform (GCE) go to IAM and admin -> Service accounts -> Service account
ID.Copy the part of the service account ID underlined below on the right and paste to CFME on the left under “Project ID.”
- Open the JSON file in an editor.
Copy that JSON text from your editor into the Endpoints-> Service Account JSON field above on the left in CFME.
Click Validate-> Save.
You now have your Cloud Forms connected to Google Compute Engine and will be able to use it as a provisioning resource from Cloud Forms!
It may take considerable time to populate your Google Cloud metadata into Cloud Forms, so my last recommended step would be: be patient!