-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fmatavelli-add-extra-resources
- Loading branch information
Showing
14 changed files
with
509 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
layout: default | ||
page_title: "CloudStack: cloudstack_account" | ||
sidebar_current: "docs-cloudstack-resource-account" | ||
description: |- | ||
Creates a Account | ||
--- | ||
|
||
# CloudStack: cloudstack_account | ||
|
||
A `cloudstack_account` resource manages an account within CloudStack. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "cloudstack_account" "example" { | ||
email = "[email protected]" | ||
first_name = "John" | ||
last_name = "Doe" | ||
password = "securepassword" | ||
username = "jdoe" | ||
account_type = 1 # 1 for admin, 2 for domain admin, 0 for regular user | ||
role_id = "1234abcd" # ID of the role associated with the account | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `email` - (Required) The email address of the account owner. | ||
* `first_name` - (Required) The first name of the account owner. | ||
* `last_name` - (Required) The last name of the account owner. | ||
* `password` - (Required) The password for the account. | ||
* `username` - (Required) The username of the account. | ||
* `account_type` - (Required) The account type. Possible values are `0` for regular user, `1` for admin, and `2` for domain admin. | ||
* `role_id` - (Required) The ID of the role associated with the account. | ||
* `account` - (Optional) The account name. If not specified, the username will be used as the account name. | ||
|
||
## Attributes Reference | ||
|
||
The following attributes are exported: | ||
|
||
* `id` - The ID of the account. | ||
|
||
## Import | ||
|
||
Accounts can be imported; use `<ACCOUNTID>` as the import ID. For example: | ||
|
||
```shell | ||
$ terraform import cloudstack_account.example <ACCOUNTID> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
layout: default | ||
page_title: "CloudStack: cloudstack_disk_offering" | ||
sidebar_current: "docs-cloudstack-resource-disk_offering" | ||
description: |- | ||
Creates a Disk Offering | ||
--- | ||
|
||
# CloudStack: cloudstack_disk_offering | ||
|
||
A `cloudstack_disk_offering` resource manages a disk offering within CloudStack. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "cloudstack_disk_offering" "example" { | ||
name = "example-disk-offering" | ||
display_text = "Example Disk Offering" | ||
disk_size = 100 | ||
} | ||
``` | ||
|
||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `name` - (Required) The name of the disk offering. | ||
* `display_text` - (Required) The display text of the disk offering. | ||
* `disk_size` - (Required) The size of the disk offering in GB. | ||
|
||
## Attributes Reference | ||
|
||
The following attributes are exported: | ||
|
||
* `id` - The ID of the disk offering. | ||
* `name` - The name of the disk offering. | ||
* `display_text` - The display text of the disk offering. | ||
* `disk_size` - The size of the disk offering in GB. | ||
|
||
## Import | ||
|
||
Disk offerings can be imported; use `<DISKOFFERINGID>` as the import ID. For example: | ||
|
||
```shell | ||
$ terraform import cloudstack_disk_offering.example <DISKOFFERINGID> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
layout: default | ||
page_title: "CloudStack: cloudstack_domain" | ||
sidebar_current: "docs-cloudstack-resource-domain" | ||
description: |- | ||
Creates a Domain | ||
--- | ||
|
||
# CloudStack: cloudstack_domain | ||
|
||
A `cloudstack_domain` resource manages a domain within CloudStack. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "cloudstack_domain" "example" { | ||
name = "example-domain" | ||
network_domain = "example.local" | ||
parent_domain_id = "ROOT" | ||
} | ||
``` | ||
|
||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `name` - (Required) The name of the domain. | ||
* `domain_id` - (Optional) The ID of the domain. | ||
* `network_domain` - (Optional) The network domain for the domain. | ||
* `parent_domain_id` - (Optional) The ID of the parent domain. | ||
|
||
## Attributes Reference | ||
|
||
The following attributes are exported: | ||
|
||
* `id` - The ID of the domain. | ||
* `name` - The name of the domain. | ||
* `network_domain` - The network domain for the domain. | ||
* `parent_domain_id` - The ID of the parent domain. | ||
|
||
## Import | ||
|
||
Domains can be imported; use `<DOMAINID>` as the import ID. For example: | ||
|
||
```shell | ||
$ terraform import cloudstack_domain.example <DOMAINID> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
--- | ||
layout: default | ||
page_title: "CloudStack: cloudstack_kubernetes_cluster" | ||
sidebar_current: "docs-cloudstack-resource-kubernetes_cluster" | ||
description: |- | ||
Creates a Kubernetes Cluster | ||
--- | ||
|
||
# CloudStack: cloudstack_kubernetes_cluster | ||
|
||
A `cloudstack_kubernetes_cluster` resource manages a Kubernetes cluster within CloudStack. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "cloudstack_kubernetes_cluster" "example" { | ||
name = "example-cluster" | ||
zone = "zone-id" | ||
kubernetes_version = "1.18.6" | ||
service_offering = "small" | ||
size = 1 | ||
autoscaling_enabled = true | ||
min_size = 1 | ||
max_size = 5 | ||
control_nodes_size = 1 | ||
description = "An example Kubernetes cluster" | ||
keypair = "my-ssh-key" | ||
network_id = "net-id" | ||
state = "Running" | ||
project = "my-project" | ||
} | ||
``` | ||
|
||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `name` - (Required) The name of the Kubernetes cluster. | ||
* `zone` - (Required) The zone where the Kubernetes cluster will be deployed. | ||
* `kubernetes_version` - (Required) The Kubernetes version for the cluster. | ||
* `service_offering` - (Required) The service offering for the nodes in the cluster. | ||
* `size` - (Optional) The initial size of the Kubernetes cluster. Defaults to `1`. | ||
* `autoscaling_enabled` - (Optional) Whether autoscaling is enabled for the cluster. | ||
* `min_size` - (Optional) The minimum size of the Kubernetes cluster when autoscaling is enabled. | ||
* `max_size` - (Optional) The maximum size of the Kubernetes cluster when autoscaling is enabled. | ||
* `control_nodes_size` - (Optional) The size of the control nodes in the cluster. | ||
* `description` - (Optional) A description for the Kubernetes cluster. | ||
* `keypair` - (Optional) The SSH key pair to use for the nodes in the cluster. | ||
* `network_id` - (Optional) The network ID to connect the Kubernetes cluster to. | ||
* `ip_address` - (Computed) The IP address of the Kubernetes cluster. | ||
* `state` - (Optional) The state of the Kubernetes cluster. Defaults to `"Running"`. | ||
* `project` - (Optional) The project to assign the Kubernetes cluster to. | ||
|
||
## Attributes Reference | ||
|
||
The following attributes are exported: | ||
|
||
* `id` - The ID of the Kubernetes cluster. | ||
* `name` - The name of the Kubernetes cluster. | ||
* `description` - The description of the Kubernetes cluster. | ||
* `control_nodes_size` - The size of the control nodes in the cluster. | ||
* `size` - The size of the Kubernetes cluster. | ||
* `autoscaling_enabled` - Whether autoscaling is enabled for the cluster. | ||
* `min_size` - The minimum size of the Kubernetes cluster when autoscaling is enabled. | ||
* `max_size` - The maximum size of the Kubernetes cluster when autoscaling is enabled. | ||
* `keypair` - The SSH key pair used for the nodes in the cluster. | ||
* `network_id` - The network ID connected to the Kubernetes cluster. | ||
* `ip_address` - The IP address of the Kubernetes cluster. | ||
* `state` - The state of the Kubernetes cluster. | ||
* `project` - The project assigned to the Kubernetes cluster. | ||
|
||
## Import | ||
|
||
Kubernetes clusters can be imported; use `<KUBERNETESCLUSTERID>` as the import ID. For example: | ||
|
||
```shell | ||
$ terraform import cloudstack_kubernetes_cluster.example <KUBERNETESCLUSTERID> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
layout: default | ||
page_title: "CloudStack: cloudstack_kubernetes_version" | ||
sidebar_current: "docs-cloudstack-resource-kubernetes_version" | ||
description: |- | ||
Creates a Kubernetes Version | ||
--- | ||
|
||
# CloudStack: cloudstack_kubernetes_version | ||
|
||
A `cloudstack_kubernetes_version` resource manages a Kubernetes version within CloudStack. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "cloudstack_kubernetes_version" "example" { | ||
semantic_version = "1.19.0" | ||
url = "https://example.com/k8s/1.19.0.tar.gz" | ||
min_cpu = 2 | ||
min_memory = 2048 | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `semantic_version` - (Required) The semantic version of the Kubernetes version. | ||
* `url` - (Required) The URL to download the Kubernetes version package. | ||
* `min_cpu` - (Required) The minimum CPU requirement for the Kubernetes version. | ||
* `min_memory` - (Required) The minimum memory requirement for the Kubernetes version. | ||
* `name` - (Optional) The name of the Kubernetes version. | ||
* `zone` - (Optional) The zone in which the Kubernetes version should be added. | ||
* `checksum` - (Optional) The checksum of the Kubernetes version package. | ||
* `state` - (Optional) The state of the Kubernetes version. Defaults to "Enabled". | ||
|
||
## Attributes Reference | ||
|
||
The following attributes are exported: | ||
|
||
* `id` - The ID of the Kubernetes version. | ||
* `semantic_version` - The semantic version of the Kubernetes version. | ||
* `name` - The name of the Kubernetes version. | ||
* `min_cpu` - The minimum CPU requirement for the Kubernetes version. | ||
* `min_memory` - The minimum memory requirement for the Kubernetes version. | ||
* `state` - The state of the Kubernetes version. | ||
|
||
## Import | ||
|
||
Kubernetes versions can be imported using the ID of the resource; use `<KUBERNETESVERSIONID>` as the import ID. For example: | ||
|
||
```shell | ||
$ terraform import cloudstack_kubernetes_version.example <KUBERNETESVERSIONID> | ||
``` |
Oops, something went wrong.