forked from NeCTAR-RC/nectar-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fedora-28-x86_64.json
46 lines (46 loc) · 1.25 KB
/
fedora-28-x86_64.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
{
"builders": [
{
"type": "qemu",
"name": "fedora-28-x86_64",
"vm_name": "fedora-28-x86_64",
"accelerator": "kvm",
"disk_size": 4096,
"format": "raw",
"headless": true,
"http_directory": "http",
"iso_url": "http://mirrors.rc.nectar.org.au/packer-iso/Fedora-Server-netinst-x86_64-28-1.1.iso",
"iso_checksum": "ea1efdc692356b3346326f82e2f468903e8da59324fdee8b10eac4fea83f23fe",
"iso_checksum_type": "sha256",
"ssh_password": "b4dP4ssw0Rd",
"ssh_port": 22,
"ssh_username": "root",
"ssh_wait_timeout": "10000s",
"vnc_bind_address": "0.0.0.0",
"qemuargs": [
[ "-m", "2048M" ],
[ "-cpu", "host" ],
[ "-smp", "2" ]
],
"boot_wait": "5s",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/fedora-28-x86_64-kickstart.cfg<enter><wait>"
]
}
],
"provisioners": [
{
"type": "ansible",
"playbook_file": "ansible/playbook.yml",
"extra_arguments": [
"--extra-vars",
"ansible_python_interpreter=/usr/bin/python3"
]
},
{
"type": "shell",
"execute_command": "{{.Vars}} sudo -S -E bash '{{.Path}}'",
"script": "scripts/cleanup.sh"
}
]
}