Giter Site home page Giter Site logo

qstack-chef-provisioning's Introduction

QStack chef-provisioning test project

Prerequisites

aws-cli and credentials

This project assumes that you have two profiles configured and they work in the aws-cli tools:

  • The default credential should be a valid AWS credential
  • The qstack credential should be a valid QStack credential

Please refer to the aws-cli instructions on how to set that up:

Bundler and ruby

You need to have Bundler set up and we recommend having rbenv installed as well.

Setting up

  • Clone this repository and install all bundler gems:
git clone [email protected]:nextcode-health/qstack-chef-provisioning.git
cd qstack-chef-provisioning
bundle install
  • Use Berkshelf to retrieve all dependant cookbooks
bundle exec berks vendor cookbooks

Now everything should be ready to perform the chef-provisioning tests.

Running the various tests

There are two chef-provisioning scripts available (one sets up an empty machine and the other sets up a machine with Apache). There are three configurations available: vagrant, aws and qstack.

Vagrant

To provision an empty machine:

bundle exec chef-client -z provision/vagrant-minimal.rb provision/empty-node.rb

To provision a web server machine:

bundle exec chef-client -z provision/vagrant-minimal.rb provision/web-node.rb

AWS

This assumes that your default profile for aws-cli contains your AWS credentials. Otherwise you need to modify the provision/aws-minimal.rb (an example is provided in the file).

To provision an empty machine:

bundle exec chef-client -z provision/aws-minimal.rb provision/empty-node.rb

To provision a web server machine:

bundle exec chef-client -z provision/aws-minimal.rb provision/web-node.rb

QStack

This assumes that your QStack credentials are specified in a profile called qstack in ~/.aws/credentials. Otherwise you need to modify the provision/qstack-minimal.rb. That file also contains the ec2_endpoint, flavor_id, image_id and possibly more config options which needs to be modified based on what QStack installation you are working against. These changes should be self explanatory.

NOTE This currently does not work because of some problem with authentication.

To provision an empty machine:

bundle exec chef-client -z provision/qstack-minimal.rb provision/empty-node.rb

To provision a web server machine:

bundle exec chef-client -z provision/qstack-minimal.rb provision/web-node.rb

qstack-chef-provisioning's People

Contributors

stfs avatar

Stargazers

Freeman Wang avatar

Watchers

 avatar Árni Einarsson avatar Kristleifur Daðason avatar Sigmar Stefansson avatar Vilmundur Pálmason avatar Hlynur Tryggvason avatar Gudmundur A. Thorisson avatar James Cloos avatar Jón Orri @ Skývafnir avatar Gissur @ Skývafnir avatar Ólafur Haukur Flygenring avatar Gisli Magnusson avatar Hjalti Sveinsson avatar  avatar  avatar  avatar Birgir Pálsson avatar  avatar Ýmir Sigurðarson avatar  avatar Elvar Þór Ólafsson avatar  avatar Andri Mar Stefansson avatar Sigurdur E. Thorvaldsson 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.