Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (22 sloc) 552 Bytes
{
"variables": {
"do_api_token": "{{env `DIGITALOCEAN_API_TOKEN`}}"
},
"builders": [{
"type": "digitalocean",
"api_token": "{{user `do_api_token`}}",
"droplet_name": "as",
"image": "centos-7-0-x64",
"size": "512mb",
"region": "sfo1"
}],
"provisioners": [{
"type": "shell",
"inline": [
"sleep 30",
"sudo yum update -y",
"sudo yum install -y http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm",
"sudo yum install -y nginx"
]
}]
}