diff --git a/dist/CHANGELOG.md b/dist/CHANGELOG.md new file mode 100644 index 0000000..d6cc7a0 --- /dev/null +++ b/dist/CHANGELOG.md @@ -0,0 +1,2 @@ +## Changelog +* 40fd8e8 Generate docs (#255) diff --git a/dist/artifacts.json b/dist/artifacts.json new file mode 100644 index 0000000..85363c5 --- /dev/null +++ b/dist/artifacts.json @@ -0,0 +1 @@ +[{"name":"metadata.json","path":"dist/metadata.json","internal_type":30,"type":"Metadata"},{"name":"terraform-provider-hpegl_v0.4.8.exe","path":"dist/terraform-provider-hpegl_windows_arm_6/terraform-provider-hpegl_v0.4.8.exe","goos":"windows","goarch":"arm","goarm":"6","internal_type":4,"type":"Binary","extra":{"Binary":"terraform-provider-hpegl_v0.4.8","Ext":".exe","ID":"terraform-provider-hpegl"}},{"name":"terraform-provider-hpegl_v0.4.8.exe","path":"dist/terraform-provider-hpegl_windows_386/terraform-provider-hpegl_v0.4.8.exe","goos":"windows","goarch":"386","internal_type":4,"type":"Binary","extra":{"Binary":"terraform-provider-hpegl_v0.4.8","Ext":".exe","ID":"terraform-provider-hpegl"}},{"name":"terraform-provider-hpegl_v0.4.8","path":"dist/terraform-provider-hpegl_freebsd_arm_6/terraform-provider-hpegl_v0.4.8","goos":"freebsd","goarch":"arm","goarm":"6","internal_type":4,"type":"Binary","extra":{"Binary":"terraform-provider-hpegl_v0.4.8","Ext":"","ID":"terraform-provider-hpegl"}},{"name":"terraform-provider-hpegl_v0.4.8","path":"dist/terraform-provider-hpegl_freebsd_386/terraform-provider-hpegl_v0.4.8","goos":"freebsd","goarch":"386","internal_type":4,"type":"Binary","extra":{"Binary":"terraform-provider-hpegl_v0.4.8","Ext":"","ID":"terraform-provider-hpegl"}},{"name":"terraform-provider-hpegl_v0.4.8.exe","path":"dist/terraform-provider-hpegl_windows_arm64/terraform-provider-hpegl_v0.4.8.exe","goos":"windows","goarch":"arm64","internal_type":4,"type":"Binary","extra":{"Binary":"terraform-provider-hpegl_v0.4.8","Ext":".exe","ID":"terraform-provider-hpegl"}},{"name":"terraform-provider-hpegl_v0.4.8","path":"dist/terraform-provider-hpegl_freebsd_arm64/terraform-provider-hpegl_v0.4.8","goos":"freebsd","goarch":"arm64","internal_type":4,"type":"Binary","extra":{"Binary":"terraform-provider-hpegl_v0.4.8","Ext":"","ID":"terraform-provider-hpegl"}},{"name":"terraform-provider-hpegl_v0.4.8","path":"dist/terraform-provider-hpegl_freebsd_amd64_v1/terraform-provider-hpegl_v0.4.8","goos":"freebsd","goarch":"amd64","goamd64":"v1","internal_type":4,"type":"Binary","extra":{"Binary":"terraform-provider-hpegl_v0.4.8","Ext":"","ID":"terraform-provider-hpegl"}},{"name":"terraform-provider-hpegl_v0.4.8.exe","path":"dist/terraform-provider-hpegl_windows_amd64_v1/terraform-provider-hpegl_v0.4.8.exe","goos":"windows","goarch":"amd64","goamd64":"v1","internal_type":4,"type":"Binary","extra":{"Binary":"terraform-provider-hpegl_v0.4.8","Ext":".exe","ID":"terraform-provider-hpegl"}},{"name":"terraform-provider-hpegl_v0.4.8","path":"dist/terraform-provider-hpegl_linux_386/terraform-provider-hpegl_v0.4.8","goos":"linux","goarch":"386","internal_type":4,"type":"Binary","extra":{"Binary":"terraform-provider-hpegl_v0.4.8","Ext":"","ID":"terraform-provider-hpegl"}},{"name":"terraform-provider-hpegl_v0.4.8","path":"dist/terraform-provider-hpegl_linux_arm_6/terraform-provider-hpegl_v0.4.8","goos":"linux","goarch":"arm","goarm":"6","internal_type":4,"type":"Binary","extra":{"Binary":"terraform-provider-hpegl_v0.4.8","Ext":"","ID":"terraform-provider-hpegl"}},{"name":"terraform-provider-hpegl_v0.4.8","path":"dist/terraform-provider-hpegl_linux_amd64_v1/terraform-provider-hpegl_v0.4.8","goos":"linux","goarch":"amd64","goamd64":"v1","internal_type":4,"type":"Binary","extra":{"Binary":"terraform-provider-hpegl_v0.4.8","Ext":"","ID":"terraform-provider-hpegl"}},{"name":"terraform-provider-hpegl_v0.4.8","path":"dist/terraform-provider-hpegl_linux_arm64/terraform-provider-hpegl_v0.4.8","goos":"linux","goarch":"arm64","internal_type":4,"type":"Binary","extra":{"Binary":"terraform-provider-hpegl_v0.4.8","Ext":"","ID":"terraform-provider-hpegl"}},{"name":"terraform-provider-hpegl_v0.4.8","path":"dist/terraform-provider-hpegl_darwin_amd64_v1/terraform-provider-hpegl_v0.4.8","goos":"darwin","goarch":"amd64","goamd64":"v1","internal_type":4,"type":"Binary","extra":{"Binary":"terraform-provider-hpegl_v0.4.8","Ext":"","ID":"terraform-provider-hpegl"}},{"name":"terraform-provider-hpegl_v0.4.8","path":"dist/terraform-provider-hpegl_darwin_arm64/terraform-provider-hpegl_v0.4.8","goos":"darwin","goarch":"arm64","internal_type":4,"type":"Binary","extra":{"Binary":"terraform-provider-hpegl_v0.4.8","Ext":"","ID":"terraform-provider-hpegl"}},{"name":"terraform-provider-hpegl_0.4.8_windows_arm.zip","path":"dist/terraform-provider-hpegl_0.4.8_windows_arm.zip","goos":"windows","goarch":"arm","goarm":"6","internal_type":1,"type":"Archive","extra":{"Binaries":["terraform-provider-hpegl_v0.4.8.exe"],"Checksum":"sha256:14a25ed3cc9b3f2fdedaa8faf2ee60b1a0a4c97f18bdd863b670237c6925d67b","Format":"zip","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"terraform-provider-hpegl_0.4.8_windows_386.zip","path":"dist/terraform-provider-hpegl_0.4.8_windows_386.zip","goos":"windows","goarch":"386","internal_type":1,"type":"Archive","extra":{"Binaries":["terraform-provider-hpegl_v0.4.8.exe"],"Checksum":"sha256:d22ccc8ced6a758ded3f467fe6358bcecd6e2ce51fe7293ed992884c64d14a20","Format":"zip","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"terraform-provider-hpegl_0.4.8_windows_arm64.zip","path":"dist/terraform-provider-hpegl_0.4.8_windows_arm64.zip","goos":"windows","goarch":"arm64","internal_type":1,"type":"Archive","extra":{"Binaries":["terraform-provider-hpegl_v0.4.8.exe"],"Checksum":"sha256:b685b95e15edccc83086d612265fab9bcbc812df570682716586b56812784b23","Format":"zip","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"terraform-provider-hpegl_0.4.8_freebsd_arm64.zip","path":"dist/terraform-provider-hpegl_0.4.8_freebsd_arm64.zip","goos":"freebsd","goarch":"arm64","internal_type":1,"type":"Archive","extra":{"Binaries":["terraform-provider-hpegl_v0.4.8"],"Checksum":"sha256:4c69e3e785b78fb38094201462c773cb030da503302f66ab2270cfe4b1426b63","Format":"zip","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"terraform-provider-hpegl_0.4.8_linux_arm64.zip","path":"dist/terraform-provider-hpegl_0.4.8_linux_arm64.zip","goos":"linux","goarch":"arm64","internal_type":1,"type":"Archive","extra":{"Binaries":["terraform-provider-hpegl_v0.4.8"],"Checksum":"sha256:6f313f7c509b0de2b567ddb3480d08bba81b45d1a326165affa4dab1c342aa2e","Format":"zip","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"terraform-provider-hpegl_0.4.8_freebsd_amd64.zip","path":"dist/terraform-provider-hpegl_0.4.8_freebsd_amd64.zip","goos":"freebsd","goarch":"amd64","goamd64":"v1","internal_type":1,"type":"Archive","extra":{"Binaries":["terraform-provider-hpegl_v0.4.8"],"Checksum":"sha256:4412128a21ca65d2875d9326d80df442e73e30669d4b6b152c07bde7770036ee","Format":"zip","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"terraform-provider-hpegl_0.4.8_linux_amd64.zip","path":"dist/terraform-provider-hpegl_0.4.8_linux_amd64.zip","goos":"linux","goarch":"amd64","goamd64":"v1","internal_type":1,"type":"Archive","extra":{"Binaries":["terraform-provider-hpegl_v0.4.8"],"Checksum":"sha256:4c276bf6bd978b9bdb909ca5e54cb1aa1619a030f5464051360c479ee5191fa4","Format":"zip","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"terraform-provider-hpegl_0.4.8_windows_amd64.zip","path":"dist/terraform-provider-hpegl_0.4.8_windows_amd64.zip","goos":"windows","goarch":"amd64","goamd64":"v1","internal_type":1,"type":"Archive","extra":{"Binaries":["terraform-provider-hpegl_v0.4.8.exe"],"Checksum":"sha256:9ba7d6cae79745cb304eda68019651c27b7f3ce6942ba31bd631c6b0271729b5","Format":"zip","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"terraform-provider-hpegl_0.4.8_freebsd_arm.zip","path":"dist/terraform-provider-hpegl_0.4.8_freebsd_arm.zip","goos":"freebsd","goarch":"arm","goarm":"6","internal_type":1,"type":"Archive","extra":{"Binaries":["terraform-provider-hpegl_v0.4.8"],"Checksum":"sha256:ce6fd314b560d4869e923e7066a4e92172b2411f89af93f9fd5f5935a202af1f","Format":"zip","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"terraform-provider-hpegl_0.4.8_freebsd_386.zip","path":"dist/terraform-provider-hpegl_0.4.8_freebsd_386.zip","goos":"freebsd","goarch":"386","internal_type":1,"type":"Archive","extra":{"Binaries":["terraform-provider-hpegl_v0.4.8"],"Checksum":"sha256:66185d8c13f10eacdaa05aa5458c1ff7555165468c4c53a0220fd636874a424c","Format":"zip","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"terraform-provider-hpegl_0.4.8_linux_arm.zip","path":"dist/terraform-provider-hpegl_0.4.8_linux_arm.zip","goos":"linux","goarch":"arm","goarm":"6","internal_type":1,"type":"Archive","extra":{"Binaries":["terraform-provider-hpegl_v0.4.8"],"Checksum":"sha256:fbf1abafa5139df4846713e48443aef33a3f0ceaedd652a07c60eb73f2950be5","Format":"zip","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"terraform-provider-hpegl_0.4.8_linux_386.zip","path":"dist/terraform-provider-hpegl_0.4.8_linux_386.zip","goos":"linux","goarch":"386","internal_type":1,"type":"Archive","extra":{"Binaries":["terraform-provider-hpegl_v0.4.8"],"Checksum":"sha256:a3063dd329dea19e529cbe191dd8433ddba32bfc7765355e309d446aacbde74b","Format":"zip","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"terraform-provider-hpegl_0.4.8_darwin_amd64.zip","path":"dist/terraform-provider-hpegl_0.4.8_darwin_amd64.zip","goos":"darwin","goarch":"amd64","goamd64":"v1","internal_type":1,"type":"Archive","extra":{"Binaries":["terraform-provider-hpegl_v0.4.8"],"Checksum":"sha256:1554ae7ea0c3e41140ce8b023049164db57c05ffa05490bee06188c351b90874","Format":"zip","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"terraform-provider-hpegl_0.4.8_darwin_arm64.zip","path":"dist/terraform-provider-hpegl_0.4.8_darwin_arm64.zip","goos":"darwin","goarch":"arm64","internal_type":1,"type":"Archive","extra":{"Binaries":["terraform-provider-hpegl_v0.4.8"],"Checksum":"sha256:a8554059276e7a4aea3c855991714847b1a2b4a97dc3e06b16657ec66a2e4072","Format":"zip","ID":"default","Replaces":null,"WrappedIn":""}},{"name":"terraform-provider-hpegl_0.4.8_SHA256SUMS","path":"dist/terraform-provider-hpegl_0.4.8_SHA256SUMS","internal_type":12,"type":"Checksum","extra":{}}] \ No newline at end of file diff --git a/dist/config.yaml b/dist/config.yaml new file mode 100644 index 0000000..a8e435d --- /dev/null +++ b/dist/config.yaml @@ -0,0 +1,127 @@ +project_name: terraform-provider-hpegl +release: + github: + owner: HPE + name: terraform-provider-hpegl + name_template: '{{.Tag}}' +builds: + - id: terraform-provider-hpegl + goos: + - freebsd + - windows + - linux + - darwin + goarch: + - amd64 + - "386" + - arm + - arm64 + goarm: + - "6" + gomips: + - hardfloat + goamd64: + - v1 + targets: + - freebsd_amd64_v1 + - freebsd_386 + - freebsd_arm_6 + - freebsd_arm64 + - windows_amd64_v1 + - windows_386 + - windows_arm_6 + - windows_arm64 + - linux_amd64_v1 + - linux_386 + - linux_arm_6 + - linux_arm64 + - darwin_amd64_v1 + - darwin_arm64 + ignore: + - goos: darwin + goarch: "386" + dir: . + main: . + binary: '{{ .ProjectName }}_v{{ .Version }}' + builder: go + mod_timestamp: '{{ .CommitTimestamp }}' + gobinary: go + command: build + ldflags: + - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} + flags: + - -trimpath + env: + - CGO_ENABLED=0 +archives: + - id: default + name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' + format: zip + files: + - src: none* +snapshot: + name_template: '{{ .Version }}-SNAPSHOT-{{ .ShortCommit }}' +checksum: + name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS' + algorithm: sha256 +changelog: + skip: "false" +dist: dist +env_files: + github_token: ~/.config/goreleaser/github_token + gitlab_token: ~/.config/goreleaser/gitlab_token + gitea_token: ~/.config/goreleaser/gitea_token +before: + hooks: + - go mod tidy +source: + name_template: '{{ .ProjectName }}-{{ .Version }}' + format: tar.gz +gomod: + gobinary: go +announce: + twitter: + message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}' + mastodon: + message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}' + server: "" + reddit: + title_template: '{{ .ProjectName }} {{ .Tag }} is out!' + url_template: '{{ .ReleaseURL }}' + slack: + message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}' + username: GoReleaser + discord: + message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}' + author: GoReleaser + color: "3888754" + icon_url: https://goreleaser.com/static/avatar.png + teams: + title_template: '{{ .ProjectName }} {{ .Tag }} is out!' + message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}' + color: '#2D313E' + icon_url: https://goreleaser.com/static/avatar.png + smtp: + subject_template: '{{ .ProjectName }} {{ .Tag }} is out!' + body_template: 'You can view details from: {{ .ReleaseURL }}' + mattermost: + message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}' + title_template: '{{ .ProjectName }} {{ .Tag }} is out!' + username: GoReleaser + linkedin: + message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}' + telegram: + message_template: '{{ .ProjectName }} {{ mdv2escape .Tag }} is out! Check it out at {{ mdv2escape .ReleaseURL }}' + parse_mode: MarkdownV2 + webhook: + message_template: '{ "message": "{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}"}' + content_type: application/json; charset=utf-8 + opencollective: + title_template: '{{ .Tag }}' + message_template: '{{ .ProjectName }} {{ .Tag }} is out!
Check it out at {{ .ReleaseURL }}' +git: + tag_sort: -version:refname +github_urls: + download: https://github.com +gitlab_urls: + download: https://gitlab.com diff --git a/dist/metadata.json b/dist/metadata.json new file mode 100644 index 0000000..413ce2a --- /dev/null +++ b/dist/metadata.json @@ -0,0 +1 @@ +{"project_name":"terraform-provider-hpegl","tag":"v0.4.8","previous_tag":"v0.4.7","version":"0.4.8","commit":"40fd8e819c142936188b69e9eabdf89981a50bab","date":"2024-09-16T15:11:09.800728377+01:00","runtime":{"goos":"linux","goarch":"amd64"}} \ No newline at end of file diff --git a/dist/terraform-provider-hpegl_darwin_amd64_v1/terraform-provider-hpegl_v0.4.8 b/dist/terraform-provider-hpegl_darwin_amd64_v1/terraform-provider-hpegl_v0.4.8 new file mode 100755 index 0000000..0bf469c Binary files /dev/null and b/dist/terraform-provider-hpegl_darwin_amd64_v1/terraform-provider-hpegl_v0.4.8 differ diff --git a/dist/terraform-provider-hpegl_darwin_arm64/terraform-provider-hpegl_v0.4.8 b/dist/terraform-provider-hpegl_darwin_arm64/terraform-provider-hpegl_v0.4.8 new file mode 100755 index 0000000..f58d109 Binary files /dev/null and b/dist/terraform-provider-hpegl_darwin_arm64/terraform-provider-hpegl_v0.4.8 differ diff --git a/dist/terraform-provider-hpegl_freebsd_386/terraform-provider-hpegl_v0.4.8 b/dist/terraform-provider-hpegl_freebsd_386/terraform-provider-hpegl_v0.4.8 new file mode 100755 index 0000000..92d5fe5 Binary files /dev/null and b/dist/terraform-provider-hpegl_freebsd_386/terraform-provider-hpegl_v0.4.8 differ diff --git a/dist/terraform-provider-hpegl_freebsd_amd64_v1/terraform-provider-hpegl_v0.4.8 b/dist/terraform-provider-hpegl_freebsd_amd64_v1/terraform-provider-hpegl_v0.4.8 new file mode 100755 index 0000000..65b7449 Binary files /dev/null and b/dist/terraform-provider-hpegl_freebsd_amd64_v1/terraform-provider-hpegl_v0.4.8 differ diff --git a/dist/terraform-provider-hpegl_freebsd_arm64/terraform-provider-hpegl_v0.4.8 b/dist/terraform-provider-hpegl_freebsd_arm64/terraform-provider-hpegl_v0.4.8 new file mode 100755 index 0000000..98e806d Binary files /dev/null and b/dist/terraform-provider-hpegl_freebsd_arm64/terraform-provider-hpegl_v0.4.8 differ diff --git a/dist/terraform-provider-hpegl_freebsd_arm_6/terraform-provider-hpegl_v0.4.8 b/dist/terraform-provider-hpegl_freebsd_arm_6/terraform-provider-hpegl_v0.4.8 new file mode 100755 index 0000000..52844a4 Binary files /dev/null and b/dist/terraform-provider-hpegl_freebsd_arm_6/terraform-provider-hpegl_v0.4.8 differ diff --git a/dist/terraform-provider-hpegl_linux_386/terraform-provider-hpegl_v0.4.8 b/dist/terraform-provider-hpegl_linux_386/terraform-provider-hpegl_v0.4.8 new file mode 100755 index 0000000..934569b Binary files /dev/null and b/dist/terraform-provider-hpegl_linux_386/terraform-provider-hpegl_v0.4.8 differ diff --git a/dist/terraform-provider-hpegl_linux_amd64_v1/terraform-provider-hpegl_v0.4.8 b/dist/terraform-provider-hpegl_linux_amd64_v1/terraform-provider-hpegl_v0.4.8 new file mode 100755 index 0000000..55109a4 Binary files /dev/null and b/dist/terraform-provider-hpegl_linux_amd64_v1/terraform-provider-hpegl_v0.4.8 differ diff --git a/dist/terraform-provider-hpegl_linux_arm64/terraform-provider-hpegl_v0.4.8 b/dist/terraform-provider-hpegl_linux_arm64/terraform-provider-hpegl_v0.4.8 new file mode 100755 index 0000000..2115a25 Binary files /dev/null and b/dist/terraform-provider-hpegl_linux_arm64/terraform-provider-hpegl_v0.4.8 differ diff --git a/dist/terraform-provider-hpegl_linux_arm_6/terraform-provider-hpegl_v0.4.8 b/dist/terraform-provider-hpegl_linux_arm_6/terraform-provider-hpegl_v0.4.8 new file mode 100755 index 0000000..be9525e Binary files /dev/null and b/dist/terraform-provider-hpegl_linux_arm_6/terraform-provider-hpegl_v0.4.8 differ diff --git a/dist/terraform-provider-hpegl_windows_386/terraform-provider-hpegl_v0.4.8.exe b/dist/terraform-provider-hpegl_windows_386/terraform-provider-hpegl_v0.4.8.exe new file mode 100755 index 0000000..b828627 Binary files /dev/null and b/dist/terraform-provider-hpegl_windows_386/terraform-provider-hpegl_v0.4.8.exe differ diff --git a/dist/terraform-provider-hpegl_windows_amd64_v1/terraform-provider-hpegl_v0.4.8.exe b/dist/terraform-provider-hpegl_windows_amd64_v1/terraform-provider-hpegl_v0.4.8.exe new file mode 100755 index 0000000..012dc7a Binary files /dev/null and b/dist/terraform-provider-hpegl_windows_amd64_v1/terraform-provider-hpegl_v0.4.8.exe differ diff --git a/dist/terraform-provider-hpegl_windows_arm64/terraform-provider-hpegl_v0.4.8.exe b/dist/terraform-provider-hpegl_windows_arm64/terraform-provider-hpegl_v0.4.8.exe new file mode 100755 index 0000000..493dc9c Binary files /dev/null and b/dist/terraform-provider-hpegl_windows_arm64/terraform-provider-hpegl_v0.4.8.exe differ diff --git a/dist/terraform-provider-hpegl_windows_arm_6/terraform-provider-hpegl_v0.4.8.exe b/dist/terraform-provider-hpegl_windows_arm_6/terraform-provider-hpegl_v0.4.8.exe new file mode 100755 index 0000000..5c2b235 Binary files /dev/null and b/dist/terraform-provider-hpegl_windows_arm_6/terraform-provider-hpegl_v0.4.8.exe differ diff --git a/docs/data-sources/metal_available_resources.md b/docs/data-sources/metal_available_resources.md index f56d845..769b962 100644 --- a/docs/data-sources/metal_available_resources.md +++ b/docs/data-sources/metal_available_resources.md @@ -219,6 +219,8 @@ Read-Only: Read-Only: +- `active_site` (String) +- `created_site` (String) - `description` (String) - `flavor` (String) - `flavor_id` (String) @@ -227,12 +229,15 @@ Read-Only: - `location` (String) - `location_id` (String) - `name` (String) +- `replication_enabled` (Boolean) - `shareable` (Boolean) - `size` (Number) +- `size_in_use` (Number) - `state` (String) - `status` (String) - `storage_pool` (String) - `storage_pool_id` (String) +- `unmanaged` (Boolean) - `volume_collection` (String) - `volume_collection_id` (String) - `wwn` (String) diff --git a/docs/data-sources/vmaas_morpheus_details.md b/docs/data-sources/vmaas_morpheus_details.md new file mode 100644 index 0000000..c344a12 --- /dev/null +++ b/docs/data-sources/vmaas_morpheus_details.md @@ -0,0 +1,94 @@ +--- +layout: "" +page_title: "hpegl_vmaas_morpheus_details Data-source - vmaas-terraform-data-sources" +subcategory: "vmaas" +description: |- + The hpegl_vmaas_morpheus_details data source can be used to get a details of the Morpheus instance + used by VMaaS. The details that can be retrieved are the access_token, valid_till (time until the token expires, + in seconds), and the URL of the Morpheus instance. +--- + +-> Compatible version >= 5.2.4 + +# Data-source hpegl_vmaas_morpheus_details + +The hpegl_vmaas_morpheus_details data source can be used to get a details of the Morpheus instance + used by VMaaS. The details that can be retrieved are the access_token, valid_till (time until the token expires, + in seconds), and the URL of the Morpheus instance. + +`hpegl_vmaas_morpheus_details` data-source supports fetching the details of the on-prem Morpheus instance. + +## Example usage with the Morpheus provider - one location and one space-name + +```terraform +# (C) Copyright 2024 Hewlett Packard Enterprise Development LP + +data "hpegl_vmaas_morpheus_details" "morpheus_details" {} + +provider "morpheus" { + url = data.hpegl_vmaas_morpheus_details.morpheus_details.url + access_token = data.hpegl_vmaas_morpheus_details.morpheus_details.access_token +} +``` + +## Example usage with the Morpheus provider - multiple locations and/or space-names + +```terraform +# (C) Copyright 2024 Hewlett Packard Enterprise Development LP + +# Location 1 +provider "hpegl" { + vmaas { + location = var.location_1 + space_name = var.space_1 + } + + alias = "location_1" +} + +data "hpegl_vmaas_morpheus_details" "location_1" { + provider = hpegl.location_1 +} + +provider "morpheus" { + url = data.hpegl_vmaas_morpheus_details.location_1.url + access_token = data.hpegl_vmaas_morpheus_details.location_1.access_token + + alias = "morpheus_location_1" +} + + +# Location 2 +provider "hpegl" { + vmaas { + location = var.location_2 + space_name = var.space_2 + } + + alias = "location_2" +} + +data "hpegl_vmaas_morpheus_details" "location_2" { + provider = hpegl.location_2 +} + +provider "morpheus" { + url = data.hpegl_vmaas_morpheus_details.location_2.url + access_token = data.hpegl_vmaas_morpheus_details.location_2.access_token + + alias = "morpheus_location_2" +} +``` + +-> Note that multiple hpegl provider stanzas along with provider aliasing should be used in the case + where there are multiple VMaaS locations and/or space-names + + +## Schema + +### Read-Only + +- `access_token` (String, Sensitive) Morpheus access_token +- `id` (String) The ID of this resource. +- `url` (String) Morpheus URL +- `valid_till` (String) time until the token expires, in seconds diff --git a/docs/index.md b/docs/index.md index dcc91a7..fcb200e 100644 --- a/docs/index.md +++ b/docs/index.md @@ -137,5 +137,6 @@ Optional: Optional: - `api_url` (String) The URL to use for the VMaaS API, can also be set with the HPEGL_VMAAS_API_URL env var +- `broker_url` (String) The URL to use for the VMaaS Broker API, can also be set with the HPEGL_VMAAS_BROKER_URL env var - `location` (String) Location of GL VMaaS Service, can also be set with the HPEGL_VMAAS_LOCATION env var. - `space_name` (String) It can also be set with the HPEGL_VMAAS_SPACE_NAME env var. When `HPEGL_IAM_VERSION` is `glcs` it refers to IAM Space name of the GL VMaaS Service i.e., Default. When `HPEGL_IAM_VERSION` is `glp` it refers to GLP Workspace ID. diff --git a/docs/resources/metal_volume.md b/docs/resources/metal_volume.md index b492f49..5a3873f 100644 --- a/docs/resources/metal_volume.md +++ b/docs/resources/metal_volume.md @@ -57,12 +57,17 @@ resource "hpegl_metal_volume" "test_vols" { ### Read-Only +- `active_site` (String) The site where the remote copy role for the volume is Primary at the time of most recent import. +- `created_site` (String) The site where the volume was originally created. - `flavor_id` (String) The flavor of the volume to be created. - `id` (String) The ID of this resource. - `location_id` (String) LocationID. +- `replication_enabled` (Boolean) Indicates whether replication is enabled for this volume. +- `size_in_use` (Number) The amount of the volume currently used as reported by the array in GBytes. - `state` (String) The volume provisioning state. - `status` (String) The volume provisioning status. - `storage_pool_id` (String) The storage pool of the volume to be created. +- `unmanaged` (Boolean) Indicates whether the volume is a native Metal created one or an external one. - `wwn` (String) The volume serial number. diff --git a/examples/data-sources/hpegl_vmaas_morpheus_details/minimal.tf b/examples/data-sources/hpegl_vmaas_morpheus_details/minimal.tf new file mode 100644 index 0000000..3295176 --- /dev/null +++ b/examples/data-sources/hpegl_vmaas_morpheus_details/minimal.tf @@ -0,0 +1,10 @@ +# (C) Copyright 2024 Hewlett Packard Enterprise Development LP + +data "hpegl_vmaas_morpheus_details" "morpheus_details" {} + +provider "morpheus" { + url = data.hpegl_vmaas_morpheus_details.morpheus_details.url + access_token = data.hpegl_vmaas_morpheus_details.morpheus_details.access_token +} + + diff --git a/examples/data-sources/hpegl_vmaas_morpheus_details/multiple.tf b/examples/data-sources/hpegl_vmaas_morpheus_details/multiple.tf new file mode 100644 index 0000000..79770f8 --- /dev/null +++ b/examples/data-sources/hpegl_vmaas_morpheus_details/multiple.tf @@ -0,0 +1,46 @@ +# (C) Copyright 2024 Hewlett Packard Enterprise Development LP + +# Location 1 +provider "hpegl" { + vmaas { + location = var.location_1 + space_name = var.space_1 + } + + alias = "location_1" +} + +data "hpegl_vmaas_morpheus_details" "location_1" { + provider = hpegl.location_1 +} + +provider "morpheus" { + url = data.hpegl_vmaas_morpheus_details.location_1.url + access_token = data.hpegl_vmaas_morpheus_details.location_1.access_token + + alias = "morpheus_location_1" +} + + +# Location 2 +provider "hpegl" { + vmaas { + location = var.location_2 + space_name = var.space_2 + } + + alias = "location_2" +} + +data "hpegl_vmaas_morpheus_details" "location_2" { + provider = hpegl.location_2 +} + +provider "morpheus" { + url = data.hpegl_vmaas_morpheus_details.location_2.url + access_token = data.hpegl_vmaas_morpheus_details.location_2.access_token + + alias = "morpheus_location_2" +} + + diff --git a/templates/data-sources/vmaas_morpheus_details.md.tmpl b/templates/data-sources/vmaas_morpheus_details.md.tmpl new file mode 100644 index 0000000..148b85e --- /dev/null +++ b/templates/data-sources/vmaas_morpheus_details.md.tmpl @@ -0,0 +1,28 @@ +--- +layout: "" +page_title: "hpegl_vmaas_morpheus_details Data-source - vmaas-terraform-data-sources" +subcategory: {{ $arr := split .Name "_" }}"{{ index $arr 1 }}" +description: |- +{{ .Description | plainmarkdown | trimspace | prefixlines " " }} +--- + +-> Compatible version >= 5.2.4 + +# Data-source hpegl_vmaas_morpheus_details + +{{ .Description | trimspace }} + +`hpegl_vmaas_morpheus_details` data-source supports fetching the details of the on-prem Morpheus instance. + +## Example usage with the Morpheus provider - one location and one space-name + +{{tffile "examples/data-sources/hpegl_vmaas_morpheus_details/minimal.tf"}} + +## Example usage with the Morpheus provider - multiple locations and/or space-names + +{{tffile "examples/data-sources/hpegl_vmaas_morpheus_details/multiple.tf"}} + +-> Note that multiple hpegl provider stanzas along with provider aliasing should be used in the case + where there are multiple VMaaS locations and/or space-names + +{{ .SchemaMarkdown | trimspace }}