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

provider/azurerm: Add support for extensions on virtual machine scale sets #12124

Merged
merged 5 commits into from
Mar 12, 2017

Conversation

rrudduck
Copy link
Contributor

This PR adds support for adding one or more extensions to virtual machine scale sets.

root@364bdd1f6ae3:/go/src/github.com/hashicorp/terraform# make testacc TEST=./builtin/providers/azurerm TESTARGS='-run=TestAccAzureRMVirtualMachineScaleSet_extension'
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/02/20 22:28:41 Generated command/internal_plugin_list.go
TF_ACC=1 go test ./builtin/providers/azurerm -v -run=TestAccAzureRMVirtualMachineScaleSet_extension -timeout 120m
=== RUN   TestAccAzureRMVirtualMachineScaleSet_extension
--- PASS: TestAccAzureRMVirtualMachineScaleSet_extension (478.51s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/azurerm        478.517s
root@364bdd1f6ae3:/go/src/github.com/hashicorp/terraform#

@rrudduck
Copy link
Contributor Author

@stack72 Any issues with this PR or further items to address?

@rrudduck rrudduck changed the title Add support for extensions on virtual machine scale sets provider/azurerm: Add support for extensions on virtual machine scale sets Mar 2, 2017
Copy link
Contributor

@pmcatominey pmcatominey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @rrudduck

I've left a couple of small comments, otherwise looks good!

if properties.Settings != nil {
settings, err := flattenArmVirtualMachineExtensionSettings(*properties.Settings)
if err == nil {
e["settings"] = settings
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would prefer the err was returned here

@@ -783,6 +876,13 @@ func resourceArmVirtualMachineScaleSetOsProfileLWindowsConfigHash(v interface{})
return hashcode.String(buf.String())
}

func resourceArmVirtualMachineScaleSetExtensionHash(v interface{}) int {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function should write all the fields for the extension to ensure the diff works properly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done with the exception of the settings and protected_settings fields since they use the alternate diff funcs.

@rrudduck
Copy link
Contributor Author

rrudduck commented Mar 9, 2017

@pmcatominey Updates done. Let me know if you see anything else.

@stack72 stack72 merged commit e0bdc5f into hashicorp:master Mar 12, 2017
stack72 pushed a commit that referenced this pull request Mar 12, 2017
… sets (#12124)

* Add support for vmss extensions.

* Update website.

* Add multi extension test.

* Return error from settings parsing.

* Update extension hash.
yanndegat pushed a commit to yanndegat/terraform that referenced this pull request Mar 13, 2017
… sets (hashicorp#12124)

* Add support for vmss extensions.

* Update website.

* Add multi extension test.

* Return error from settings parsing.

* Update extension hash.
@ghost
Copy link

ghost commented Apr 15, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants