-
Notifications
You must be signed in to change notification settings - Fork 11
/
galaxy_on_the_cloud.json
93 lines (91 loc) · 2.52 KB
/
galaxy_on_the_cloud.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
{
"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-9a562df2",
"aws_instance_type": "c3.large",
"os_source_image": "d57696ba-5ed2-43fe-bf78-a587829973a9",
"os_flavor": "1"
},
"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`}}",
"ami_block_device_mappings": [ {
"device_name": "/dev/sda1",
"volume_size": 20,
"delete_on_termination": true
} ],
"launch_block_device_mappings": [ {
"device_name": "/dev/sda1",
"volume_size": 20,
"delete_on_termination": true
} ]
},
{
"type": "openstack",
"openstack_provider": "Compute Service",
"region": "Melbourne",
"ssh_username": "ubuntu",
"source_image": "{{user `os_source_image`}}",
"flavor": "{{user `os_flavor`}}",
"image_name": "{{user `image_name`}}",
"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=no"
]
},
{
"type": "ansible-local",
"playbook_file": "galaxyFS.yml",
"extra_arguments": [
"--extra-vars",
"galaxy_admin_user_password='{{user `gadmin_pwd`}}'",
"--extra-vars",
"psql_galaxyftp_password='{{user `gftp_pwd`}}'",
"--extra-vars",
"aws_access_key='{{user `aws_access_key`}}'",
"--extra-vars",
"aws_secret_key='{{user `aws_secret_key`}}'"
]
},
{
"type": "ansible-local",
"playbook_file": "image.yml",
"extra_arguments": [
"--extra-vars",
"only_cleanup=yes"
]
}]
}