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
fix: added new tools such as oras and awscli, and script to check for and delete packer cache (#24)
* fix: added script to check for and delete packer cache
* fix: added new tools such as oras and awscli, updated Terraform files
* Apply suggestions from code review
Co-authored-by: Karl Cardenas <karl@spectrocloud.com>
* Update edge/vmware/clone_vm_template/delete-packer-cache.sh
change error output destination
* fix: added new tools such as oras and awscli, updated Terraform files… (#25)
* fix: added new tools such as oras and awscli, updated Terraform files to include OCI registries
* chore: updated the template and documentation
* docs: minor update to the terraform.tfvars file
* docs: minor update to the terraform.tfvars file
---------
Co-authored-by: Karl Cardenas <karl@spectrocloud.com>
---------
Co-authored-by: Lenny Chen <lenny.chen@spectrocloud.com>
Co-authored-by: Karl Cardenas <karl@spectrocloud.com>
Co-authored-by: caroldelwing <carolina.delwing@spectrocloud.com>
Copy file name to clipboardExpand all lines: terraform/pack-tf/README.md
+25-17Lines changed: 25 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -3,30 +3,33 @@
3
3
This folder contains the demo code for the [Create and Deploy a Custom Add-On Pack](https://docs.spectrocloud.com/registries-and-packs/create-pack) tutorial.
4
4
Use the code in this directory with the tutorial.
5
5
6
+
7
+
To get started, review the [prerequisites](#prerequisites). Next, follow the steps in the tutorial to deploy the cluster and custom add-on pack.
8
+
Use the [terraform.tfvars](./terraform.tfvars) file to provide the required variables. Once you populate the variables, you can deploy the cluster and custom add-on pack.
9
+
6
10
## Prerequisites
7
11
You will need the following things before getting started:
8
-
1.Spectro Cloud API key generated from the Palette.
12
+
1.A Palette API key.
9
13
2. A cloud account added to your Palette project settings.
10
-
3. An SSH key created in the region where you will deploy the cluster.
11
-
12
-
Note that the Terraform code, when executed, will deploy the resources to the **AWS** cloud service provider.
13
-
To deploy your resource to Azure or Google Cloud, use the specific layer details outlined in the **Cloud Service Provider Configurations** section below.
14
+
3. An AWS Key pair or SSH key created in the region where you will deploy the cluster.
14
15
16
+
> [!NOTE]
17
+
> This Terraform code will deploy the resources specified in the template to **AWS**.
15
18
16
-
## Cloud Service Provider Configurations
17
-
The code uses the data resources, the core infrastructure layers, defined in the **data.tf** to deploy the `spectrocloud_cluster_profile.profile` resource to the AWS. Here are the pack details for each infrastructure layer.
|[aws_availability_zones.available](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/availability_zones)| data source |
41
45
|[spectrocloud_cloudaccount_aws.account](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/cloudaccount_aws)| data source |
42
46
|[spectrocloud_pack.cni](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack)| data source |
43
47
|[spectrocloud_pack.csi](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack)| data source |
@@ -47,21 +51,25 @@ No modules.
47
51
|[spectrocloud_pack.ubuntu](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/pack)| data source |
48
52
|[spectrocloud_registry.hellouniverseregistry](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/registry)| data source |
49
53
|[spectrocloud_registry.public_registry](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/registry)| data source |
54
+
|[spectrocloud_registry_oci.hellouniverseregistry](https://registry.terraform.io/providers/spectrocloud/spectrocloud/latest/docs/data-sources/registry_oci)| data source |
50
55
51
56
## Inputs
52
57
53
58
| Name | Description | Type | Default | Required |
| <aname="input_cluster_cloud_account_aws_name"></a> [cluster\_cloud\_account\_aws\_name](#input\_cluster\_cloud\_account\_aws\_name)| Choose the AWS account integrated with Spektro Palette. |`string`| n/a | yes |
57
-
| <aname="input_cluster_name"></a> [cluster\_name](#input\_cluster\_name)| Give the cluster a name. |`string`|`"pack-tutorial-cluster"`| no |
58
-
| <aname="input_cluster_profile_description"></a> [cluster\_profile\_description](#input\_cluster\_profile\_description)| Provide a description. |`string`|`"My cluster profile as part of the packs tutorial."`| no |
59
-
| <aname="input_cluster_profile_name"></a> [cluster\_profile\_name](#input\_cluster\_profile\_name)| Give the cluster-profile a name. |`string`|`"pack-tutorial-profile"`| no |
60
+
| <aname="input_aws_az_names"></a> [aws\_az\_names](#input\_aws\_az\_names)| Provide a list of AWS Availability Zones. For example: ['us-east-1a', 'us-east-1b', 'us-east-1c']|`list(string)`|`[]`| no |
61
+
| <aname="input_aws_region_name"></a> [aws\_region\_name](#input\_aws\_region\_name)| Specify the AWS region where you want to deploy the cluster. |`string`| n/a | yes |
62
+
| <aname="input_cluster_cloud_account_aws_name"></a> [cluster\_cloud\_account\_aws\_name](#input\_cluster\_cloud\_account\_aws\_name)| Specify the AWS account integrated with Palette. Use the same name as the one used in the Palette project settings. |`string`| n/a | yes |
63
+
| <aname="input_cluster_name"></a> [cluster\_name](#input\_cluster\_name)| The name of the cluster. |`string`|`"pack-tutorial-cluster"`| no |
64
+
| <aname="input_cluster_profile_description"></a> [cluster\_profile\_description](#input\_cluster\_profile\_description)| Provide a description of the cluster profile. |`string`|`"My cluster profile as part of the packs tutorial."`| no |
65
+
| <aname="input_cluster_profile_name"></a> [cluster\_profile\_name](#input\_cluster\_profile\_name)| The name of the cluster profile. |`string`|`"pack-tutorial-profile"`| no |
60
66
| <aname="input_custom_addon_pack"></a> [custom\_addon\_pack](#input\_custom\_addon\_pack)| Custom add-on pack name. |`string`|`"hellouniverse"`| no |
61
67
| <aname="input_custom_addon_pack_version"></a> [custom\_addon\_pack\_version](#input\_custom\_addon\_pack\_version)| Custom add-on pack version. |`string`|`"1.0.0"`| no |
62
-
| <aname="input_private_pack_registry"></a> [private\_pack\_registry](#input\_private\_pack\_registry)| Private pack registry server name. |`string`|`"private-pack-registry"`| no |
| <aname="input_instance_type"></a> [instance\_type](#input\_instance\_type)| Specify the AWS instance type. |`string`|`"m4.xlarge"`| no |
69
+
| <aname="input_private_pack_registry"></a> [private\_pack\_registry](#input\_private\_pack\_registry)| The name of the private pack registry server. |`string`| n/a | yes |
70
+
| <aname="input_ssh_key_name"></a> [ssh\_key\_name](#input\_ssh\_key\_name)| Specify the AWS Keypair available in the AWS region where you want to deploy the cluster. |`string`| n/a | yes |
64
71
| <aname="input_tags"></a> [tags](#input\_tags)| The default tags to apply to Palette resources |`list(string)`| <pre>[<br> "spectro-cloud-education",<br> "app:hello-universe",<br> "terraform_managed:true"<br>]</pre> | no |
72
+
| <aname="input_use_oci_registry"></a> [use\_oci\_registry](#input\_use\_oci\_registry)| Set the use of OCI registry to true or false. If you are not using an OCI registry, set this value to false. |`bool`|`true`| no |
0 commit comments