A Test Kitchen Driver for Azure Virtual Machine.
- Test-Kitchen
gem install kitchen-azure_vm
or put Gemfile
in your project directory.
source 'https://rubygems.org'
gem 'kitchen-azure_vm'
and
bundle
At first, put your .kithcen(.local).yml
like this.
---
driver:
name: azure_vm
management_certificate: /path/to/management_certificate.pem
subscription_id: <%= ENV['AZURE_SUBSCRIPTION_ID'] %>
private_key_file: /path/to/private.key
certificate_file: /path/to/certificate.cer
platforms:
- name: ubuntu-14.04
- name: centos-6.6
suites:
- name: default
run_list:
attributes:
management_certificate
Path to the Management Certificate file.
The file extension is pem
or pfx
only.
See also https://msdn.microsoft.com/en-us/library/azure/gg551722.aspx
Examples:
management_certificate: /path/to/management_certificate.pem
subscription_id
Your Azure Subscription ID.
Examples:
subscription_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
private_key_file
Path to the SSH private key file.
Examples:
private_key_file: /path/to/private.key
certificate_file
Path to the x509 SSH certificate file.
Examples:
certificate_file: /path/to/certificate.cer
vm_user
Login user name on the VM.
The default value is azureuser
.
Examples:
vm_user: example-user
location
Location(Region) of the VM.
The default value is West US
.
Examples:
location: Japan East
ssh_port
Port number of SSH.
The default value is 22
.
Examples:
ssh_port: 2222
destroy_storage_account
Delete Storage Account when called kitchen destroy
.
The default value is true
.
Examples:
destroy_storage_account: false
vm_size
VM instance size.
The default value is Small
.
Examples:
vm_size: Large
vm_image
VM boot image ID.
The default value get from public images by platform.name
.
Examples:
vm_size: Large
- Source hosted at GitHub
- Report issues/questions/feature requests on GitHub Issues
Pull requests are very welcome! Make sure your patches are well tested. Ideally create a topic branch for every separate change you make. For example:
- Fork the repo
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Created and maintained by Masashi Terui (marcy9114@gmail.com)
Apache 2.0 (see LICENSE)