-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from smutel/AddVmResource
Add vm resource
- Loading branch information
Showing
29 changed files
with
483 additions
and
748 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
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,43 @@ | ||
# netbox\_virtualization\_vm Resource | ||
|
||
Manages a virtual machine resource within Netbox. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "netbox_virtualization_vm" "vm_test" { | ||
name = "TestVm" | ||
comments = "VM created by terraform" | ||
disk = 50 | ||
memory = 16 | ||
cluster_id = 1 | ||
tag { | ||
name = "tag1" | ||
slug = "tag1" | ||
} | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
* ``cluster_id`` - (Required) ID of the cluster which host this object. | ||
* ``comments`` - (Optional) Comments for this object. | ||
* ``disk`` - (Optional) The size in GB of the disk for this object. | ||
* ``local_context_data`` - (Optional) Local context data for this object. | ||
* ``memory`` - (Optional) The size in MB of the memory of this object. | ||
* ``name`` - (Required) The name for this object. | ||
* ``platform_id`` - (Optional) ID of the platform for this object. | ||
* ``role_id`` - (Optional) ID of the role for this object. | ||
* ``status`` - (Optional) The status among offline, active, planned, staged, failed or decommissioning (active by default). | ||
* ``tenant_id`` - (Optional) ID of the tenant where this object is attached. | ||
* ``vcpus`` - (Optional) The number of VCPUS for this object. | ||
The ``tag`` block supports: | ||
* ``name`` - (Required) Name of the existing tag to associate with this resource. | ||
* ``slug`` - (Required) Slug of the existing tag to associate with this resource. | ||
|
||
## Attributes Reference | ||
|
||
In addition to the above arguments, the following attributes are exported: | ||
* ``id`` - The id (ref in Netbox) of this object. |
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
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
Oops, something went wrong.