Skip to content

DigitalOcean provisioning

Diego Zanga edited this page May 5, 2017 · 11 revisions

Create a token inside DigitalOcean

  1. Create an account or simply login. P.S. This link set a referral.

  2. Select API menu

  3. Select GENERATE NEW TOKEN

  4. Insert a name then save and copy the token to the clipboard

Save the token inside the var yaml file

the token should be save in workspace/staging/group_vars/digitalocean.yaml

syntax:

digitaloceanName: _insert name here_
digitaloceanToken: _insert token here_

Run Selene V digitalocean example

build Selene V

use gradle

change/check provisionig options

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

execute

java -jar selenev --wk workspace/staging examples/digitalocean/provisionServer.yaml

Clone this wiki locally