supply_drop 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -31,7 +31,7 @@ Applies the pending changes to all the servers.
31
31
 
32
32
  You can specify that one of your servers should be puppet by setting the :nopuppet flag to true, like so. It will then be skipped by all the above commands.
33
33
 
34
- role :wierd_thing, '33.33.33.33', :nopuppet => true
34
+ role :weird_thing, '33.33.33.33', :nopuppet => true
35
35
 
36
36
  ### Variables
37
37
 
@@ -39,7 +39,7 @@ There are several variables that can be overriden to change how supply_drop work
39
39
 
40
40
  set :puppet_source, '.'
41
41
 
42
- defines the base directory containing your puppet configs that will be rsynced to teh servers.
42
+ defines the base directory containing your puppet configs that will be rsynced to the servers.
43
43
 
44
44
  set :puppet_destination, '/tmp/supply_drop'
45
45
 
@@ -49,7 +49,7 @@ defines where on the server the puppet configuration files are synced to.
49
49
 
50
50
  allows you to override the puppet command that is run if puppet is not on the path.
51
51
 
52
- set :puppet_lib, "#{puppet_target}/modules"
52
+ set :puppet_lib, "#{puppet_destination}/modules"
53
53
 
54
54
  the value of the PUPPETLIB environment variable, the location of your puppet modules
55
55
 
@@ -63,4 +63,5 @@ If you write anything complicated, write a test for it. Test that your changes w
63
63
 
64
64
  ### Contributors
65
65
 
66
- Paul Gross [pgr0ss](https://github.com/pgr0ss "github")
66
+ * Paul Gross [pgr0ss](https://github.com/pgr0ss "github")
67
+ * Drew Olson [drewolson](https://github.com/drewolson "github")
@@ -0,0 +1,13 @@
1
+ # this is all to get vagrant working with capistrano
2
+ ssh_options[:keys] = File.expand_path('/path/to/ssh/key')
3
+ ssh_options[:paranoid] = false
4
+ ssh_options[:keys_only] = true
5
+ ssh_options[:user_known_hosts_file] = []
6
+ ssh_options[:config] = false
7
+ set :user, 'ubuntu'
8
+
9
+
10
+ $:.unshift File.expand_path('../../../lib', __FILE__) # in your Capfile, this would likely be "require 'rubygems'"
11
+ require 'supply_drop'
12
+
13
+ server 'your ec2 server', :web, :app, :db
File without changes
File without changes
File without changes
@@ -0,0 +1 @@
1
+ exec { "/bin/echo hello:": }
data/lib/supply_drop.rb CHANGED
@@ -10,8 +10,9 @@ Capistrano::Configuration.instance.load do
10
10
 
11
11
  desc "installs puppet"
12
12
  task :bootstrap, :except => { :nopuppet => true } do
13
+ run "mkdir -p #{puppet_destination}"
13
14
  run "#{sudo} apt-get update"
14
- run "#{sudo} apt-get install -y puppet"
15
+ run "#{sudo} apt-get install -y puppet rsync"
15
16
  end
16
17
 
17
18
  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: 23
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 2
8
+ - 3
9
9
  - 0
10
- version: 0.2.0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tony Pitluga
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-22 00:00:00 -05:00
18
+ date: 2011-06-03 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -32,9 +32,11 @@ files:
32
32
  - Rakefile
33
33
  - lib/supply_drop/rsync.rb
34
34
  - lib/supply_drop.rb
35
- - examples/capistrano/Capfile
36
- - examples/capistrano/puppet.pp
37
- - examples/capistrano/Vagrantfile
35
+ - examples/ec2/Capfile
36
+ - examples/ec2/puppet.pp
37
+ - examples/vagrant/Capfile
38
+ - examples/vagrant/puppet.pp
39
+ - examples/vagrant/Vagrantfile
38
40
  has_rdoc: true
39
41
  homepage: http://github.com/pitluga/supply_drop
40
42
  licenses: []
@@ -65,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
67
  requirements: []
66
68
 
67
69
  rubyforge_project:
68
- rubygems_version: 1.6.0
70
+ rubygems_version: 1.4.1
69
71
  signing_key:
70
72
  specification_version: 3
71
73
  summary: Serverless puppet with capistrano