-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathazure-packer-json
More file actions
38 lines (33 loc) · 1.08 KB
/
Copy pathazure-packer-json
File metadata and controls
38 lines (33 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"builders": [{
"type": "azure-arm",
"client_id": "HSHJAPPAJJJAKKKA",
"client_secret": "HSHJAPPAJJJAKKKA",
"tenant_id": "HSHJAPPAJJJAKKKA",
"subscription_id": "HSHJAPPAJJJAKKKA",
"managed_image_resource_group_name": "myResourceGroup",
"managed_image_name": "myPackerImage",
"public_ip_sku": "Standard",
"os_type": "Linux",
"image_publisher": "canonical",
"image_offer": "0001-com-ubuntu-server-jammy",
"image_sku": "22_04-lts",
"azure_tags": {
"dept": "Engineering",
"task": "Image deployment"
},
"location": "East US",
"vm_size": "Standard_DS2_v2"
}],
"provisioners": [{
"execute_command": "chmod +x {{ .Path }}; {{ .Vars }} sudo -E sh '{{ .Path }}'",
"inline": [
"apt-get update",
"DEBIAN_FRONTEND=noninteractive apt-get install -y ansible git nginx stress",
"git clone https://github.com/bkrraj/ansibletemplatetesting.git /myrepo",
"/usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync"
],
"inline_shebang": "/bin/sh -x",
"type": "shell"
}]
}