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