|
| 1 | +# Deploy and Manage VMs using Palette VMO |
| 2 | + |
| 3 | +This folder contains the demo code for the **Deploy and Manage VMs using Palette VMO** tutorial. |
| 4 | + |
| 5 | +The Terraform code has two main toggle variables that you can use to deploy resources to [Canonical MAAS](https://maas.io/docs). |
| 6 | + |
| 7 | +| Variable | Provider | Description | Default | |
| 8 | +| ---------------- | -------- | ------------------------------------------------- | ------- | |
| 9 | +| `deploy-maas` | MAAS | Enable to deploy a cluster to MAAS. | `false` | |
| 10 | +| `deploy-maas-vm` | MAAS | Enable to deploy a VM to a deployed MAAS cluster. | `false` | |
| 11 | + |
| 12 | + |
| 13 | +To get started, open the **terraform.tfvars** file. Toggle the provider variable as specified in the table and provide values to your cloud provider variables, replacing all instances of the string `REPLACE ME`. |
| 14 | + |
| 15 | +<!-- BEGIN_TF_DOCS --> |
| 16 | +## Requirements |
| 17 | + |
| 18 | +| Name | Version | |
| 19 | +|------|---------| |
| 20 | +| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.9 | |
| 21 | +| <a name="requirement_local"></a> [local](#requirement\_local) | 2.4.1 | |
| 22 | +| <a name="requirement_spectrocloud"></a> [spectrocloud](#requirement\_spectrocloud) | >= 0.22.2 | |
| 23 | +| <a name="requirement_tls"></a> [tls](#requirement\_tls) | 4.0.4 | |
| 24 | + |
| 25 | +## Providers |
| 26 | + |
| 27 | +| Name | Version | |
| 28 | +|------|---------| |
| 29 | +| <a name="provider_local"></a> [local](#provider\_local) | 2.4.1 | |
| 30 | +| <a name="provider_spectrocloud"></a> [spectrocloud](#provider\_spectrocloud) | 0.22.2 | |
| 31 | +| <a name="provider_tls"></a> [tls](#provider\_tls) | 4.0.4 | |
| 32 | + |
| 33 | +## Modules |
| 34 | + |
| 35 | +No modules. |
| 36 | + |
| 37 | +## Resources |
| 38 | + |
| 39 | +| Name | Type | |
| 40 | +|------|------| |
| 41 | +| [spectrocloud_cluster_profile.maas-vmo-profile](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_profile) | resource | |
| 42 | +| [spectrocloud_cluster_maas.maas-cluster](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/cluster_maas) | resource | |
| 43 | +| [spectrocloud_virtual_machine.virtual-machine](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/resources/virtual_machine) | resource | |
| 44 | +| [spectrocloud_cloudaccount_maas.account](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/cloudaccount_maas) | data source | |
| 45 | +| [spectrocloud_pack.maas_vmo](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | |
| 46 | +| [spectrocloud_pack.maas_cni](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | |
| 47 | +| [spectrocloud_pack.maas_csi](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | |
| 48 | +| [spectrocloud_pack.maas_k8s](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | |
| 49 | +| [spectrocloud_pack.maas_ubuntu](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack) | data source | |
| 50 | +| [spectrocloud_cluster.maas_vmo_cluster](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/cluster) | data source | |
| 51 | +| [spectrocloud_registry.public_registry](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/registry) | data source | |
| 52 | + |
| 53 | +## Inputs |
| 54 | + |
| 55 | +| Name | Description | Type | Default | Required | |
| 56 | +|------|-------------|------|---------|:--------:| |
| 57 | +| <a name="input_deploy-maas"></a> [deploy-maas](#input\_deploy-maas) | A flag for enabling a cluster deployment on MAAS. | `bool` | n/a | yes | |
| 58 | +| <a name="input_deploy-maas-vm"></a> [deploy-maas-vm](#input\_deploy-maas-vm) | A flag for enabling a VM creation on a MAAS cluster. | `bool` | n/a | yes | |
| 59 | +| <a name="input_pcg-name"></a> [pcg-name](#input\_pcg-name) | The name of the PCG that will be used to deploy the cluster. | `string` | n/a | yes | |
| 60 | +| <a name="input_maas-domain"></a> [maas-domain](#input\_maas-domain) | The MaaS domain that will be used to deploy the cluster. | `string` | n/a | yes | |
| 61 | +| <a name="input_maas-worker-nodes"></a> [maas-worker-nodes](#input\_maas-worker-nodes) | The number of worker nodes that will be used to deploy the cluster. | `number` | 1 | yes | |
| 62 | +| <a name="input_maas-control-plane-nodes"></a> [maas-control-plane-nodes](#input\_maas-control-plane-nodes) | The number of control plane nodes that will be used to deploy the cluster. | `number` | 1 | yes | |
| 63 | +| <a name="input_maas-worker-resource-pool"></a> [maas-worker-resource-pool](#input\_maas-worker-resource-pool) | The resource pool to deploy the worker nodes to. | `string` | n/a | yes | |
| 64 | +| <a name="input_maas-control-plane-resource-pool"></a> [maas-control-plane-resource-pool](#input\_maas-control-plane-resource-pool) | The resource pool to deploy the control plane nodes to. | `string` | n/a | yes | |
| 65 | +| <a name="input_maas-worker-azs"></a> [maas-worker-azs](#input\_maas-worker-azs) | The set of availability zones to deploy the worker nodes to. | `set(string)` | n/a | yes | |
| 66 | +| <a name="input_maas-control-plane-azs"></a> [maas-control-plane-azs](#input\_maas-control-plane-azs) | The set of availability zones to deploy the control plane nodes to. | `set(string)` | n/a | yes | |
| 67 | +| <a name="input_maas-worker-node-tags"></a> [maas-worker-node-tags](#input\_maas-worker-node-tags) | The set of tag values that you want to apply to all nodes in the node worker pool. | `set(string)` | n/a | yes | |
| 68 | +| <a name="input_maas-control-plane-node-tags"></a> [maas-control-plane-node-tags](#input\_maas-control-plane-node-tags) | The set of tag values that you want to apply to all nodes in the node control plane pool. | `set(string)` | n/a | yes | |
| 69 | +| <a name="input_tags"></a> [tags](#input\_tags) | The default tags to apply to Palette resources. | `list(string)` | <pre>[<br> "spectro-cloud-education",<br> "spectrocloud:tutorials",<br> "terraform_managed:true",<br> "tutorial:vmo-cluster-deployment"<br>]</pre> | no | |
| 70 | + |
| 71 | +## Outputs |
| 72 | +No outputs. |
| 73 | + |
| 74 | +<!-- END_TF_DOCS --> |
0 commit comments