-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure_managed_image.json
49 lines (45 loc) · 1.31 KB
/
azure_managed_image.json
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
39
40
41
42
43
44
45
46
47
48
49
{
"variables" : {
"aws_access_key": "{{env `AWS_ACCESS_KEY`}}",
"aws_secret_key" : "{{env `AWS_SECRET_KEY`}}",
"azure_client_id": null,
"azure_secret": null,
"azure_subscription_id": null,
"azure_tenant": null
},
"builders": [
{
"type": "azure-arm",
"client_id": "{{user `azure_client_id`}}",
"client_secret": "{{user `azure_secret`}}",
"subscription_id": "{{user `azure_subscription_id`}}",
"tenant_id": "{{user `azure_tenant_id`}}",
"managed_image_resource_group_name": "packerdemo",
"managed_image_name": "pishoto-{{timestamp}}",
"os_type": "Linux",
"image_publisher": "Canonical",
"image_offer": "UbuntuServer",
"image_sku": "18.04-LTS",
"polling_duration_timeout": "40m",
"azure_tags": {
"dept": "CLI"
},
"location": "West US",
"vm_size": "Standard_A2"
}
],
"provisioners": [{
"type": "ansible",
"playbook_file": "nginx.yml",
"extra_arguments": ["--extra-vars", "ansible_python_interpreter=/usr/bin/python3"]
}],
"post-processors": [{
"type": "manifest",
"output": "manifest.json",
"strip_path": true,
"custom_data": {
"my_custom_data": "example"
}
}
]
}