deprec 2.1.14 → 2.1.16

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,6 +1,14 @@
1
1
  # deprec changelog
2
2
 
3
- = 2.1.14 (Sep 27, 2010)
3
+ = 2.1.16 (Jan 13, 2010)
4
+
5
+ * bugfix: ddt does not require call to 'configure'
6
+
7
+ = 2.1.15 (Oct 04, 2010)
8
+
9
+ * deprec:ec2 namespace as a basis for ec2 recipes
10
+
11
+ = 2.1.14 (Sep 27, 2010)
4
12
 
5
13
  * daemonize-1.6
6
14
  * ree i386 hardy deb package
@@ -16,7 +16,8 @@ Capistrano::Configuration.instance(:must_exist).load do
16
16
 
17
17
  SRC_PACKAGES[:ddt] = {
18
18
  :url => "http://support.coraid.com/support/sr/ddt-8.tgz",
19
- :md5sum => "256a58aba5e05f9995fb9de6aadadf92 ddt-8.tgz"
19
+ :md5sum => "256a58aba5e05f9995fb9de6aadadf92 ddt-8.tgz",
20
+ :configure => ''
20
21
  }
21
22
 
22
23
  SRC_PACKAGES[:aoemask] = {
@@ -0,0 +1,37 @@
1
+ # Copyright 2006-2010 by Mike Bailey. All rights reserved.
2
+ Capistrano::Configuration.instance(:must_exist).load do
3
+ namespace :deprec do
4
+ namespace :ec2 do
5
+
6
+ set :ec2_zone, 'us-west-1'
7
+
8
+ desc "Set some EC2 specific variables"
9
+ task :default do
10
+ unset :gateway
11
+ ssh_options[:paranoid] = false
12
+ set :network_dns_nameservers, '172.16.0.23' # valid outside us-west-1?
13
+ set(:network_dns_search_path) {"#{ec2_zone}.compute.internal"}
14
+ set :ec2_instance_id,
15
+ capture("curl http://169.254.169.254/latest/meta-data/instance-id")
16
+ end
17
+
18
+ desc "Disable termination of EC2 instances"
19
+ task :safe do
20
+ while true
21
+ instanceid = ec2_instance_id ||
22
+ Capistrano::CLI.ui.ask("instanceid") do |q|
23
+ q.default = 'exit'
24
+ end
25
+ break if instanceid == 'exit'
26
+ # Disable termination of this instance. Safety lock!
27
+ `ec2-modify-instance-attribute --disable-api-termination true #{instanceid}`
28
+ # Don't destroy EBS volume when instance terminated
29
+ # This is default for EBS backed volumes but we want to be explicit.
30
+ `ec2-modify-instance-attribute --instance-initiated-shutdown-behavior stop #{instanceid}`
31
+ break if ec2_instance_id # don't keep asking for instance id's
32
+ end
33
+ end
34
+
35
+ end
36
+ end
37
+ end
@@ -5,14 +5,8 @@ Capistrano::Configuration.instance(:must_exist).load do
5
5
 
6
6
  SRC_PACKAGES[:daemonize] = {
7
7
  :md5sum => "62aef13cf2dbc305b8c2c033a26cc18d bmc-daemonize-release-1.6-0-gf9d8e03.tar.gz",
8
- :dir => 'bmc-daemonize-f9d8e03',
9
8
  :url => "http://github.com/bmc/daemonize/tarball/release-1.6",
10
- :configure => %w(
11
- ./configure
12
- ;
13
- ).reject{|arg| arg.match '#'}.join(' '),
14
- :make => 'make;',
15
- :install => 'make install;'
9
+ :dir => 'bmc-daemonize-f9d8e03'
16
10
  }
17
11
 
18
12
  namespace :daemonize do
@@ -33,7 +27,7 @@ Capistrano::Configuration.instance(:must_exist).load do
33
27
 
34
28
  desc "Install some useful mail utils"
35
29
  task :mail do
36
- apps = %w(mailx mutt)
30
+ apps = %w(mailutils mutt)
37
31
  apt.install( {:base => apps}, :stable )
38
32
  end
39
33
 
@@ -48,6 +42,12 @@ Capistrano::Configuration.instance(:must_exist).load do
48
42
  net
49
43
  mail
50
44
  other
45
+ top.deprec.ddt.install
46
+ end
47
+
48
+ task :remove_consolekit do
49
+ run "#{sudo} killall console-kit-daemon; exit 0"
50
+ run "#{sudo} apt-get -y remove consolekit # chews resources"
51
51
  end
52
52
 
53
53
  end
@@ -6,7 +6,8 @@ require "#{File.dirname(__FILE__)}/recipes/canonical"
6
6
  require "#{File.dirname(__FILE__)}/recipes/deprec"
7
7
  require "#{File.dirname(__FILE__)}/recipes/deprecated"
8
8
 
9
- require "#{File.dirname(__FILE__)}/recipes/chef"
9
+ # require "#{File.dirname(__FILE__)}/recipes/chef"
10
+ require "#{File.dirname(__FILE__)}/recipes/ec2"
10
11
 
11
12
  require "#{File.dirname(__FILE__)}/recipes/app/mongrel"
12
13
  require "#{File.dirname(__FILE__)}/recipes/app/passenger"
File without changes
@@ -84,7 +84,7 @@ private
84
84
  # Provides a string containing all the package names in the base
85
85
  #list plus those in +version+.
86
86
  def package_list(packages, version)
87
- packages[:base].to_a.join(' ') + ' ' + packages[version].to_a.join(' ')
87
+ Array(packages[:base]).join(' ') + ' ' + Array(packages[version]).join(' ')
88
88
  end
89
89
 
90
90
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deprec
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 43
5
+ prerelease:
5
6
  segments:
6
7
  - 2
7
8
  - 1
8
- - 14
9
- version: 2.1.14
9
+ - 16
10
+ version: 2.1.16
10
11
  platform: ruby
11
12
  authors:
12
13
  - Mike Bailey
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-09-27 00:00:00 +10:00
18
+ date: 2011-01-13 00:00:00 +11:00
18
19
  default_executable: depify
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -25,6 +26,7 @@ dependencies:
25
26
  requirements:
26
27
  - - ">"
27
28
  - !ruby/object:Gem::Version
29
+ hash: 27
28
30
  segments:
29
31
  - 2
30
32
  - 5
@@ -40,6 +42,7 @@ dependencies:
40
42
  requirements:
41
43
  - - ">="
42
44
  - !ruby/object:Gem::Version
45
+ hash: 29
43
46
  segments:
44
47
  - 1
45
48
  - 2
@@ -106,6 +109,7 @@ files:
106
109
  - lib/deprec/recipes/vnstat.rb
107
110
  - lib/deprec/recipes/ubuntu.rb
108
111
  - lib/deprec/recipes/syslog_ng.rb
112
+ - lib/deprec/recipes/ec2.rb
109
113
  - lib/deprec/recipes/sphinx.rb
110
114
  - lib/deprec/recipes/monit.rb
111
115
  - lib/deprec/recipes/ssl.rb
@@ -264,6 +268,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
264
268
  requirements:
265
269
  - - ">="
266
270
  - !ruby/object:Gem::Version
271
+ hash: 3
267
272
  segments:
268
273
  - 0
269
274
  version: "0"
@@ -272,13 +277,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
272
277
  requirements:
273
278
  - - ">="
274
279
  - !ruby/object:Gem::Version
280
+ hash: 3
275
281
  segments:
276
282
  - 0
277
283
  version: "0"
278
284
  requirements: []
279
285
 
280
286
  rubyforge_project: deprec
281
- rubygems_version: 1.3.7
287
+ rubygems_version: 1.4.2
282
288
  signing_key:
283
289
  specification_version: 3
284
290
  summary: deployment recipes for capistrano