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
Improve Azure Driver #1491
Improve Azure Driver #1491
Conversation
…on, resource group name in the molecule configuration file
ed06edd
to
8340fef
Compare
Yes, what @wilmardo said. |
I'm going to hold off from merging this. As you know Ansible is adopting Molecule, therefore I do not want to merge anything that may impact future architectural decisions, as I will no longer be leading the development of this project. |
Once the repo has been moved under Ansible we can look at getting this merged. In the short term we welcome testing and feedback on this PR. Thanks for your understanding. |
Thank you for the clarification. |
@lborguetti Hi, repo move is done, so I'm reviewing the PR backlog. I see from comment about from @wilmardo that "Cerberus schema validation" may need updating, could you please take a look at that? |
@gundalow yes. I'll take a look. Thanks, |
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.
Thanks @lborguetti, this looks solid and is a welcome change.
@@ -12,6 +16,12 @@ lint: | |||
platforms: | |||
{%- if cookiecutter.driver_name == 'azure' %} | |||
- name: instance | |||
vm_size: Standard_A0 |
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.
Maybe this is also said in #1491 (comment) but I think we now need to add a schema to validate this against as in https://github.com/ansible/molecule/blob/master/molecule/model/schema_v2.py. If so, there should also be some unit tests that verify validation works as expected.
close/repopren to trigger travis build. |
I would gladly support this if it passes CI and once #1840 is addressed. Until then I will mark it as blocked. The only other option to merge it is if we can find cores that can test it on their own azure accounts. |
Pushing out of next release as per #1491 (comment). Hope we can get moving on this soon but we're lacking some resources right now. It's on the stack! |
@lborguetti can you please fix the conflicts? If you do I will make sure I test it and merge it. |
I am closing this because code changed too much since it it was created and apparently the original uploader no longer active. If the improvements are still desired please do them in small chucks, one improvement at a time. This makes easier to review and test, less likely to have conflicts. In the end merging all improvement in small chucks would be faster than in a single one. For example few days ago I fixed the issue of using the harcoded region. |
Guys,
This PR improves Azure Driver allowing to customize options like resource group name, location, vm size, image reference in the molecule configuration file.
Other improve is create the instance with Azure Managed Disk. The current driver does not remove the storage account created for the instance disk.
Example:
Let me know if this is useful.
Thanks,