Created server build

This commit is contained in:
2023-10-22 18:51:18 -04:00
parent afebefe635
commit 456d32bca9
6 changed files with 388 additions and 38 deletions

59
docs/resources/build.md Normal file
View File

@@ -0,0 +1,59 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "virtfusion_build Resource - terraform-provider-virtfusion"
subcategory: ""
description: |-
Virtfusion Server Build Resource
---
# virtfusion_build (Resource)
Virtfusion Server Build Resource
## Example Usage
```terraform
resource "virtfusion_server" "node1" {
package_id = 1
user_id = 1
hypervisor_id = 1
ipv4 = 1
storage = 30
memory = 1024
cores = 1
traffic = 1000
inbound_network_speed = 100
outbound_network_speed = 100
storage_profile = 1
network_profile = 1
}
resource "virtfusion_build" "node1" {
server_id = virtfusion_server.node1.id
name = "node1-demo"
hostname = "node1.example.com"
osid = 1
vnc = true
ipv6 = true
ssh_keys = [1, 2, 3]
email = true
}
```
<!-- schema generated by tfplugindocs -->
## Schema
### Required
- `name` (String) Server Name
- `osid` (Number) Server Operating System ID
- `server_id` (Number) Server ID
### Optional
- `email` (Boolean) Server Email
- `hostname` (String) Server Hostname
- `ipv6` (Boolean) Server IPv6
- `ssh_keys` (List of Number) Server SSH Keys IDs
- `vnc` (Boolean) Server VNC

View File

@@ -45,7 +45,6 @@ resource "virtfusion_server" "node1" {
- `inbound_network_speed` (Number) Inbound network speed in kB/s. Omit to use the default inbound network speed from the package.
- `ipv4` (Number) IPv4 Addresses to assign. Omit to use the default of 1 IPv4.
- `memory` (Number) How much memory to allocate in MB. Omit to use the default memory size from the package.
- `name` (String) Server name. If omitted, a random UUID will be generated.
- `network_profile` (Number) Network profile ID. Omit to use the default network profile from the package.
- `outbound_network_speed` (Number) Outbound network speed in kB/s. Omit to use the default outbound network speed from the package.
- `storage` (Number) Primary storage size in GB. Omit to use the default storage size from the package.