-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy patheuropa.vbox.json.orig
69 lines (69 loc) · 2.28 KB
/
europa.vbox.json.orig
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
{
"provisioners": [
{
"type": "shell",
"execute_command": "echo 'europa'|sudo -S sh '{{.Path}}'",
"scripts": [ "build/initialise.sh" ]
},
{
"type": "shell",
"inline": [ "mkdir /tmp/packer-provisioner-ansible-local" ]
},
{
"type": "file",
"source": "./cache",
"destination": "/tmp/packer-provisioner-ansible-local/"
},
{
"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" ]
},
{
"type": "shell",
"execute_command": "echo 'europa'|sudo -S sh '{{.Path}}'",
"scripts": [ "build/postconfig.sh" ]
}
],
"variables": {
"ansible_staging_directory": "/tmp/packer-provisioner-ansible-local"
},
"builders": [
{
"type": "virtualbox-iso",
"boot_command": [ "<tab> text ks=http://{{.HTTPIP}}:{{.HTTPPort}}/ks.cfg<enter><wait>" ],
"boot_wait": "10s",
"disk_size": 20000,
"guest_os_type": "RedHat_64",
"http_directory": "build/http",
"iso_checksum": "38d5d51d9d100fd73df031ffd6bd8b1297ce24660dc8c13a3b8b4534a4bd291c",
"iso_checksum_type": "sha256",
"iso_urls": [
"cache/rhel-8.3-x86_64-boot.iso",
"https://developers.redhat.com/content-gateway/file/rhel-8.3-x86_64-boot.iso"
],
"ssh_username": "europa",
"ssh_password": "eur0pa",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"post_shutdown_delay": "120s",
"shutdown_command": "echo '/sbin/halt -h -p' > /tmp/shutdown.sh; echo 'europa'|sudo -S sh '/tmp/shutdown.sh'",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"vm_name": "europa",
"format": "ova",
"virtualbox_version_file": ".vbox_version",
"output_directory": "europa-vbox",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "4096" ],
[ "modifyvm", "{{.Name}}", "--cpus", "2" ],
[ "modifyvm", "{{.Name}}", "--vram", "64" ],
[ "modifyvm", "{{.Name}}", "--clipboard", "bidirectional" ],
[ "modifyvm", "{{.Name}}", "--draganddrop", "bidirectional" ]
]
}
]
}