Skip to main content

Automate buying VPS instances with Bitcoin

Project description

Build Status Cloudomate logo

Overview

Cloudomate is an unpermissioned open compute API which provides an automated way to buy VPS instances from multiple providers. The easiest way to use Cloudomate is via the command-line interface.

Requirements

  • Python 2.7

  • python-lxml installed on the system

  • Works on Linux, Mac OSX, BSD

  • An active Electrum wallet with sufficient funds

Installation

The project can be installed through pip

apt-get install python-lxml
pip install cloudomate

Providers

Currently the following VPS providers are implemented:

linevast       https://linevast.de/
pulseservers   https://pulseservers.com/
rockhoster     https://rockhoster.com/
blueangelhost  https://www.blueangelhost.com/
ccihosting     http://www.ccihosting.com/
crowncloud     http://crowncloud.net/

This same list can be accessed through the list command.

cloudomate list

Configuration

For some commands, mainly purchase, user configuration is required. The main way to do this is through a configruation file. For Linux, the default location for the configuration file is $HOME/.config/cloudomate.cfg.

A configuration file looks like this

[User]
email =
firstName =
lastName =
companyName =
phoneNumber =
password =

[Address]
address =
city =
state =
countryCode =
zipcode =

[Server]
rootpw =
ns1 =
ns2 =
hostname =

Section can be overridden for specific providers by adding a section, for example a [rockhoster] section can contain a separate email address only to be used for RockHoster.

Basic usage

usage: cloudomate [-h] {list,options,purchase,status,setrootpw,getip} ...

Cloudomate

positional arguments:
  {list,options,purchase,status,setrootpw,getip}
    list                List providers
    options             List provider configurations
    purchase            Purchase VPS
    status              Get the status of the services.
    setrootpw           Set the root password of the last activated service.
    getip               Get the ip of the specified service.

optional arguments:
  -h, --help            show this help message and exit

options

List the options for RockHoster

$ cloudomate options rockhoster
Options for rockhoster:

  #    Name              CPU (cores)       RAM (GB)          Storage (GB)      Bandwidth (TB)    Connection (Mbps) Estimated Price (mBTC)
  0    Basic              1                1                 25                unmetered         500               3.47
  1    Premium            2                2                 50                unmetered         500               5.27
  2    Expert             3                4                 100               unmetered         500               9.3
  3    Maximum            4                8                 150               unmetered         500               16.25
  4    Basic              2                1                 40                unmetered         1000              5.27
  5    Premium            2                2                 80                unmetered         1000              8.41
  6    Expert             3                4                 150               unmetered         1000              14.23
  7    Maximum            4                8                 300               unmetered         1000              24.54

Purchase

Use the purchase command to purchase a VPS instance. An account is created and the instance is paid through an Electrum wallet.

$ cloudomate purchase rockhoster 0
Selected configuration:
Name           CPU            RAM            Storage        Bandwidth      Est.Price
Basic          1              1.0            25.0           unmetered      4.99
Purchase this option? (y/N)

Manage

The following functions can be used to manage a purchased VPS instances

status              Get the status of the services.
setrootpw           Set the root password of the last activated service.
getip               Get the ip of the specified service.

Tests

To run the project’s tests

python -m unittest discover

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

cloudomate-0.1.15-py27-none-any.whl (40.7 kB view hashes)

Uploaded Python 2.7

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page