-
Notifications
You must be signed in to change notification settings - Fork 10
/
europa.vbox.json
100 lines (100 loc) · 2.75 KB
/
europa.vbox.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
{
"builders": [
{
"boot_command": [
"<tab> text ks=http://{{.HTTPIP}}:{{.HTTPPort}}/ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"disk_size": 20000,
"format": "ova",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"guest_os_type": "RedHat_64",
"http_directory": "build/http",
"iso_checksum": "sha256:30fd8dff2d29a384bd97886fa826fa5be872213c81e853eae3f9d9674f720ad0",
"iso_urls": [
"iso/rhel-8.3-x86_64-dvd.iso",
"https://access.cdn.redhat.com/content/origin/files/sha256/30/30fd8dff2d29a384bd97886fa826fa5be872213c81e853eae3f9d9674f720ad0/rhel-8.3-x86_64-dvd.iso?_auth_=1617216833_ea946151045b3e18f25ba1200048cdb0"
],
"output_directory": "europa-vbox",
"post_shutdown_delay": "120s",
"shutdown_command": "echo '/sbin/halt -h -p' > /tmp/shutdown.sh; echo 'europa'|sudo -S sh '/tmp/shutdown.sh'",
"ssh_password": "eur0pa",
"ssh_port": 22,
"ssh_timeout": "10000s",
"ssh_username": "europa",
"type": "virtualbox-iso",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"4096"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"2"
],
[
"modifyvm",
"{{.Name}}",
"--vram",
"64"
],
[
"modifyvm",
"{{.Name}}",
"--clipboard",
"bidirectional"
],
[
"modifyvm",
"{{.Name}}",
"--draganddrop",
"bidirectional"
]
],
"virtualbox_version_file": ".vbox_version",
"vm_name": "europa"
}
],
"provisioners": [
{
"execute_command": "echo 'europa'|sudo -S sh -c '{{.Vars}} {{.Path}}'",
"environment_vars": ["RH_USERNAME={{user `rh_username`}}",
"RH_PASSWORD={{user `rh_password`}}"],
"scripts": [
"build/initialise.sh"
],
"type": "shell"
},
{
"inline": [
"mkdir /tmp/packer-provisioner-ansible-local"
],
"type": "shell"
},
{
"type": "ansible-local",
"playbook_file": "build/site.yml",
"inventory_file": "build/inv-local.txt",
"playbook_dir": "build",
"staging_directory": "/tmp/packer-provisioner-ansible-local",
"only": ["virtualbox-iso"],
"extra_arguments": [ "-vv" ]
},
{
"execute_command": "echo 'europa'|sudo -S sh '{{.Path}}'",
"scripts": [
"build/postconfig.sh"
],
"type": "shell"
}
],
"variables": {
"ansible_staging_directory": "/tmp/packer-provisioner-ansible-local",
"rh_username": "{{env `RH_USERNAME`}}",
"rh_password": "{{env `RH_PASSWORD`}}"
}
}