-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild-openstack.json
More file actions
33 lines (33 loc) · 916 Bytes
/
build-openstack.json
File metadata and controls
33 lines (33 loc) · 916 Bytes
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
{
"variables":{
"image_name":"{{env `IMAGE_NAME`}}",
"source_image_name":"{{env `OS_SOURCE_IMAGE_NAME`}}",
"network":"{{env `OS_NETWORK`}}",
"flavor":"{{env `OS_FLAVOR`}}",
"floating_ip_pool":"{{env `OS_POOL_NAME`}}"
},
"builders":[
{
"name":"all",
"type":"openstack",
"image_name":"{{user `image_name`}}",
"source_image_name":"{{user `source_image_name`}}",
"flavor":"{{user `flavor`}}",
"networks":[
"{{user `network`}}"
],
"floating_ip_pool":"{{user `floating_ip_pool`}}",
"ssh_username":"ubuntu"
}
],
"provisioners":[
{
"type":"shell",
"inline": ["sudo sed -i /etc/hosts -e \"s/^127.0.0.1 localhost$/127.0.0.1 localhost $(hostname)/\""]
},
{
"type":"shell",
"script":"{{pwd}}/requirements.sh"
}
]
}