Skip to content

Commit

Permalink
SYSENG-1727: rework anxcloud_virtual_server resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Schäfer committed Mar 19, 2024
1 parent 3d01954 commit 457f078
Show file tree
Hide file tree
Showing 34 changed files with 1,897 additions and 2,504 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ If the change isn't user-facing but still relevant enough for a changelog entry,
* (internal)? scope: short description (#pr, @author)
-->

### Breaking
* anxcloud_virtual_server: (#154, @anx-mschaefer)
* reimplemented the resource using `terraform-plugin-framework`
* resource is now importable if templates of type "templates" are used
* `templates` attribute has been removed. instead use the `template_id` attribute with the `anxcloud_virtual_server_template` datasource
* network IPs may no longer be configured using address IDs, but only address names
* info attribute has been removed. instead attributes are updated to the engine state when the resource is refreshed

### Added
* anxcloud_virtual_server_template datasource for retrieving templates by name (#154, @anx-mschaefer)

### Changed
* (internal) resource/anxcloud_virtual_server: optimize creation of vms with multiple disks (#147, @anx-mschaefer)

Expand Down
4 changes: 0 additions & 4 deletions anxcloud/common_resource_tagging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,3 @@ func generateTagsString(tags ...string) string {
ret.WriteString("]\n")
return ret.String()
}

func withoutTags(tpl string) string {
return fmt.Sprintf(tpl, "")
}
15 changes: 0 additions & 15 deletions anxcloud/helper_test.go

This file was deleted.

1 change: 0 additions & 1 deletion anxcloud/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ func Provider(version string) *schema.Provider {
},
},
ResourcesMap: map[string]*schema.Resource{
"anxcloud_virtual_server": resourceVirtualServer(),
"anxcloud_vlan": resourceVLAN(),
"anxcloud_network_prefix": resourceNetworkPrefix(),
"anxcloud_ip_address": resourceIPAddress(),
Expand Down
Loading

0 comments on commit 457f078

Please sign in to comment.