Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jsturtevant/packer-cloudbase-init
https://github.com/jsturtevant/packer-cloudbase-init
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jsturtevant/packer-cloudbase-init
- Owner: jsturtevant
- Created: 2020-09-28T23:08:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-29T18:38:16.000Z (over 4 years ago)
- Last Synced: 2024-11-27T13:44:14.433Z (2 months ago)
- Language: PowerShell
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# packer-cloudbase-init
Simple packer example for cloudbase-init on Azure.
Set up environment variables for packer variables:
```
"azure_location": "{{env `AZURE_LOCATION`}}",
"subscription_id": "{{env `AZURE_SUBSCRIPTION_ID`}}",
"client_id": "{{env `AZURE_CLIENT_ID`}}",
"client_secret": "{{env `AZURE_CLIENT_SECRET`}}",
"resource_group_name": "{{env `RESOURCE_GROUP_NAME`}}",
"storage_account_name": "{{env `STORAGE_ACCOUNT_NAME`}}",
``````
#run packer
packer build windows.json
# lots of output# create vm with image from packer
az vm create -l westus2 -g test-cluster-api-images -n cbi-1 --image /subscriptions/b9dsdf07/resourceGroups/test-cluster-api-images/providers/Microsoft.Compute/images/capi-1601332624 --admin-user 'azureuser' --custom-data ~/customdata.text
```# Notes
The Cloudbase init configuration are from the example: https://github.com/cloudbase/windows-openstack-imaging-tools/tree/master/Examples/config/azure