-
Notifications
You must be signed in to change notification settings - Fork 122
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
Add Microsft Azure Virtual Machine Scale Set provider. #12
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've left a couple of comments. Can you try to also add some more debug logging since understanding what is going wrong might be difficult in prod. See the aws
provider for an example.
discover.go
Outdated
@@ -30,6 +31,7 @@ type Provider interface { | |||
var Providers = map[string]Provider{ | |||
"aws": &aws.Provider{}, | |||
"azure": &azure.Provider{}, | |||
"azurevmss": &azurevmss.Provider{}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you try to roll this into the existing azure
provider since otherwise we're going to duplicate all dependencies. Maybe use a type=vmss
parameter to make it unambiguous.
subscription_id: The id of the subscription | ||
secret_access_key: The authentication credential | ||
resource_group_name: The name of the resource group to filter on | ||
virtual_machine_scale_set_name: The name of the virtual machine scale set to filter on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These name is too long, IMO. What about vm_scale_set
and resource_group
?
addrs = append(addrs, *x.PrivateIPAddress) | ||
} | ||
} | ||
return addrs, nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls add a log.Print("[DEBUG]...
like in the other providers.
Can you also please prefix all commit messages with |
sweet!!! i can do all these things, I just need time :) I'll get to this asap. |
@flyinprogrammer any update? |
got two weddings this weekend, and next week i'm in london, but hopefully soon? i'll definitely rebase before resubmitting. |
|
@flyinprogrammer @magiconair I had a need for this functionality just this week, any updates? :) |
@jbrads I believe we're just waiting on a review. @magiconair I'm more than happy to do more edits! |
LGTM - sorry for the delay on that one! |
This allows us to use the
ListVirtualMachineScaleSetNetworkInterfaces()
API to find the Virtual Machine Scale NICs which are absent in theListAll()
API response.It will enable us to drastically simplify this work flow for consul server bootstrapping: https://github.com/hashicorp/terraform-azurerm-consul/blob/master/modules/run-consul/run-consul#L109-L129