Giter Club home page Giter Club logo

opsworks-example's Introduction

#Test your chef recipies before deploying them to opsworks

So you want to use chef to provision aws opsworks like a boss? well first you'll need to test them locally. This project is an example that provisions a Vagrant VM with the default opsworks recipes and a starting point to build your own.

#installation install Vagrant, Virtualbox, Vagrant-Berkshelf plugin. after installing I got

Vagrant -v
Vagrant 1.7.2

Vagrant plugin list
vagrant-berkshelf (4.0.2)
vagrant-share (1.1.3, system)

ruby -v
ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]

This depends on the box file from this project https://github.com/wwestenbrink/vagrant-opsworks clone vagrant-opsworks seprately, it's dependencies and build the box file, I used commit da9f341197

once finished you shouuld get this:

vagrant box list

ubuntu1204-opsworks (virtualbox, 0)

Running

if all went well, run

vagrant up --provision

vagrant ssh

cat /home/example-file

If everything succeeded, default.rb created that file! Log in to opsworks, make sure it runs there too. Test your own recipes. Happy devop-ing!

Recommended reading

I mostly followed these blog posts to get this far.

http://pixelcog.com/blog/2014/virtualizing-aws-opsworks-with-vagrant/ http://dev.inventit.io/blog/aws/opsworks/vagrant/chef/berkshelf/2014/04/28/opsworks_vagrant_chef_berkshelf_tips.html http://joshsymonds.com/blog/2014/06/11/getting-started-with-aws-opsworks/

opsworks-example's People

Contributors

tw-epenkman avatar

Watchers

James Cloos avatar zhuangtim 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.