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