This repository has been archived by the owner on Sep 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
template.json
82 lines (81 loc) · 3.2 KB
/
template.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"variables": {
"aws_access_key": "",
"aws_secret_key": "",
"project_id": "{{env `GCE_PROJECT_ID`}}",
"gce_account_file": "{{env `GCE_ACCOUNT_FILE`}}",
"publish_settings_path": "{{env `AZURE_PUBLISH_SETTINGS`}}"
},
"push": {
"name": "darron/octohost"
},
"builders": [{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key` }}",
"region": "us-east-1",
"source_ami": "ami-2dcf7b46",
"instance_type": "c3.large",
"ssh_username": "ubuntu",
"ami_name": "octohost-chef {{timestamp}}"
},
{
"type": "digitalocean",
"image": "ubuntu-14-04-x64",
"droplet_name": "octohost-chef-{{timestamp}}",
"size": "1gb",
"region": "nyc3",
"snapshot_name": "octohost-chef {{timestamp}}"
},
{
"type": "openstack",
"provider": "rackspace-us",
"openstack_provider": "rackspace",
"region": "iad",
"ssh_username": "root",
"image_name": "octohost-chef {{timestamp}}",
"source_image": "28153eac-1bae-4039-8d9f-f8b513241efe",
"flavor": "3"
},
{
"type": "googlecompute",
"project_id": "{{user `project_id`}}",
"account_file": "{{user `gce_account_file`}}",
"source_image": "ubuntu-1404-trusty-v20150128",
"zone": "us-central1-f",
"image_name": "octohost-{{timestamp}}",
"disk_size": 40
},
{
"type": "azure",
"publish_settings_path": "{{user `publish_settings_path`}}",
"subscription_name": "Free Trial",
"storage_account": "octohost",
"storage_account_container": "images",
"os_type": "Linux",
"os_image_label": "Ubuntu Server 14.04 LTS",
"location": "South Central US",
"instance_size": "Medium",
"user_image_label": "octohost-{{timestamp}}"
},
{
"type": "virtualbox-iso",
"guest_os_type": "Ubuntu_64",
"iso_url": "http://releases.ubuntu.com/14.04/ubuntu-14.04.2-server-amd64.iso",
"iso_checksum": "83aabd8dcf1e8f469f3c72fff2375195",
"iso_checksum_type": "md5",
"ssh_username": "packer",
"ssh_password": "packer",
"ssh_wait_timeout": "30s",
"shutdown_command": "echo 'packer' | sudo -S shutdown -P now"
}],
"provisioners": [{
"type": "shell",
"inline": ["sudo apt-get clean && sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confold\" --force-yes -y upgrade"]
},{
"type": "chef-solo",
"install_command": "curl -L https://www.opscode.com/chef/install.sh | sudo bash",
"cookbook_paths": ["./vendor/cookbooks"],
"run_list": [ "octohost" ]
}]
}