supply_drop 0.6.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/examples/Capfile +4 -0
- data/examples/config/deploy.rb +22 -0
- data/lib/supply_drop.rb +6 -0
- metadata +9 -9
data/examples/Capfile
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
set :application, "set your application name here"
|
2
|
+
set :repository, "set your repository location here"
|
3
|
+
|
4
|
+
set :scm, :subversion
|
5
|
+
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
|
6
|
+
|
7
|
+
role :web, "your web-server here" # Your HTTP server, Apache/etc
|
8
|
+
role :app, "your app-server here" # This may be the same as your `Web` server
|
9
|
+
role :db, "your primary db-server here", :primary => true # This is where Rails migrations will run
|
10
|
+
role :db, "your slave db-server here"
|
11
|
+
|
12
|
+
# if you're still using the script/reaper helper you will need
|
13
|
+
# these http://github.com/rails/irs_process_scripts
|
14
|
+
|
15
|
+
# If you are using Passenger mod_rails uncomment this:
|
16
|
+
# namespace :deploy do
|
17
|
+
# task :start do ; end
|
18
|
+
# task :stop do ; end
|
19
|
+
# task :restart, :roles => :app, :except => { :no_release => true } do
|
20
|
+
# run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
|
21
|
+
# end
|
22
|
+
# end
|
data/lib/supply_drop.rb
CHANGED
@@ -30,6 +30,12 @@ Capistrano::Configuration.instance.load do
|
|
30
30
|
run "#{sudo} apt-get update"
|
31
31
|
run "#{sudo} apt-get install -y puppet rsync"
|
32
32
|
end
|
33
|
+
|
34
|
+
desc "installs puppet via yum on a centos/red hat host"
|
35
|
+
task :redhat do
|
36
|
+
run "mkdir -p #{puppet_destination}"
|
37
|
+
run "#{sudo} yum -y install puppet rsync"
|
38
|
+
end
|
33
39
|
end
|
34
40
|
|
35
41
|
desc "pushes the current puppet configuration to the server"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: supply_drop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 3
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 7
|
9
|
+
- 0
|
10
|
+
version: 0.7.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tony Pitluga
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
19
|
-
default_executable:
|
18
|
+
date: 2012-02-13 00:00:00 Z
|
20
19
|
dependencies: []
|
21
20
|
|
22
21
|
description: See http://github.com/pitluga/supply_drop
|
@@ -34,6 +33,8 @@ files:
|
|
34
33
|
- lib/supply_drop/rsync.rb
|
35
34
|
- lib/supply_drop/util.rb
|
36
35
|
- lib/supply_drop.rb
|
36
|
+
- examples/Capfile
|
37
|
+
- examples/config/deploy.rb
|
37
38
|
- examples/ec2/Capfile
|
38
39
|
- examples/ec2/puppet.pp
|
39
40
|
- examples/vagrant/Capfile
|
@@ -1866,7 +1867,6 @@ files:
|
|
1866
1867
|
- examples/vendored-puppet/vendor/puppet-2.7.8/test/util/storage.rb
|
1867
1868
|
- examples/vendored-puppet/vendor/puppet-2.7.8/test/util/subclass_loader.rb
|
1868
1869
|
- examples/vendored-puppet/vendor/puppet-2.7.8/test/util/utiltest.rb
|
1869
|
-
has_rdoc: true
|
1870
1870
|
homepage: http://github.com/pitluga/supply_drop
|
1871
1871
|
licenses: []
|
1872
1872
|
|
@@ -1896,7 +1896,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1896
1896
|
requirements: []
|
1897
1897
|
|
1898
1898
|
rubyforge_project:
|
1899
|
-
rubygems_version: 1.
|
1899
|
+
rubygems_version: 1.8.6
|
1900
1900
|
signing_key:
|
1901
1901
|
specification_version: 3
|
1902
1902
|
summary: Masterless puppet with capistrano
|