Unverified Commit cf15cd69 authored by Varac's avatar Varac
Browse files

Configure VCPUS

Fixes: #5
parent c174bc27
......@@ -97,6 +97,7 @@ def create_droplet(name: str, # pylint: disable=too-many-arguments
ssh_key_id: int,
region: str = 'ams1',
size: int = 2048,
vcpus: int = 1,
disk: int = 20,
image: int = 18):
"""Create a droplet.
......@@ -109,7 +110,11 @@ def create_droplet(name: str, # pylint: disable=too-many-arguments
- image (str): 18 (Ubuntu 18.04 x64)
- region (str): 'ams1' (Amsterdam 1)
- size (int): 2048 (2GB RAM)
- vcpus (int): 1
- disk (int): 20 (20GB disk space)
Droplet digital ocean API doc:
https://developers.digitalocean.com/documentation/v2/#droplets
"""
log.info('Creating droplet')
......@@ -117,6 +122,7 @@ def create_droplet(name: str, # pylint: disable=too-many-arguments
"name": name,
"region": region,
"size": size,
"vcpus": vcpus,
"disk": disk,
"image": image,
"ssh_keys": ssh_key_id
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment