Skip to content

Instantly share code, notes, and snippets.

@torumakabe
Created March 17, 2016 08:56
Show Gist options
  • Select an option

  • Save torumakabe/43aad57709ec4b5e9167 to your computer and use it in GitHub Desktop.

Select an option

Save torumakabe/43aad57709ec4b5e9167 to your computer and use it in GitHub Desktop.
{
"builders": [{
"type": "azure-arm",
"client_id": "{{user `client_id`}}",
"client_secret": "{{user `client_secret`}}",
"resource_group_name": "{{user `resource_group`}}",
"storage_account": "{{user `storage_account`}}",
"subscription_id": "{{user `subscription_id`}}",
"tenant_id": "{{user `tenant_id`}}",
"capture_container_name": "images",
"capture_name_prefix": "packer",
"image_publisher": "Canonical",
"image_offer": "UbuntuServer",
"image_sku": "14.04.3-LTS",
"location": "Japan West",
"vm_size": "Standard_D1"
}],
"provisioners": [{
"type": "shell",
"scripts": [
"../script/provision.sh"
]
},
{
"type": "file",
"source": "../files/hosts",
"destination": "/tmp/files/hosts"
},
{
"type": "ansible-local",
"playbook_file": "../ansible/baseimage.yml",
"inventory_file": "../ansible/hosts",
"role_paths": [
"../ansible/roles/baseimage"
]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment