You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update Blog “using-the-hpegl-hpe-greenlake-and-morpheus-terraform-providers-in-concert-to-create-provision-and-manage-hpe-pce-private-cloud-enterprise-vmaas-instances”
Copy file name to clipboardExpand all lines: content/blog/using-the-hpegl-hpe-greenlake-and-morpheus-terraform-providers-in-concert-to-create-provision-and-manage-hpe-pce-private-cloud-enterprise-vmaas-instances.md
+11-14Lines changed: 11 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Using the hpegl and Morpheus Terraform providers to provision a VMaaS workload
2
+
title: Using the hpegl and Morpheus Terraform Providers to provision a VMaaS workload
3
3
date: 2025-01-15T14:58:20.593Z
4
4
author: Eamonn O'Toole, John Lenihan
5
5
authorimage: /img/head-shot.jpg
@@ -19,21 +19,21 @@ tags:
19
19
20
20
# **Introduction**
21
21
22
-
Many customers of HPE GreenLake for Private Cloud Enterprise want to use [Terraform](https://www.terraform.io/) or the open-source alternative [OpenTofu](https://opentofu.org/) to create, provision and manage VMaaS (VM as a Service) VMs. The cloud-based VMaaS service interacts with Morpheus (recently acquired by HPE) running on-premise. There is a HPE GreenLake Terraform provider called [*hpegl*](https://registry.terraform.io/providers/HPE/hpegl/latest) (HPE GreenLake) and a separate [Morpheus](https://registry.terraform.io/providers/gomorpheus/morpheus/latest) provider. Both providers complement each other and when used in concert offer a rich set of IaC capabilities.
22
+
Many customers of HPE GreenLake for Private Cloud Enterprise want to use [Terraform](https://www.terraform.io/) or the open-source alternative [OpenTofu](https://opentofu.org/) to create, provision and manage VMaaS (Virtual Machines as a Service, a service offering in HPE GreenLake for Private Cloud Enterprise) VMs. The cloud-based VMaaS service interacts with [Morpheus](https://morpheusdata.com/) (recently acquired by HPE) running on-premise which provides the core Virtual Machine functionality. There is a HPE GreenLake Terraform provider called *[hpegl](https://registry.terraform.io/providers/HPE/hpegl/latest)* (HPE GreenLake) and a separate [Morpheus](https://registry.terraform.io/providers/gomorpheus/morpheus/latest) provider. Both providers complement each other and when used in concert offer a rich set of IaC capabilities.
23
23
24
-
In this blog post, we will demonstrate how to use the two providers in concert to create, provision, and manage VMaaS VM instances. Central to this is a hpegl datasource used to retrieve an access token and URL for the on-premise Morpheus instance, which are then passed to the Morpheus provider.
24
+
In this blog post we will demonstrate how to use the two providers in concert to create, provision and manage VMaaS VM instances. Central to this is a hpegl data-source which can be used to retrieve an Access Token and URL for the on-premise Morpheus instance which are then passed to the Morpheus provider.
25
25
26
26
# **IaC and HPE GreenLake Private Cloud Enterprise**
27
27
28
-
IaCis a well-established approach to configuring, creating, and managing resources. Terraform and its open-source alternative OpenTofu, along with per-service providers, are especially popular. For HPE GreenLake for Private Cloud Enterprise's VMaaS (VM as a Service) service, there are two relevant providers:
28
+
[IaC](https://en.wikipedia.org/wiki/Infrastructure_as_code) (Infrastructure as Code) is a well-established approach to configuring, creating, and managing resources. Terraform and its OpenSource alternative OpenTofu, along with per-service providers, are especially popular. For HPE GreenLake for Private Cloud Enterprise's VMaaS (VM as a Service) service, there are two relevant providers:
29
29
30
-
* hpegl (HPE GreenLake)interacts with the HPE GreenLake for Private Cloud Enterprise services such as Identity and Access Management (IAM) and VMaaS.
31
-
* Morpheusinteracts with the on-premise Morpheus instance or instances that are associated with the VMaaS service. Each Morpheus instance is a separate on-premise installation of Morpheus.
30
+
* hpegl (HPE GreenLake), which interacts with the HPE GreenLake for Private Cloud Enterprise Services such as Identity and Access Management (IAM) and VMaaS
31
+
* Morpheus, which interacts with the on-premise Morpheus instance or instances that are associated with the VMaaS service. Each Morpheus instance is a separate on-premise installation of Morpheus
32
32
33
-
These two providers complement each other. For example:
33
+
These two providers complement each other:
34
34
35
-
* hpegl deals with HPE GreenLake IAM and manages VMaaS resources, including VM instances.
36
-
* Morpheus deals with the underlying Morpheus resources on which the VMaaS resources—including VM instances—depend. This covers resources such as Clouds, VM images, Node Types, Groups, Instance Types, and Instance Layouts.
35
+
* hpegl deals with HPE GreenLake IAM and manages VMaaS resources, including VM instances
36
+
* Morpheus deals with underlying Morpheus resources on which the VMaaS resources – including VM instances – depend. This covers resources such as Clouds, VM images, Node Types, Groups, Instance Types, and Instance Layouts.
37
37
38
38
The glue between these two providers is a hpegl *Data Source* called *hpegl_vmaas_morpheus_details*. For a specific VMaaS *location* this data source will output:
39
39
@@ -546,7 +546,6 @@ The example HCL used here is based on the HCL for the first example. However w
546
546
* Node Type details
547
547
* Group details
548
548
* Cloud ID
549
-
550
549
**vmaas_instance* which does the following
551
550
552
551
* Takes inputs from an instance of the “morpheus_artefacts” module
@@ -569,9 +568,7 @@ In this way we create two VMaaS instances each in a separate VMaaS Cloud based o
569
568
570
569
### HCL
571
570
572
-
[View the example HCL](https://github.com/hpe-dev-incubator/GLP-API-Tooling/tree/main/Terraform/HPEGL-Morpheus-PCE-VMaaS/One-Location/Two-Clouds-Two-Instances>[](https://github.com/hpe-dev-incubator/GLP-API-Tooling/tree/main/Terraform/HPEGL-Morpheus-PCE-VMaaS/One-Location/One-Cloud-One-Instance/1_location_1_cloud).
[View the example HCL](https://github.com/hpe-dev-incubator/GLP-API-Tooling/tree/main/Terraform/HPEGL-Morpheus-PCE-VMaaS/One-Location/One-Cloud-One-Instance/1_location_1_cloud)
575
572
576
573
### The output from a Terraform run (v1.5.7) to create the two VMaaS instances:
0 commit comments