Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SYSENG-1727: Rework virtual server resource #154

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading