GithubHelp home page GithubHelp logo

wubrg / chef-commons Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alfrescolabs/chef-commons

0.0 2.0 0.0 119 KB

A collection of chef recipe wrappers

License: Apache License 2.0

Ruby 78.27% Shell 20.72% HTML 1.01%

chef-commons's Introduction

chef-commons

A collection of Chef libraries, custom resources, (recipe) wrappers and other useful tools used to manage Chef cookbook lifecycle.

Chef libraries

EC2 Discovery

Custom Chef Resources

Logstash EC2 Discovery

Recipe wrappers

AWS Commandline client

Chef Zero

Databags to Files

EC2 Tagging

Cookbook lifecycle

Run release

Run tests

Run tests on AWS using kitchen-ec2 driver

  • Install the AWS command line tools
  • Run aws configure to place your AWS credentials on the drive at ~/.aws/credentials.
  • Create your AWS SSH key. Below an e example using your name: aws ec2 create-key-pair --key-name $USER | ruby -e "require 'json'; puts JSON.parse(STDIN.read)['KeyMaterial']" > ~/.ssh/$USER
  • set the access permissions to 400 chmod 400 ~/.ssh/$USER
  • Modify the following values in .kitchen.ec2.yml:

driver

`aws_ssh_key_id`: use the key id used to create the key at step 3

`region`: use the one you need

`availability_zone`: use the one you need

`require_chef_omnibus`: use the one you need

`subnet_id`: use the one you need

`instance_type`: use the one you need

`associate_public_ip`: use the one you need

`shared_credentials_profile`: use the one you need

`vpc_id`: use the one you need

transport

ssh_key: use the path of your key

username: username to access the instance

platforms driver

`image_id`: use the image id you need

`[tags] Name`: Name of the AWS instance
  • Modify aws_access_key_id and aws_access_access_key in test/integration/data_bags/aws/test.json with the ones of the aws account in use
  • export KITCHEN_YAML=./.kitchen.ec2.yml to use the ec2 kitchen yml instead of the default one (.kitchen.yml)
  • kitchen create <suite_name> to create the aws instance
  • kitchen verify <suite_name> to run the tests on the created one
  • kitchen destroy <suite_name> to terminate the aws instance

More Info:

.... from packer-common

chef-commons's People

Contributors

enzor avatar maoo avatar philipmeadows avatar

Watchers

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