mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Update cloudstack provider
This commit is contained in:
parent
6bfb958dcd
commit
a4f78613b5
@ -17,7 +17,7 @@ Use the navigation to the left to read about the available resources.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
# Configure the CloudStack Provider
|
||||
provider "cloudstack" {
|
||||
api_url = "${var.cloudstack_api_url}"
|
||||
|
@ -6,13 +6,13 @@ description: |-
|
||||
Creates an affinity group.
|
||||
---
|
||||
|
||||
# cloudstack\_affinity\_group
|
||||
# cloudstack_affinity_group
|
||||
|
||||
Creates an affinity group.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_affinity_group" "default" {
|
||||
name = "test-affinity-group"
|
||||
type = "host anti-affinity"
|
||||
|
@ -6,14 +6,14 @@ description: |-
|
||||
Creates a disk volume from a disk offering. This disk volume will be attached to a virtual machine if the optional parameters are configured.
|
||||
---
|
||||
|
||||
# cloudstack\_disk
|
||||
# cloudstack_disk
|
||||
|
||||
Creates a disk volume from a disk offering. This disk volume will be attached to
|
||||
a virtual machine if the optional parameters are configured.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_disk" "default" {
|
||||
name = "test-disk"
|
||||
attach = "true"
|
||||
|
@ -6,13 +6,13 @@ description: |-
|
||||
Creates egress firewall rules for a given network.
|
||||
---
|
||||
|
||||
# cloudstack\_egress\_firewall
|
||||
# cloudstack_egress_firewall
|
||||
|
||||
Creates egress firewall rules for a given network.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_egress_firewall" "default" {
|
||||
network_id = "6eb22f91-7454-4107-89f4-36afcdf33021"
|
||||
|
||||
|
@ -6,13 +6,13 @@ description: |-
|
||||
Creates firewall rules for a given IP address.
|
||||
---
|
||||
|
||||
# cloudstack\_firewall
|
||||
# cloudstack_firewall
|
||||
|
||||
Creates firewall rules for a given IP address.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_firewall" "default" {
|
||||
ip_address_id = "30b21801-d4b3-4174-852b-0c0f30bdbbfb"
|
||||
|
||||
|
@ -6,14 +6,14 @@ description: |-
|
||||
Creates and automatically starts a virtual machine based on a service offering, disk offering, and template.
|
||||
---
|
||||
|
||||
# cloudstack\_instance
|
||||
# cloudstack_instance
|
||||
|
||||
Creates and automatically starts a virtual machine based on a service offering,
|
||||
disk offering, and template.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_instance" "web" {
|
||||
name = "server-1"
|
||||
service_offering = "small"
|
||||
@ -82,4 +82,3 @@ The following attributes are exported:
|
||||
|
||||
* `id` - The instance ID.
|
||||
* `display_name` - The display name of the instance.
|
||||
|
||||
|
@ -6,13 +6,13 @@ description: |-
|
||||
Acquires and associates a public IP.
|
||||
---
|
||||
|
||||
# cloudstack\_ipaddress
|
||||
# cloudstack_ipaddress
|
||||
|
||||
Acquires and associates a public IP.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_ipaddress" "default" {
|
||||
network_id = "6eb22f91-7454-4107-89f4-36afcdf33021"
|
||||
}
|
||||
|
@ -6,13 +6,13 @@ description: |-
|
||||
Creates a load balancer rule.
|
||||
---
|
||||
|
||||
# cloudstack\_loadbalancer\_rule
|
||||
# cloudstack_loadbalancer_rule
|
||||
|
||||
Creates a loadbalancer rule.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_loadbalancer_rule" "default" {
|
||||
name = "loadbalancer-rule-1"
|
||||
description = "Loadbalancer rule 1"
|
||||
|
@ -6,7 +6,7 @@ description: |-
|
||||
Creates a network.
|
||||
---
|
||||
|
||||
# cloudstack\_network
|
||||
# cloudstack_network
|
||||
|
||||
Creates a network.
|
||||
|
||||
@ -14,7 +14,7 @@ Creates a network.
|
||||
|
||||
Basic usage:
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_network" "default" {
|
||||
name = "test-network"
|
||||
cidr = "10.0.0.0/16"
|
||||
|
@ -6,13 +6,13 @@ description: |-
|
||||
Creates a Network ACL for the given VPC.
|
||||
---
|
||||
|
||||
# cloudstack\_network\_acl
|
||||
# cloudstack_network_acl
|
||||
|
||||
Creates a Network ACL for the given VPC.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_network_acl" "default" {
|
||||
name = "test-acl"
|
||||
vpc_id = "76f6e8dc-07e3-4971-b2a2-8831b0cc4cb4"
|
||||
@ -40,4 +40,3 @@ The following arguments are supported:
|
||||
The following attributes are exported:
|
||||
|
||||
* `id` - The ID of the Network ACL
|
||||
|
||||
|
@ -6,13 +6,13 @@ description: |-
|
||||
Creates network ACL rules for a given network ACL.
|
||||
---
|
||||
|
||||
# cloudstack\_network\_acl\_rule
|
||||
# cloudstack_network_acl_rule
|
||||
|
||||
Creates network ACL rules for a given network ACL.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_network_acl_rule" "default" {
|
||||
acl_id = "f3843ce0-334c-4586-bbd3-0c2e2bc946c6"
|
||||
|
||||
|
@ -6,7 +6,7 @@ description: |-
|
||||
Creates an additional NIC to add a VM to the specified network.
|
||||
---
|
||||
|
||||
# cloudstack\_nic
|
||||
# cloudstack_nic
|
||||
|
||||
Creates an additional NIC to add a VM to the specified network.
|
||||
|
||||
@ -14,7 +14,7 @@ Creates an additional NIC to add a VM to the specified network.
|
||||
|
||||
Basic usage:
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_nic" "test" {
|
||||
network_id = "6eb22f91-7454-4107-89f4-36afcdf33021"
|
||||
ip_address = "192.168.1.1"
|
||||
|
@ -6,13 +6,13 @@ description: |-
|
||||
Creates port forwards.
|
||||
---
|
||||
|
||||
# cloudstack\_port\_forward
|
||||
# cloudstack_port_forward
|
||||
|
||||
Creates port forwards.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_port_forward" "default" {
|
||||
ip_address_id = "30b21801-d4b3-4174-852b-0c0f30bdbbfb"
|
||||
|
||||
|
@ -6,7 +6,7 @@ description: |-
|
||||
Creates a private gateway.
|
||||
---
|
||||
|
||||
# cloudstack\_private\_gateway
|
||||
# cloudstack_private_gateway
|
||||
|
||||
Creates a private gateway for the given VPC.
|
||||
|
||||
@ -14,7 +14,7 @@ Creates a private gateway for the given VPC.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_private_gateway" "default" {
|
||||
gateway = "10.0.0.1"
|
||||
ip_address = "10.0.0.2"
|
||||
@ -55,4 +55,3 @@ The following arguments are supported:
|
||||
The following attributes are exported:
|
||||
|
||||
* `id` - The ID of the private gateway.
|
||||
|
||||
|
@ -6,13 +6,13 @@ description: |-
|
||||
Assigns a secondary IP to a NIC.
|
||||
---
|
||||
|
||||
# cloudstack\_secondary\_ipaddress
|
||||
# cloudstack_secondary_ipaddress
|
||||
|
||||
Assigns a secondary IP to a NIC.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_secondary_ipaddress" "default" {
|
||||
virtual_machine_id = "server-1"
|
||||
}
|
||||
|
@ -6,13 +6,13 @@ description: |-
|
||||
Creates a security group.
|
||||
---
|
||||
|
||||
# cloudstack\_security\_group
|
||||
# cloudstack_security_group
|
||||
|
||||
Creates a security group.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_security_group" "default" {
|
||||
name = "allow_web"
|
||||
description = "Allow access to HTTP and HTTPS"
|
||||
@ -37,4 +37,3 @@ The following arguments are supported:
|
||||
The following attributes are exported:
|
||||
|
||||
* `id` - The ID of the security group.
|
||||
|
||||
|
@ -6,13 +6,13 @@ description: |-
|
||||
Authorizes and revokes both ingress and egress rulea for a given security group.
|
||||
---
|
||||
|
||||
# cloudstack\_security\_group\_rule
|
||||
# cloudstack_security_group_rule
|
||||
|
||||
Authorizes and revokes both ingress and egress rulea for a given security group.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_security_group_rule" "web" {
|
||||
security_group_id = "e340b62b-fbc2-4081-8f67-e40455c44bce"
|
||||
|
||||
@ -69,4 +69,3 @@ The `rule` block supports:
|
||||
The following attributes are exported:
|
||||
|
||||
* `id` - The security group ID for which the rules are created.
|
||||
|
||||
|
@ -6,13 +6,13 @@ description: |-
|
||||
Creates or registers an SSH key pair.
|
||||
---
|
||||
|
||||
# cloudstack\_ssh\_keypair
|
||||
# cloudstack_ssh_keypair
|
||||
|
||||
Creates or registers an SSH key pair.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_ssh_keypair" "default" {
|
||||
name = "myKey"
|
||||
public_key = "${file("~/.ssh/id_rsa.pub")}"
|
||||
|
@ -6,13 +6,13 @@ description: |-
|
||||
Enables static NAT for a given IP address.
|
||||
---
|
||||
|
||||
# cloudstack\_static\_nat
|
||||
# cloudstack_static_nat
|
||||
|
||||
Enables static NAT for a given IP address
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_static_nat" "default" {
|
||||
ip_address_id = "f8141e2f-4e7e-4c63-9362-986c908b7ea7"
|
||||
virtual_machine_id = "6ca2a163-bc68-429c-adc8-ab4a620b1bb3"
|
||||
|
@ -6,13 +6,13 @@ description: |-
|
||||
Creates a static route.
|
||||
---
|
||||
|
||||
# cloudstack\_static\_route
|
||||
# cloudstack_static_route
|
||||
|
||||
Creates a static route for the given private gateway or VPC.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_static_route" "default" {
|
||||
cidr = "10.0.0.0/16"
|
||||
gateway_id = "76f607e3-e8dc-4971-8831-b2a2b0cc4cb4"
|
||||
@ -34,4 +34,3 @@ The following arguments are supported:
|
||||
The following attributes are exported:
|
||||
|
||||
* `id` - The ID of the static route.
|
||||
|
||||
|
@ -6,13 +6,13 @@ description: |-
|
||||
Registers an existing template into the CloudStack cloud.
|
||||
---
|
||||
|
||||
# cloudstack\_template
|
||||
# cloudstack_template
|
||||
|
||||
Registers an existing template into the CloudStack cloud.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_template" "centos64" {
|
||||
name = "CentOS 6.4 x64"
|
||||
format = "VHD"
|
||||
|
@ -6,7 +6,7 @@ description: |-
|
||||
Creates a VPC.
|
||||
---
|
||||
|
||||
# cloudstack\_vpc
|
||||
# cloudstack_vpc
|
||||
|
||||
Creates a VPC.
|
||||
|
||||
@ -14,7 +14,7 @@ Creates a VPC.
|
||||
|
||||
Basic usage:
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_vpc" "default" {
|
||||
name = "test-vpc"
|
||||
cidr = "10.0.0.0/16"
|
||||
|
@ -6,7 +6,7 @@ description: |-
|
||||
Creates a site to site VPN connection.
|
||||
---
|
||||
|
||||
# cloudstack\_vpn\_connection
|
||||
# cloudstack_vpn_connection
|
||||
|
||||
Creates a site to site VPN connection.
|
||||
|
||||
@ -14,7 +14,7 @@ Creates a site to site VPN connection.
|
||||
|
||||
Basic usage:
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_vpn_connection" "default" {
|
||||
customer_gateway_id = "8dab9381-ae73-48b8-9a3d-c460933ef5f7"
|
||||
vpn_gateway_id = "a7900060-f8a8-44eb-be15-ea54cf499703"
|
||||
|
@ -6,7 +6,7 @@ description: |-
|
||||
Creates a site to site VPN local customer gateway.
|
||||
---
|
||||
|
||||
# cloudstack\_vpn\_customer\_gateway
|
||||
# cloudstack_vpn_customer_gateway
|
||||
|
||||
Creates a site to site VPN local customer gateway.
|
||||
|
||||
@ -14,7 +14,7 @@ Creates a site to site VPN local customer gateway.
|
||||
|
||||
Basic usage:
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_vpn_customer_gateway" "default" {
|
||||
name = "test-vpc"
|
||||
cidr = "10.0.0.0/8"
|
||||
|
@ -6,7 +6,7 @@ description: |-
|
||||
Creates a site to site VPN local gateway.
|
||||
---
|
||||
|
||||
# cloudstack\_vpn\_gateway
|
||||
# cloudstack_vpn_gateway
|
||||
|
||||
Creates a site to site VPN local gateway.
|
||||
|
||||
@ -14,7 +14,7 @@ Creates a site to site VPN local gateway.
|
||||
|
||||
Basic usage:
|
||||
|
||||
```
|
||||
```hcl
|
||||
resource "cloudstack_vpn_gateway" "default" {
|
||||
vpc_id = "f8141e2f-4e7e-4c63-9362-986c908b7ea7"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user