Coder Social home page Coder Social logo

cheeseplus / chef-openstack-testing-stack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mohitsethi/singlestack

0.0 1.0 0.0 223 KB

A development repo for creating singlestack openstack clusters with chef-provisioning

Home Page: http://docs.getchef.com/openstack.html

Ruby 100.00%

chef-openstack-testing-stack's Introduction

Openstack-cluster with chef-provisioning

If you want a tl;dr a youtube video of me converging this repo, for a nova all in one node.

$ vagrant add centos65 http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-6.5_chef-provisionerless.box
$ git clone https://github.com/jjasghar/chef-openstack-testing-stack.git shortstack
$ cd shortstack
$ bundle install
$ bundle exec berks vendor cookbooks
$ ruby -e "require 'openssl'; puts OpenSSL::PKey::RSA.new(2048).to_pem" > .chef/validator.pem
$ export CHEF_DRIVER=vagrant

This has also been tested with ChefDK 0.3.5. Simply omit the bundle install command and any bundle exec prefixes.

You need four databags : user_passwords, db_passwords, service_passwords, secrets. I have a already created the data_bags/ directory, so you shouldn't need to make them, if you do something's broken.

You may also need to change the networking options around the aio-nova.rb, aio-neutron.rb, or multi-nova.rb files. I wrote this on my MacBook Pro with an en0 you're mileage may vary.

Now you should be good to start up chef-client!

$ bundle exec chef-client -z vagrant_linux.rb aio-nova.rb

OR

$ bundle exec chef-client -z vagrant_linux.rb aio-neutron.rb

OR if you want a multi-node nova cluster:

$ bundle exec chef-client -z vagrant_linux.rb multi-nova.rb

If you spin up the multi-nova build, you'll have four machines controller,compute1,compute2, and compute3. They all live on the 192.168.100.x network so keep that in mind. If you'd like to take this and change it around, whatever you decide your controller node to be change anything that has the 192.168.100.60 address to that.

$ cd vms
$ vagrant ssh controller
$ sudo su -
# source openrc

How to test the machine is set up correctly, after you source the above: (as root)

# nova service-list && nova hypervisor-list && nova image-list

Boot that image! (as root)

# nova boot test --image cirros --flavor 1

If you would like to use the dashboard you should go to https://localhost:9443 and the username password is admin/mypass.

If you want to destroy everything, run this from the shortstack/ repo.

$ chef-client -z destroy_all.rb

chef-openstack-testing-stack's People

Contributors

jjasghar avatar

Watchers

 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.