Deploying OpCenter in Google Cloud
Before you begin
About this task
Procedure
- Log in to the Google Cloud Platform at console.cloud.google.com
- From the Welcome page, use the pulldown menu on the navigation bar to select the project you are working in.
- From the Navigation menu at the left of the navigation bar, select Marketplace.
-
In the search bar in the middle of the page, type
MemVerge
The search returns one result called Memory Machine Cloud.
- Click anywhere inside the box displaying information about Memory Machine Cloud.
-
Click Launch
A page is displayed that shows the steps required to install the OpCenter using a Terraform template.
- Skip over the section titled Configure a service account (Optional) (do not click the CONFIGURE button).
- Skip over the section titled Configure gcloud.
- Skip over the section titled Review VM images.
-
Click the Download button to get the Terraform
module.
A zip file with a name in this format xxx_terraform.zip is downloaded to your local machine.
-
At the top, right-hand side of the navigation bar, click the Activate
Cloud Shell icon.
A Cloud shell terminal session opens in the bottom part of your browser window. Resize the terminal as needed.A message like the following is displayed.The project ID shown here (se-demo-350716) is an example.
Welcome to Cloud Shell! Type "help" to get started. Your Cloud Platform project in this session is set to se-demo-350716. Use “gcloud config set project [PROJECT_ID]” to change to a different project.
- In the Cloud shell terminal, go to the right hand side of the navigation bar, click the More icon (three dots), and then click Upload.
-
In the pop-screen screen, click Choose Files to locate and
select the terraform module (zip file) on your local machine, and then click
UPLOAD.
The file is uploaded to your home directory on the virtual machine running the Cloud shell terminal. Type ls to check that the file is there.
- Unzip the terraform module by entering the following.
unzip *terraform.zip
Check that the files are in your home directory by entering the following.ls 433db1d1-5e26-4715-b919-23de8b400480_terraform.zip examples modules providers.tf README.md variables.tf backend.tf main.tf outputs.tf README-cloudshell.txt terraform.tfvars
-
Edit the terraform.tfvars file (by typing vi
terraform.tfvars, for example) to configure the project ID and a
name for the OpCenter
instance as follows.
mmc_project = "[PROJECT_ID]" mmc_name = "[OP_CENTER_NAME]"
where[PROJECT_ID]
is the project ID (for example, se-demo-350716) and[OP_CENTER_NAME]
is the prefix for the OpCenter instance name (for example, docs). A string of the form "-opcenter-xxxxxx" is postpended to this prefix to form the OpCenter instance name.Deploy OpCenter in a new VPC by editing the following lines:
new_vpc = true vpc_name = "[VPC_NAME]" subnet _name ="[SUBNET_NAME]"
For example, vpc_name = "docsvpc" and subnet_name = "docssubnet"
- Optional: Change any parameter values from their default values by editing the relevant entries in terraform.tfvars, for example, mmce_region.
- Initialize the terraform environment by entering the following.
terraform init Initializing the backend... Initializing modules... Initializing provider plugins... ...[edited] Terraform has been successfully initialized! You may now begin working with Terraform. Try running "terraform plan" to see any changes that are required for your infrastructure. All Terraform commands should now work. If you ever set or change modules or backend configuration for Terraform, rerun this command to reinitialize your working directory. If you forget, other commands will detect it and remind you to do so if necessary.
- Apply the terraform module by entering the following.
terraform apply
- Enter yes at the prompt.
Do you want to perform these actions? Terraform will perform the actions described above. Only 'yes' will be accepted to approve. Enter a value: ...[edited] Apply complete! Resources: 20 added, 0 changed, 0 destroyed. Outputs: mmc_project = "se-demo-350716" opcenter_instance_name = "docs-opcenter-5156db" opcenter_ip_addr = "a.b.c.d" opcenter_nfs_disk_name = "docs-opcenter-5156db-nfs" opcenter_website = "https://a.b.c.d" vpc_name = "docs-docsvpc"
where a.b.c.d is a placeholder for the public IP address assigned to your OpCenter instance.
-
Wait a few minutes and then click the entry next to
opcenter_website.
A new browser window opens displaying the login screen for the OpCenter web interface.
- Optional: To delete the OpCenter instance, enter the following command.
terraform destroy