supply_drop 0.16.1 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +10 -0
  3. data/lib/supply_drop/tasks.rb +21 -4
  4. metadata +35 -52
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8744bb6f0cd2db85f0924ea55a9035fbb781506a
4
+ data.tar.gz: 8c2d3aa1e1a1ebad32f70f454980b394da188ac1
5
+ SHA512:
6
+ metadata.gz: 49fdb53d029171c3c7dcdd13264da21181e11f8f2ef8c8b55f33f0eacf75b3b8eaebd3d040496c1a0235eba44d0b9f2539598f67478fa93681e2a52dd9b13a59
7
+ data.tar.gz: e0bf5cbb600db204ce1d33a61ab4da829291c81429244acab4c40e2651a4141b2900a31325cac2f3f848fdd4991ff3b2b7b6551c86722b2cb8a469a1181c95c5
data/README.md CHANGED
@@ -19,12 +19,18 @@ then at the top of your deploy.rb
19
19
 
20
20
  ### Tasks
21
21
 
22
+ cap puppet:bootstrap:debian
22
23
  cap puppet:bootstrap:ubuntu
23
24
  cap puppet:bootstrap:osx
24
25
  cap puppet:bootstrap:redhat
25
26
 
26
27
  This does a simple apt-get install of puppet on the target servers.
27
28
 
29
+ cap puppet:bootstrap:puppetlabs:debian
30
+ cap puppet:bootstrap:puppetlabs:ubuntu
31
+
32
+ This is the same as above, but it grabs the most recent versions of puppet via apt repositories provided by puppetlabs.
33
+
28
34
  cap puppet:noop
29
35
 
30
36
  This will show you a list of the pending changes to be applied server-by-server.
@@ -113,6 +119,10 @@ You'll need to do this if you see errors like this:
113
119
 
114
120
  Could not parse for environment production: Could not find file /home/.../supply_drop/apply.pp
115
121
 
122
+ ### Hiera support
123
+
124
+ Most distributions don't package versions of puppet that are new enough to support hiera. Use the puppetlabs namespaced bootstrap tasks above to make sure you get hiera support.
125
+
116
126
  ### How to contribute
117
127
 
118
128
  If you write anything complicated, write a test for it. Test that your changes work using vagrant. Send a pull request. Easy peezy.
@@ -14,22 +14,30 @@ Capistrano::Configuration.instance.load do
14
14
  set :puppet_write_to_file, nil
15
15
  set :puppet_runner, nil
16
16
  set :puppet_lock_file, '/tmp/puppet.lock'
17
+ set :hiera_package, nil
17
18
 
18
19
  namespace :bootstrap do
19
- desc "installs puppet via rubygems on an osx host"
20
+ desc "installs puppet and hiera via rubygems on an osx host"
20
21
  task :osx do
21
22
  if fetch(:use_sudo, true)
22
- run "#{sudo} gem install puppet --no-ri --no-rdoc"
23
+ run "#{sudo} gem install puppet hiera --no-ri --no-rdoc"
23
24
  else
24
25
  run "gem install puppet --no-ri --no-rdoc"
25
26
  end
26
27
  end
27
28
 
29
+ desc "installs puppet via apt on a debian host"
30
+ task :debian do
31
+ run "mkdir -p #{puppet_destination}"
32
+ run "#{sudo} apt-get update"
33
+ run "#{sudo} apt-get install -y puppet #{hiera_package} rsync"
34
+ end
35
+
28
36
  desc "installs puppet via apt on an ubuntu host"
29
37
  task :ubuntu do
30
38
  run "mkdir -p #{puppet_destination}"
31
39
  run "#{sudo} apt-get update"
32
- run "#{sudo} apt-get install -y puppet rsync"
40
+ run "#{sudo} apt-get install -y puppet #{hiera_package} rsync"
33
41
  end
34
42
 
35
43
  desc "installs puppet via yum on a centos/red hat host"
@@ -39,15 +47,24 @@ Capistrano::Configuration.instance.load do
39
47
  end
40
48
 
41
49
  namespace :puppetlabs do
42
-
43
50
  desc "setup the puppetlabs repo, then install via the normal method"
44
51
  task :ubuntu do
52
+ set :hiera_package, "hiera"
45
53
  run "echo deb http://apt.puppetlabs.com/ $(lsb_release -sc) main | #{sudo} tee /etc/apt/sources.list.d/puppet.list"
46
54
  run "echo deb http://apt.puppetlabs.com/ $(lsb_release -sc) dependencies | #{sudo} tee -a /etc/apt/sources.list.d/puppet.list"
47
55
  run "#{sudo} apt-key adv --keyserver keyserver.ubuntu.com --recv 4BD6EC30"
48
56
  puppet.bootstrap.ubuntu
49
57
  end
50
58
 
59
+ desc "setup the puppetlabs repo, then install via the normal method"
60
+ task :debian do
61
+ set :hiera_package, "hiera"
62
+ run "echo deb http://apt.puppetlabs.com/ $(lsb_release -sc) main | #{sudo} tee /etc/apt/sources.list.d/puppet.list"
63
+ run "echo deb http://apt.puppetlabs.com/ $(lsb_release -sc) dependencies | #{sudo} tee -a /etc/apt/sources.list.d/puppet.list"
64
+ run "#{sudo} apt-key adv --keyserver keyserver.ubuntu.com --recv 4BD6EC30"
65
+ puppet.bootstrap.debian
66
+ end
67
+
51
68
  desc "setup the puppetlabs repo, then install via the normal method"
52
69
  task :redhat do
53
70
  logger.info "PuppetLabs::RedHat bootstrap is not implemented yet"
metadata CHANGED
@@ -1,50 +1,41 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: supply_drop
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 16
8
- - 1
9
- version: 0.16.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.17.0
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - Tony Pitluga
13
8
  - Paul Hinze
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2013-08-23 00:00:00 -05:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2014-04-25 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: capistrano
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 2
30
- - 5
31
- - 21
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - '>='
19
+ - !ruby/object:Gem::Version
32
20
  version: 2.5.21
33
21
  type: :runtime
34
- version_requirements: *id001
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - '>='
26
+ - !ruby/object:Gem::Version
27
+ version: 2.5.21
35
28
  description: See http://github.com/pitluga/supply_drop
36
- email:
29
+ email:
37
30
  - tony.pitluga@gmail.com
38
31
  - paul.t.hinze@gmail.com
39
32
  executables: []
40
-
41
33
  extensions: []
42
-
43
34
  extra_rdoc_files: []
44
-
45
- files:
35
+ files:
46
36
  - README.md
47
37
  - Rakefile
38
+ - lib/supply_drop.rb
48
39
  - lib/supply_drop/async_enumerable.rb
49
40
  - lib/supply_drop/plugin.rb
50
41
  - lib/supply_drop/rsync.rb
@@ -55,36 +46,28 @@ files:
55
46
  - lib/supply_drop/writer/batched.rb
56
47
  - lib/supply_drop/writer/file.rb
57
48
  - lib/supply_drop/writer/streaming.rb
58
- - lib/supply_drop.rb
59
- has_rdoc: true
60
49
  homepage: http://github.com/pitluga/supply_drop
61
- licenses:
50
+ licenses:
62
51
  - MIT
52
+ metadata: {}
63
53
  post_install_message:
64
54
  rdoc_options: []
65
-
66
- require_paths:
55
+ require_paths:
67
56
  - lib
68
- required_ruby_version: !ruby/object:Gem::Requirement
69
- requirements:
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- segments:
73
- - 0
74
- version: "0"
75
- required_rubygems_version: !ruby/object:Gem::Requirement
76
- requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- segments:
80
- - 0
81
- version: "0"
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
82
67
  requirements: []
83
-
84
68
  rubyforge_project:
85
- rubygems_version: 1.3.6
69
+ rubygems_version: 2.0.14
86
70
  signing_key:
87
- specification_version: 3
71
+ specification_version: 4
88
72
  summary: Masterless puppet with capistrano
89
73
  test_files: []
90
-