GithubHelp home page GithubHelp logo

isabella232 / shipper-cookbook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 18f/shipper-cookbook

0.0 0.0 0.0 180 KB

A Chef cookbook to install and create configs for Shipper

License: Other

Ruby 100.00%

shipper-cookbook's Introduction

Description

Installs and configures the latest version of (Shipper)[https://github.com/18f/shipper]. And provides a shipper_config LWRP.

Requirements

Platform

  • Debian, Ubuntu

Resource/Provider

This cookbook includes LWRPs for managing shipper config files.

shipper_config

Creates a Shipper configuration file at the path specified. And sets up a daemon with the configuration created

Actions

  • :create: create a Shipper configuration file and daemon.
  • :delete: delete an existing Shipper configuration file and daemon.

Attribute Parameters

  • project: name attribute. Name of the project being deployed.
  • repository: github repository for the project.
  • environment: the application environment. Default: production
  • app_path: path to the application.
  • app_user: user that owns the application path.
  • server_id: unique id of the server. Default: Hash of the server ip.
  • github_key: github API key to read and clone private repositories.
  • shared_files: a hash of shared files. It takes the form of { from: 'to' }.
  • before_symlink: array of commands to run before symlinking.
  • after_symlink: array of commands to run after symlinking.
  • shipper_path: path to the shipper install directory. Default: /etc/shipper

Example

# create a config
shipper_config "myproject" do
  repository "https://github.com/18f/shipper.git"
  environment "production"
  app_path deploy_to_dir
  app_user "user"
  github_key "foobar"
  shared_files {
    "config/database.yml" => "config/database.yml"
  }
  after_symlink [
    "touch tmp/restart.txt"
  ]
end

Usage

Simply include the recipe where you want Shipper installed.

shipper-cookbook's People

Contributors

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