This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpacker-centos6.json
81 lines (81 loc) · 2.03 KB
/
packer-centos6.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
{
"builders": [
{
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
],
"guest_additions_mode": "upload",
"guest_additions_path": "VBoxGuestAdditions.iso",
"guest_os_type": "RedHat_64",
"headless": false,
"http_directory": "kickstart",
"iso_checksum": "7c0dee2a0494dabd84809b72ddb4b761f9ef92b78a506aef709b531c54d30770",
"iso_checksum_type": "sha256",
"iso_urls": [
"file:///Users/Shared/CentOS-6.10-x86_64-minimal.iso",
"http://www.mirrorservice.org/sites/mirror.centos.org/6/isos/x86_64/CentOS-6.10-x86_64-minimal.iso"
],
"shutdown_command": "echo 'vagrant' | sudo -S /sbin/shutdown -h 0",
"ssh_password": "vagrant",
"ssh_username": "vagrant",
"ssh_wait_timeout": "10000s",
"type": "virtualbox-iso",
"vboxmanage": [
[
"modifyvm",
"{{.Name}}",
"--memory",
"1024"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"2"
]
],
"virtualbox_version_file": ".vbox_version",
"vm_name": "centos6"
}
],
"post-processors": [
{
"keep_input_artifact": false,
"output": "packer/{{.Provider}}-centos6.box",
"type": "vagrant"
}
],
"provisioners": [
{
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"override": {
"virtualbox-iso": {
"scripts": [
"scripts/virtualbox.sh",
"scripts/ansible.sh"
]
}
},
"type": "shell"
},
{
"extra_arguments": [
"-vv"
],
"playbook_file": "packer.yml",
"role_paths": [
"roles/bbaassssiiee.commoncentos",
"roles/RHEL6-STIG"
],
"type": "ansible-local"
},
{
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
"script": "scripts/cleanup.sh",
"type": "shell"
}
],
"push": {
"name": "centos6"
}
}