Git Product home page Git Product logo

ey-berks's Introduction

ey-berks

Build Status

Engine Yard Custom Chef tool like Berfshef.

ScreenCast http://showterm.io/c8df12c47ff6391ca2a2c

Install

$ go get github.com/ukitazume/ey-berks

Basic Usage

$ey-berks config .
$ey-berks compile .
$ey recipes upload -e env_name

Usage

$ ey-berks help
Engine Yard Cloud cookbook tool like Berkshelf

Usage:
	ey-berks config <path>                                               : make a sample configuration file (default path=$PWD, --config=EyBerks)
	ey-berks compile <path> --config=<path to EyBerks>                   : update cahce,  write a main/recipes and gather recipe to the cookbooks directory
	ey-berks update-cache                                                : update cache of remote repositories cookbooks
	ey-berks create-main-recipe <path>                                   : create main recipes from the configration file
	ey-berks copy-recipes <path>                                         : copy recipes from the cache dir to the cookbooks/ directory
	ey-berks clear <path>                                                : remove EyBerksfile and cookbooks directory
	ey-berks gather-attr <path> --from=</path/cookbooks>                 : gather attbiutes from cookbook directory
	ey-berks apply-attr <path> ---from=<attributes directory>            : apply attbiutes for cookbook directory
	ey-berks help                                                        : show this help
	ey-berks version                                                     : show the version

Configration File

use TOML for the configuration like that

[library]
repo = "engineyard/ey-cloud-recipes"
path = "cookbooks/main/libraries"
name = "main/libraries"

[definition]
repo = "engineyard/ey-cloud-recipes"
path = "cookbooks/main/definitions"
name = "main/definitions"

[[cookbook]]
repo = "engineyard/ey-cloud-recipes"
path = "cookbooks/env_vars"

[[cookbook]]
host = "bitbucket.org"
repo = "engineyard/ey-cloud-recipes"
path = "cookbooks/cutom_nginx"

This configuration creates the following cookbook/ directory

☺  tree ./cookbooks/
gather/cookbooks/
├── custom_nginx
│   ├── recipes
│   └── templates
├── env_vars
│   ├── README.md
│   ├── attributes
│   ├── recipes
│   └── templates
└── main
    ├── definitions
    └── libraries

Group

[library]

installed for cookbooks/main/libraries

[definition]

installed for cookbooks/main/libraries

[[cookbook]]

add your cookbooks

Attributes

  • repo(requires): repository name
  • path(requires): the library path in the repository
  • name(option) the path that is used for creating cookbook directory
  • host(option, default: github.com) the remote repository hostname

apply you own atributes file

$ ey-berks gather-attr . --from=./cookbooks
$ ey-berks apply-attr . --from=./attr-meta

search cookbooks

....... consider how to integrate it

ey-berks's People

Contributors

ukitazume avatar

Stargazers

 avatar  avatar  avatar  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.