Skip to content
Permalink
Newer
Older
100644 55 lines (55 sloc) 1.86 KB
1
{
2
"min_packer_version": "0.8.6",
3
"description": "Bare CentOS 7 prepped for AMI import",
4
"variables": {
5
"profile": "xfs",
6
"disk_size": "8192",
7
"memory": "6122",
8
"cpus": "4",
9
"ssh_username": "centos",
10
"ssh_password": "centos",
11
"aws_access_key": "",
12
"aws_secret_key": "",
13
"region": "us-west-1"
14
},
15
"builders": [
16
{
17
"type": "virtualbox-iso",
18
"name": "centos-7-ami",
19
"vm_name": "centos7-ec2-{{user `profile`}}",
20
"headless": true,
21
"guest_os_type": "RedHat_64",
22
"disk_size": "{{user `disk_size`}}",
23
"vboxmanage": [
24
["modifyvm", "{{.Name}}", "--memory", "{{user `memory`}}"],
25
["modifyvm", "{{.Name}}", "--cpus", "{{user `cpus`}}"]
26
],
27
"iso_url": "http://mirror.steadfast.net/centos/7/isos/x86_64/CentOS-7-x86_64-NetInstall-1511.iso",
28
"iso_checksum": "9ed9ffb5d89ab8cca834afce354daa70a21dcb410f58287d6316259ff89758f5",
29
"iso_checksum_type": "sha256",
30
"http_directory": "http",
31
"boot_command": ["<tab> text ks=http://{{.HTTPIP}}:{{.HTTPPort}}/ks-{{user `profile`}}.cfg<enter><wait>"],
32
"boot_wait": "10s",
33
"ssh_username": "{{user `ssh_username`}}",
34
"ssh_password": "{{user `ssh_password`}}",
35
"ssh_port": 22,
36
"ssh_wait_timeout": "10000s",
37
"guest_additions_mode": "disable",
38
"shutdown_command": "sudo -S shutdown -P now",
39
"output_directory": "output-{{user `profile`}}",
40
"format": "ova"
41
}
42
],
43
"post-processors": [
44
{
45
"type": "amazon-import",
46
"access_key": "{{user `aws_access_key`}}",
47
"secret_key": "{{user `aws_secret_key`}}",
48
"region": "{{user `region`}}",
49
"s3_bucket_name": "internet2-ami-import-us-west-1",
50
"tags": {
51
"Description": "packer amazon-import-base {{timestamp}}"
52
}
53
}
54
]
55
}
You can’t perform that action at this time.