Coder Social home page Coder Social logo

openstack-mesos's Introduction

Openstack-mesos

This is for automatically deploying Mesos and Marathon on Openstack platform with Terraform.

How to start

  1. Generates SSH Keys

ssh-keygen -t rsa -f /Users/Clare/.ssh -C "mesos" 2. Terraform

Before you build you Mesos cluster, you should change something via your environment, like public key, auth_url, image name and so on, you refer to the following to do it.

variable public_key { default = "~/.ssh/mesos.pub" }
variable auth_url { default = "your openstack auth_url" }
variable image_name { default = "CentOS7.2" }
variable flavor_name { default = "ocp.medium" }
variable ssh_private_key { default = "~/.ssh/mesos" }
variable ssh_user { default = "centos" }
variable master_count { default = "3" }
variable slave_count { default = "3" }
variable host_domain  { default = "novalocal" }


module "keypair" {
source = "./mesos/keypair"
public_key = "${var.public_key}"
keypair_name = "mesos"
}

module "mesos" {
source  = "./mesos/instances"
auth_url = "${ var.auth_url }"
tenant_id = "d3b2d330416643d3a7514941cb3a056a"
tenant_name = "Mantl"
flavor_name = "${ var.flavor_name }"
network_id = "47ea2580-d843-4fe8-a61d-2c0e59bca4f2"
image_name = "${ var.image_name }"
keypair_name = "${ module.keypair.keypair_name }"
ssh_private_key = "${ var.ssh_private_key }"
security_groups = ""
ssh_user = "${ var.ssh_user}"
datacenter = "hf1"
cluster = "mesos"
master_count  = "${ var.master_count }"
slave_count = "${ var.slave_count }"
mesos_version  = "0.27.0"
marathon_version = "0.15.2"
host_domain = "${var.host_domain}"
}
  1. Get Openstack RC File

This can be done by logining your Openstack dashborad. 4. Start to build your Mesos cluster

  • Getting Configuration

    # terraform get
    
  • Executing Plan

    # terrafrom plan
    
  • Applying Plan

    # terraform apply
    

If all are right, your cluster can be built successfully.

Note: Please install Terraform in your enviroment, more please refer to Terrafrom .

openstack-mesos's People

Contributors

yangzhares avatar

Stargazers

Individual Contributor One avatar Hugo Martiniano avatar Rhommel Lamas avatar

Watchers

James Cloos avatar  avatar

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.