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