Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "variables": {
- "client_secret": "",
- "vm_name": ""
- },
- "sensitive-variables": ["client_secret"],
- "builders": [
- {
- "type": "azure-arm",
- "client_id": "{{ arm_deploy_client_id }}",
- "client_secret": "{% raw %}{{user `client_secret`}}{% endraw %}",
- "build_resource_group_name": "{{ packer_rg }}",
- "subscription_id": "{{ arm_subscription_id }}",
- "managed_image_name": "{% if debug_build %}debug-{% endif %}ubuntu-1804_v{{image_version}}",
- "managed_image_resource_group_name": "{{ packer_rg }}",
- "vm_size": "Standard_D4_v3",
- "temp_compute_name": "{% raw %}{{user `vm_name`}}{% endraw %}",
- "os_type": "Linux",
- "image_publisher": "Canonical",
- "image_offer": "UbuntuServer",
- "image_sku": "18.04-LTS",
- "virtual_network_name": "{{ vnet_name }}",
- "virtual_network_resource_group_name": "{{ vnet_rg }}",
- "virtual_network_subnet_name": "{{ vnet_subnet }}",
- "ssh_username": "XXX_USERNAME",
- "ssh_password": "XXX_PASSWORD",
- "custom_data_file": "{{ linux_custom_data_file }}",
- "azure_tags": {
- "tags": "placeholder",
- "packer": "build"
- }
- }
- ],
- "provisioners": [
- {
- "type": "shell",
- "execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'",
- "inline": [
- "userdel -f -r ansible",
- "/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync"
- ],
- "inline_shebang": "/bin/sh -x"
- }
- {% endraw %}
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement