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