Skip to content
Permalink
Newer
Older
100644 77 lines (77 sloc) 2.57 KB
1
{
2
"min_packer_version": "0.8.6",
3
"description": "Comanage appliance ",
4
"variables": {
5
"profile": "xfs",
Mason Packard
Sep 12, 2016
6
"disk_size": "20000",
7
"memory": "6122",
8
"cpus": "2",
9
"ssh_username": "centos",
10
"ssh_password": "centos",
11
"region": "us-west-1",
12
"timestamper": "{{timestamp}}",
13
"outputfile_name": "comanage-appliance-centos7"
14
},
15
"provisioners": [
16
{
17
"type": "shell",
18
"execute_command": "echo 'centos' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
19
"script": "scripts/ansible.sh"
20
},
21
{
22
"type": "ansible-local",
23
"playbook_dir": "ansible-playbooks",
24
"playbook_file": "ansible-playbooks/comanage-appliance-vbox.yml"
25
},
26
{
27
"type": "shell",
28
"execute_command": "echo 'centos' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
29
"script": "scripts/cleanup.sh"
30
}
31
],
32
"builders": [
33
{
34
"type": "virtualbox-iso",
35
"name": "{{user `outputfile_name`}}",
36
"vm_name": "{{user `outputfile_name`}}-{{user `profile`}}",
37
"headless": true,
38
"guest_os_type": "RedHat_64",
39
"disk_size": "{{user `disk_size`}}",
40
"vboxmanage": [
41
["modifyvm", "{{.Name}}", "--memory", "{{user `memory`}}"],
42
["modifyvm", "{{.Name}}", "--cpus", "{{user `cpus`}}"]
43
],
44
"iso_url": "http://mirror.vcu.edu/pub/gnu+linux/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso",
45
"iso_checksum": "f90e4d28fa377669b2db16cbcb451fcb9a89d2460e3645993e30e137ac37d284",
46
"iso_checksum_type": "sha256",
47
"http_directory": "http",
48
"boot_command": ["<tab> text ks=http://{{.HTTPIP}}:{{.HTTPPort}}/ks-{{user `profile`}}.cfg<enter><wait>"],
49
"boot_wait": "10s",
50
"ssh_username": "{{user `ssh_username`}}",
51
"ssh_password": "{{user `ssh_password`}}",
52
"ssh_port": 22,
53
"ssh_wait_timeout": "10000s",
54
"guest_additions_mode": "disable",
55
"shutdown_command": "sudo -S shutdown -P now",
56
"output_directory": "output-comanage-{{user `profile`}}",
57
"format": "ova"
58
}
59
],
60
"post-processors": [
61
{
62
"type": "compress",
63
"compression_level": "9",
64
"output": "builds/{{user `outputfile_name`}}-ova-{{user `timestamper`}}.tar"
65
},
66
{
67
"type": "amazon-import",
68
"access_key": "{{user `aws_access_key`}}",
69
"secret_key": "{{user `aws_secret_key`}}",
70
"region": "{{user `region`}}",
71
"s3_bucket_name": "internet2-ami-import-us-west-1",
72
"tags": {
73
"Description": "packer amazon-import-comanage-appliance {{user `timestamper`}}"
74
}
75
}
76
]
77
}
You can’t perform that action at this time.