Skip to content
Permalink
Newer
Older
100644 83 lines (83 sloc) 2.82 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
"type": "shell",
34
"inline": ["sudo centos echo 'TIERBUILD='{{user `build_number`}} > /home/centos/buildenv.bash"]
35
}
36
],
37
"builders": [
38
{
39
"type": "virtualbox-iso",
40
"name": "{{user `outputfile_name`}}",
41
"vm_name": "{{user `outputfile_name`}}-{{user `profile`}}",
42
"headless": true,
43
"guest_os_type": "RedHat_64",
44
"disk_size": "{{user `disk_size`}}",
45
"vboxmanage": [
46
["modifyvm", "{{.Name}}", "--memory", "{{user `memory`}}"],
47
["modifyvm", "{{.Name}}", "--cpus", "{{user `cpus`}}"]
48
],
49
"iso_url": "http://mirror.vcu.edu/pub/gnu+linux/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso",
50
"iso_checksum": "f90e4d28fa377669b2db16cbcb451fcb9a89d2460e3645993e30e137ac37d284",
51
"iso_checksum_type": "sha256",
52
"http_directory": "http",
53
"boot_command": ["<tab> text ks=http://{{.HTTPIP}}:{{.HTTPPort}}/ks-{{user `profile`}}.cfg<enter><wait>"],
54
"boot_wait": "10s",
55
"ssh_username": "{{user `ssh_username`}}",
56
"ssh_password": "{{user `ssh_password`}}",
57
"ssh_port": 22,
58
"ssh_wait_timeout": "10000s",
59
"guest_additions_mode": "disable",
60
"shutdown_command": "sudo -S shutdown -P now",
61
"output_directory": "output-comanage-{{user `profile`}}",
62
"format": "ova"
63
}
64
],
65
"post-processors": [
66
{
67
"type": "compress",
68
"compression_level": "9",
69
"output": "builds/{{user `outputfile_name`}}-ova-{{user `timestamper`}}.tar"
70
},
71
{
72
"type": "amazon-import",
73
"access_key": "{{user `aws_access_key`}}",
74
"secret_key": "{{user `aws_secret_key`}}",
75
"region": "{{user `region`}}",
76
"s3_bucket_name": "internet2-ami-import-us-west-1",
77
"tags": {
78
"Description": "packer amazon-import-comanage-appliance {{user `timestamper`}}",
79
"Name": "TIER-COmanage Build: {{user `build_number`}}"
80
}
81
}
82
]
83
}
You can’t perform that action at this time.