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