Skip to content

Commit

Permalink
Deploy a machine based on its system_id
Browse files Browse the repository at this point in the history
  • Loading branch information
skatsaounis committed Nov 16, 2023
1 parent 8968c14 commit 4deae18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/resources/instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Optional:
- `min_cpu_count` (Number) The minimum number of cores used to allocate the MAAS machine.
- `min_memory` (Number) The minimum RAM memory size (in MB) used to allocate the MAAS machine.
- `pool` (String) The pool name of the MAAS machine to be allocated.
- `system_id` (String) The system_id of the MAAS machine to be allocated.
- `tags` (Set of String) A set of tag names that must be assigned on the MAAS machine to be allocated.
- `zone` (String) The zone name of the MAAS machine to be allocated.

Expand Down
6 changes: 6 additions & 0 deletions maas/resource_maas_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ func resourceMaasInstance() *schema.Resource {
ForceNew: true,
Description: "The pool name of the MAAS machine to be allocated.",
},
"system_id": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Description: "The system_id of the MAAS machine to be allocated.",
},
"tags": {
Type: schema.TypeSet,
Optional: true,
Expand Down

0 comments on commit 4deae18

Please sign in to comment.