Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Based on the great work by thoward in #54 This upgrade sacrifices some features: * Writing output to a file * Grouping log output by server * Syntax checking
- Loading branch information
Showing
23 changed files
with
220 additions
and
418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
*.gem | ||
*.swp | ||
**/*/puppet_output.txt | ||
Gemfile.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.9.3 | ||
2.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ rvm: | |
- 1.8.7 | ||
- 1.9.2 | ||
- 1.9.3 | ||
- 2.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'capistrano', '2.11.2' | ||
gem 'vagrant', '0.9.7' | ||
gem 'rake', '0.8.7' | ||
gem 'rake', '>=10.0.0' | ||
gem 'puppet', '2.7.1' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,2 @@ | ||
# this is all to get vagrant working with capistrano | ||
vagrant_gem = `gem which vagrant`.chomp | ||
ssh_options[:keys] = File.expand_path('../../keys/vagrant', vagrant_gem) | ||
ssh_options[:paranoid] = false | ||
ssh_options[:keys_only] = true | ||
ssh_options[:user_known_hosts_file] = [] | ||
ssh_options[:config] = false | ||
set :user, 'vagrant' | ||
|
||
|
||
$:.unshift File.expand_path('../../../lib', __FILE__) # in your Capfile, this would likely be "require 'rubygems'" | ||
require 'supply_drop' | ||
|
||
set :puppet_destination, "~/supply_drop" | ||
set :puppet_command, "puppet" | ||
set :puppet_stream_output, true | ||
set :puppet_syntax_check, false | ||
set :puppet_write_to_file, "puppet_output.txt" | ||
|
||
server '33.33.33.10', :web, :app | ||
role :db, '33.33.33.11', :nopuppet => true | ||
require 'capistrano/setup' | ||
require 'capistrano/deploy' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
Vagrant::Config.run do |config| | ||
config.vm.box = "lucid32" | ||
config.vm.box_url = "http://files.vagrantup.com/lucid32.box" | ||
config.vm.define(:web) { |c| c.vm.network(:hostonly, "33.33.33.10") } | ||
config.vm.define(:db) { |c| c.vm.network(:hostonly, "33.33.33.11") } | ||
config.vm.network :hostonly, "33.33.33.10" | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
lock '3.2.1' | ||
|
||
$:.unshift File.expand_path('../../../../lib', __FILE__) # in your Capfile, this would likely be "require 'rubygems'" | ||
require 'supply_drop' | ||
|
||
set :puppet_command, "puppet" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
set :ssh_options, { | ||
keys: ["#{ENV['HOME']}/.vagrant.d/insecure_private_key"], | ||
paranoid: false, | ||
keys_only: true, | ||
user_known_hosts_file: [], | ||
# verbose: :debug, | ||
config: false, | ||
} | ||
server '127.0.0.1', roles: %w(web app puppet), port: 2200, user: 'vagrant' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
require 'supply_drop/rsync' | ||
require 'supply_drop/async_enumerable' | ||
require 'supply_drop/plugin' | ||
require 'supply_drop/syntax_checker' | ||
require 'supply_drop/thread_pool' | ||
require 'supply_drop/util' | ||
require 'supply_drop/writer/batched' | ||
require 'supply_drop/writer/file' | ||
require 'supply_drop/writer/streaming' | ||
require 'supply_drop/tasks' | ||
|
||
Capistrano.plugin :supply_drop, SupplyDrop::Plugin | ||
set :puppet_source, '.' | ||
set :puppet_destination, '/var/tmp/supply_drop' | ||
set :puppet_command, 'puppet apply' | ||
set :puppet_lib, lambda { "#{fetch(:puppet_destination)}/modules" } | ||
set :puppet_parameters, lambda { fetch(:puppet_verbose) ? '--debug --trace --color false puppet.pp' : '--color false puppet.pp' } | ||
set :puppet_verbose, false | ||
set :puppet_excludes, %w(.git .svn) | ||
set :puppet_parallel_rsync, true | ||
set :puppet_parallel_rsync_pool_size, 10 | ||
set :puppet_runner, nil | ||
set :puppet_lock_file, '/tmp/puppet.lock' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.