GithubHelp home page GithubHelp logo

edevenport / tf_profitbricks_loadtest Goto Github PK

View Code? Open in Web Editor NEW

This project forked from denza/tf_profitbricks_loadtest

0.0 1.0 0.0 14 KB

Terraform module for ProfitBricks load testing

HCL 100.00%

tf_profitbricks_loadtest's Introduction

This Terraform module will create a single server within each availability zone in each ProfitBricks location.

Create a Terraform config file. For example, main.tf.

module "loadtest" {
  source = "github.com/stackpointcloud/tf_profitbricks_loadtest"

  locations = [ "us/las", "us/ewr", "de/fra", "de/fkb" ]
  availability_zones = [ "ZONE_1", "ZONE_2" ]
  cores = 1
  ram = 1024
  disk_size = 5
  image_alias = "ubuntu:latest"
  private_ssh_key_path = "/path/to/.ssh/id_rsa"
  public_ssh_key_path = "/path/to/.ssh/id_rsa.pub"
  registry_host          = "hub.private.com"
  registry_host_username = "docker_username"
  registry_host_password = "docker_password"
}

output "server_ips" {
  value = "${module.loadtest.server_ips}"
}

Initialize and run Terraform:

terraform init
terraform plan
terraform apply

Docker:

docker --tlsverify --tlscacert=ca.pem --tlscert=cert.pem --tlskey=key.pem -H=[IP_ADDRESS]:2376 info

Docker TLS authentication can also be set through environment variables.

export DOCKER_CERT_PATH=$PWD
export DOCKER_TLS=1
export DOCKER_TLS_VERIFY=1

docker -H=[IP_ADDRESS]:2376 info

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.