Skip to content
Permalink
Newer
Older
100644 84 lines (84 sloc) 2.86 KB
1
{
2
"min_packer_version": "0.8.6",
3
"description": "Shibboleth appliance ",
4
"variables": {
5
"profile": "xfs",
6
"disk_size": "8192",
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
},
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",
Mason Packard
Aug 19, 2016
24
"playbook_dir": "ansible-playbooks",
25
"playbook_file": "ansible-playbooks/shibboleth-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": "shibboleth-appliance-centos7",
37
"vm_name": "shibboleth-appliance-centos7-{{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
["modifyvm", "{{.Name}}", "--ostype", "{{user `guest_os_type`}}"]
45
],
46
"iso_url": "http://mirror.vcu.edu/pub/gnu+linux/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso",
47
"iso_checksum": "f90e4d28fa377669b2db16cbcb451fcb9a89d2460e3645993e30e137ac37d284",
48
"iso_checksum_type": "sha256",
49
"http_directory": "http",
50
"boot_command": ["<tab> text ks=http://{{.HTTPIP}}:{{.HTTPPort}}/ks-{{user `profile`}}.cfg<enter><wait>"],
51
"boot_wait": "10s",
52
"ssh_username": "{{user `ssh_username`}}",
53
"ssh_password": "{{user `ssh_password`}}",
54
"ssh_port": 22,
55
"ssh_wait_timeout": "10000s",
56
"guest_additions_mode": "disable",
57
"shutdown_command": "sudo -S shutdown -P now",
58
"output_directory": "output-shibboleth-{{user `profile`}}",
59
"format": "ova"
60
}
61
],
62
"post-processors": [
63
{
64
"type": "compress",
65
"compression_level": "9",
66
"output": "builds/{{user `outputfile_name`}}-ova-{{user `timestamper`}}.tar"
67
},
68
{
69
"type": "vagrant",
70
"compression_level": "9",
71
"output": "builds/{{user `outputfile_name`}}-vagrant-{{user `timestamper`}}.tar"
72
},
73
{
74
"type": "amazon-import",
75
"access_key": "{{user `aws_access_key`}}",
76
"secret_key": "{{user `aws_secret_key`}}",
77
"region": "{{user `region`}}",
78
"s3_bucket_name": "internet2-tier-ami-import-us-west-1",
79
"tags": {
80
"Description": "packer amazon-import-shibboleth-appliance {{user `timestamper`}}"
81
}
You can’t perform that action at this time.