This repository has been archived by the owner on Aug 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fedoraserver28.json
122 lines (122 loc) · 3.84 KB
/
fedoraserver28.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"variables": {
"VAGRANT_TOKEN": "{{env `VAGRANT_TOKEN`}}",
"readme_vagrant":"Fedora Server 28 with kernel 4.17.19-200.fc28.x86_64",
"organization":"CCL-Consulting",
"version" : "1.0.{{timestamp}}",
"http":"http/fedoraserver/28/",
"ks_file": "fedoraserver28.cfg",
"distribution":"fedoraserver28",
"scripts_path":"scripts/fedoraserver/28",
"name":"packer-fedora-server-28-x86_64",
"shutdown":"echo 'vagrant'|sudo systemctl poweroff",
"iso_base_url": "iso",
"iso_checksum_type": "sha256",
"username": "vagrant",
"password": "vagrant",
"disk_size": "40960",
"timeout": "300m",
"headless": "true",
"iso_checksum": "ea1efdc692356b3346326f82e2f468903e8da59324fdee8b10eac4fea83f23fe"
},
"builders": [
{
"type": "qemu",
"qemu_binary": "/usr/libexec/qemu-kvm",
"iso_urls": [
"{{user `iso_base_url`}}/Fedora-Server-netinst-x86_64-28-1.1.iso",
"https://download.fedoraproject.org/pub/fedora/linux/releases/28/Server/x86_64/iso/Fedora-Server-netinst-x86_64-28-1.1.iso"
],
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"ssh_username": "{{user `username`}}",
"ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "{{user `timeout`}}",
"disk_size": "{{user `disk_size`}}",
"headless": "{{user `headless`}}",
"format": "{{user `format`}}",
"accelerator": "kvm",
"net_device": "virtio-net",
"disk_interface": "virtio",
"http_directory": "{{user `http`}}",
"boot_command": [
"<tab> ",
"inst.ks=http://{{.HTTPIP}}:{{.HTTPPort}}/{{user `ks_file`}} ",
"biosdevname=0 ",
"net.ifnames=0 ",
"<enter>"
],
"shutdown_command": "{{user `shutdown`}}",
"qemuargs": [[ "-m", "2048M" ],[ "-smp", "2" ]],
"vm_name": "{{user `name`}}"
},
{
"type": "virtualbox-iso",
"iso_urls": [
"{{user `iso_base_url`}}/Fedora-Server-dvd-x86_64-28-1.1.iso",
"https://download.fedoraproject.org/pub/fedora/linux/releases/28/Server/x86_64/iso/Fedora-Server-dvd-x86_64-28-1.1.iso"
],
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"ssh_username": "{{user `username`}}",
"ssh_password": "{{user `password`}}",
"ssh_wait_timeout": "{{user `timeout`}}",
"disk_size": "{{user `disk_size`}}",
"guest_os_type": "Fedora_64",
"headless": "{{user `headless`}}",
"http_directory": "{{user `http`}}",
"boot_command": [
"<tab> ",
"inst.ks=http://{{.HTTPIP}}:{{.HTTPPort}}/{{user `ks_file`}} ",
"biosdevname=0 ",
"net.ifnames=0 ",
"<enter>"
],
"shutdown_command": "{{user `shutdown`}}",
"virtualbox_version_file": ".vbox_version",
"vm_name": "{{user `name`}}",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"2048"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"2"
]
]
}
],
"provisioners": [
{
"type": "shell",
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"scripts": [
"{{user `scripts_path`}}/update.sh",
"{{user `scripts_path`}}/vagrant.sh",
"{{user `scripts_path`}}/sshd.sh",
"{{user `scripts_path`}}/cleanup.sh"
]
}
],
"post-processors": [
[
{
"output": "builds/{{user `distribution`}}-{{.Provider}}.box",
"compression_level": 9,
"type": "vagrant"
},
{
"type": "vagrant-cloud",
"box_tag": "{{user `organization`}}/{{user `distribution`}}",
"version": "{{user `version`}}",
"access_token": "{{user `VAGRANT_TOKEN`}}",
"version_description": "{{user `readme_vagrant`}}"
}
]
]
}