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

Allow nic name to be passed in as a parameter #112

Merged

Conversation

aaronspiller
Copy link
Contributor

  • Updated azurerm.rb to include passing in a parameter for the name of the nic
    and also using that name or generating a nic name based on the vm name
  • Updated internal.erb to include nic name updates and also disk names that
    are unique based on vm name

Description

In our environment we have to use a predefined resource group with a specific subscription, and are not able to create a new resource group for each VM provisioned. As a result we can only create on VM at a time since the name "nic" is hardcoded and in use once a VM is provisioned.
This pull request is to allow for the nic name to be passed in as a parameter, or at least be unique based on the name of the VM if it is passed in. Testing in our site has dramatically improved our ability to have multiple nodes running at the same time.
I haven't cracked the nut of a destroy only destroying what it creates, but this is a big improvement

Issues Resolved

[List any existing issues this PR resolves, or any Discourse or
StackOverflow discussions that are relevant]

Check List

  • New functionality includes tests
  • All tests pass
  • PR title is a worthy inclusion in the CHANGELOG

- Updated azurerm.rb to include passing in a varibale for the name of the nic
and also using that name or generating a nic name based on the vm name
- Updated internal.erb to include nic name updates and also disk names that
are unique based on vm name
Copy link
Contributor

@stuartpreston stuartpreston left a comment

Choose a reason for hiding this comment

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

Thank you very much for this contribution - happy to get this merged, but please could you rebase without the updated gemspec? (I will update the version at release time). Also would you be able to add a line into the readme to make note of this new parameter. Thanks again @aaronspiller

kitchen-azurerm.gemspec Show resolved Hide resolved
Copy link
Contributor

@stuartpreston stuartpreston left a comment

Choose a reason for hiding this comment

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

I'm going to merge this as-is and fix up any style issue myself. Thanks for the contribution!

@stuartpreston stuartpreston merged commit e9349f0 into test-kitchen:master Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants