Giter Site home page Giter Site logo

capistrano-puppet's Introduction

capistrano-puppet

Description

Opinionated Puppet Master deployment with Capistrano, intended for managing multiple Masters across many environments.

Status

In development. Example config at https://github.com/croomes/puppet-conf, with Vagrant sandbox at https://github.com/croomes/puppet-multimaster.

Installation

$ gem install capistrano-puppet

Basic Example

The following code will:

  • Checkout Puppet config from git into /vagrant/puppet-conf
  • Symlink to /etc/puppet
  • Restart Puppet daemon if running

Convert existing Puppet configuration:

$ cd /etc/puppet
$ capify
$ git commit
$ git push

Example Capfile:

require 'capistrano'
require 'rubygems'
require 'capistrano/puppet'

load 'config/deploy'

Example config/deploy.rb:

set :application, "Puppet Master Config"
set :deploy_to, "/vagrant/puppet-conf"
set :puppet_service, :apache_passenger    
set :current_path, "/etc/puppet"
set :deploy_via, :export
set :use_sudo, false    
set :user, "vagrant"
set :password, "vagrant"
set :scm, :git
set :repository,  "git://github.com/croomes/puppet-conf.git"

require 'capistrano/puppet/service/#{puppet_service}'

role :master, "localhost"

Initial run:

$ cap deploy:check
$ cap deploy:setup
$ cap deploy

Tasks

$ cap -T
cap deploy                  # Deploys your Puppet configuration.
cap deploy:check            # Test deployment dependencies.
cap deploy:cleanup          # Clean up old releases.
cap deploy:cold             # Deploys and starts a `cold' application.
cap deploy:create_symlink   # Updates the symlink to the most recently deploy...
cap deploy:pending          # Displays the commits since your last deploy.
cap deploy:pending:diff     # Displays the `diff' since your last deploy.
cap deploy:prep_environment # Prepares the environment for installing modules...
cap deploy:rollback         # Rolls back to a previous version and restarts.
cap deploy:rollback:code    # Rolls back to the previously deployed version.
cap deploy:setup            # Prepares one or more servers for deployment.
cap deploy:update           # Copies your project and updates the symlink.
cap deploy:update_code      # Copies your project to the remote servers.
cap deploy:update_modules   # Updates the Puppet modules.
cap invoke                  # Invoke a single command on the remote servers.
cap puppet:condrestart      # Restarts if already running
cap puppet:enable           # Disables Puppet Master daemon from starting at ...
cap puppet:once             # Exits after running the configuration once
cap puppet:reload           # Reload Puppet
cap puppet:restart          # Restart Puppet
cap puppet:shutdown         # Immediately shutdown Puppet
cap puppet:start            # Start Puppet master process
cap puppet:status           # Shows current status
cap puppet:stop             # Stop Puppet
cap shell                   # Begin an interactive Capistrano session.

See also

Development

$ rake spec

capistrano-puppet's People

Contributors

croomes avatar

Stargazers

kush avatar  avatar David Collom avatar Zeqiu Wu avatar Lars Fronius avatar

Watchers

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