-
Notifications
You must be signed in to change notification settings - Fork 2
/
packer.box.json
35 lines (35 loc) · 940 Bytes
/
packer.box.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
{
"variables": {
"version": "1",
"cloud_token": "{{ env `VAGRANT_CLOUD_TOKEN` }}",
"cloud_tag": "tureba/postgresql-lab"
},
"builders": [
{
"name": "box1",
"communicator": "ssh",
"source_path": "centos/8",
"provider": "virtualbox",
"type": "vagrant",
"template": "Vagrantfile.build.box",
"output_vagrantfile": "Vagrantfile.cloud"
}
],
"provisioners": [
{
"type": "ansible",
"playbook_file": "./vagrant/packer.yml",
"extra_arguments": [ "--skip-tags", "upgrade" ]
}
],
"post-processors": [
[
{
"type": "vagrant-cloud",
"box_tag": "{{user `cloud_tag`}}",
"access_token": "{{user `cloud_token`}}",
"version": "{{user `version`}}"
}
]
]
}