-
Notifications
You must be signed in to change notification settings - Fork 11
/
image.json
102 lines (100 loc) · 2.95 KB
/
image.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
"variables": {
"aws_access_key": "{{env `AWS_ACCESS_KEY`}}",
"aws_secret_key": "{{env `AWS_SECRET_KEY`}}",
"vnc_pwd": "{{env `CM_VNC_PWD`}}",
"gftp_pwd": "{{env `CM_GALAXY_FTP_PWD`}}",
"gadmin_pwd": "{{env `CM_GALAXY_ADMIN_PWD`}}",
"image_name": "Galaxy-CloudMan-{{timestamp}}",
"aws_source_ami": "ami-c8580bdf",
"aws_instance_type": "c3.large",
"cc_floating_ip": "129.114.111.137",
"js_floating_ip": "149.165.168.93"
},
"builders": [{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",
"secret_key": "{{user `aws_secret_key`}}",
"region": "us-east-1",
"ssh_username": "ubuntu",
"ami_virtualization_type": "hvm",
"source_ami": "{{user `aws_source_ami`}}",
"instance_type": "{{user `aws_instance_type`}}",
"ami_name": "{{user `image_name`}}",
"enhanced_networking": true,
"ami_block_device_mappings": [ {
"device_name": "/dev/sda1",
"volume_size": 50,
"volume_type": "gp2",
"delete_on_termination": true
} ],
"launch_block_device_mappings": [ {
"device_name": "/dev/sda1",
"volume_size": 50,
"volume_type": "gp2",
"delete_on_termination": true
} ]
},
{
"name": "nectar",
"type": "openstack",
"openstack_provider": "Compute Service",
"region": "Melbourne",
"ssh_username": "ubuntu",
"source_image": "d57696ba-5ed2-43fe-bf78-a587829973a9",
"flavor": "1",
"image_name": "{{user `image_name`}}",
"security_groups": [ "default" ]
},
{
"name": "chameleon",
"type": "openstack",
"openstack_provider": "Compute Service",
"region": "RegionOne",
"ssh_username": "cc",
"source_image": "fc507be9-41e4-4c2c-b142-5c4256f8a814",
"flavor": "2",
"image_name": "{{user `image_name`}}",
"security_groups": [ "default" ],
"networks": [ "739eaa06-16d1-45fe-8a79-77044935c517" ],
"use_floating_ip": true,
"floating_ip": "{{user `cc_floating_ip`}}"
},
{
"name": "jetstream",
"type": "openstack",
"openstack_provider": "Compute Service",
"domain_name": "tacc",
"ssh_username": "ubuntu",
"source_image": "1c997f2c-bae9-4b53-9197-2948cd449405",
"flavor": "1",
"image_name": "{{user `image_name`}}",
"networks": [ "86a1c3e8-b1fb-41f3-bcaf-8334567fe989" ],
"use_floating_ip": true,
"floating_ip": "{{user `js_floating_ip`}}",
"security_groups": [ "default" ]
}],
"provisioners": [
{
"type": "shell",
"inline": [
"sleep 30",
"sudo apt-get update",
"sudo apt-get install -y python-pip python-dev build-essential",
"sudo pip install --upgrade ansible"
]
},
{
"type": "ansible-local",
"playbook_file": "image.yml",
"playbook_dir": ".",
"extra_arguments": [
"--extra-vars",
"vnc_password='{{user `vnc_pwd`}}'",
"--extra-vars",
"psql_galaxyftp_password='{{user `gftp_pwd`}}'",
"--extra-vars",
"cleanup=yes"
]
}]
}