-
Notifications
You must be signed in to change notification settings - Fork 1
DigitalOcean provisioning
Diego Zanga edited this page May 5, 2017
·
11 revisions
-
Create an account or simply login. P.S. This link set a referral.
-
Select API menu
-
Select GENERATE NEW TOKEN
-
Insert a name then save and copy the token to the clipboard
the token should be save in workspace/staging/group_vars/digitalocean.yaml
syntax:
digitaloceanName: _insert name here_
digitaloceanToken: _insert token here_
use gradle
the example file is 'examples/digitalocean/provisionServer.yaml'
- name: provision server
provisionDigitalOcean: --nr 2 --region fra1 --distro fra1/centos-7-x64 --hardware 2gb"
nr is the number of server requested
region is the region (frankfurt 1 is the default)
distro should be changed from time to time checking images available from digitalocean
hardware refers to droplet dimension from digitalocean available options
java -jar selenev --wk workspace/staging examples/digitalocean/provisionServer.yaml