deprec 2.1.16 → 2.1.17

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/CHANGELOG CHANGED
@@ -1,6 +1,11 @@
1
1
  # deprec changelog
2
2
 
3
- = 2.1.16 (Jan 13, 2010)
3
+ = 2.1.17 (Feb 1, 2011)
4
+
5
+ * Passenger vhost sets RackEnv and RailsEnv
6
+ * nagios-3.2.3
7
+
8
+ = 2.1.16 (Jan 13, 2011)
4
9
 
5
10
  * bugfix: ddt does not require call to 'configure'
6
11
 
@@ -13,8 +13,8 @@ Capistrano::Configuration.instance(:must_exist).load do
13
13
  # default :application, 'nagios'
14
14
 
15
15
  SRC_PACKAGES[:nagios] = {
16
- :url => "http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.1.tar.gz",
17
- :md5sum => "d4655ee8c95c9679fd4fd53dac34bbe3 nagios-3.2.1.tar.gz",
16
+ :url => "http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.3.tar.gz",
17
+ :md5sum => "fe1be46e6976a52acdb021a782b5d04b nagios-3.2.3.tar.gz",
18
18
  :configure => "./configure --with-command-group=nagcmd;",
19
19
  :make => 'make all;',
20
20
  :install => 'make install install-init install-commandmode install-webconf;'
@@ -10,7 +10,7 @@ Capistrano::Configuration.instance(:must_exist).load do
10
10
  desc "Create account"
11
11
  task :add do
12
12
  [users_target_user, users_target_group, users_make_admin] # get input
13
-
13
+
14
14
  while true do
15
15
  new_password = Capistrano::CLI.ui.ask("Enter new password for #{users_target_user}") { |q| q.echo = false }
16
16
  password_conf = Capistrano::CLI.ui.ask("Re-enter new password for #{users_target_user}") { |q| q.echo = false }
@@ -22,19 +22,26 @@ Capistrano::Configuration.instance(:must_exist).load do
22
22
  break
23
23
  end
24
24
  end
25
-
26
- deprec2.useradd(users_target_user, :shell => '/bin/bash')
27
25
 
28
- deprec2.invoke_with_input("passwd #{users_target_user}", /UNIX password/, new_password)
29
-
30
- if users_make_admin.match(/y/i)
31
- deprec2.groupadd('admin')
32
- deprec2.add_user_to_group(users_target_user, 'admin')
33
- deprec2.append_to_file_if_missing('/etc/sudoers', '%admin ALL=(ALL) ALL')
26
+ # Grab a list of all users with keys
27
+ if users_target_user == 'all'
28
+ set :users_target_user, Dir.entries('config/ssh/authorized_keys').reject{|f| ['.','..'].include? f}
34
29
  end
30
+
31
+ Array(users_target_user).each do |user|
35
32
 
36
- set :target_user, users_target_user
37
- top.deprec.ssh.setup_keys
33
+ deprec2.useradd(user, :shell => '/bin/bash')
34
+ deprec2.invoke_with_input("passwd #{user}", /UNIX password/, new_password)
35
+
36
+ if users_make_admin.match(/y/i)
37
+ deprec2.groupadd('admin')
38
+ deprec2.add_user_to_group(user, 'admin')
39
+ deprec2.append_to_file_if_missing('/etc/sudoers', '%admin ALL=(ALL) ALL')
40
+ end
41
+
42
+ set :target_user, user
43
+ top.deprec.ssh.setup_keys
44
+ end
38
45
 
39
46
  end
40
47
 
@@ -0,0 +1,15 @@
1
+ # Copyright 2006-2008 by Mike Bailey. All rights reserved.
2
+ Capistrano::Configuration.instance(:must_exist).load do
3
+ namespace :deprec do
4
+ namespace :vmware_tools do
5
+
6
+ desc "Install VMware tools on guest"
7
+ task :install do
8
+ run "#{sudo} mount /dev/cdrom /mnt"
9
+ run "tar zxfv /mnt/VMwareTools-*.tar.gz"
10
+ run "#{sudo} ./vmware-tools-distrib/vmware-install.pl --default"
11
+ end
12
+
13
+ end
14
+ end
15
+ end
@@ -8,6 +8,7 @@ require "#{File.dirname(__FILE__)}/recipes/deprecated"
8
8
 
9
9
  # require "#{File.dirname(__FILE__)}/recipes/chef"
10
10
  require "#{File.dirname(__FILE__)}/recipes/ec2"
11
+ require "#{File.dirname(__FILE__)}/recipes/vmware_tools"
11
12
 
12
13
  require "#{File.dirname(__FILE__)}/recipes/app/mongrel"
13
14
  require "#{File.dirname(__FILE__)}/recipes/app/passenger"
@@ -9,6 +9,7 @@
9
9
  CustomLog <%= apache_log_dir %>/<%= application %>-access.log combined
10
10
  ErrorLog <%= apache_log_dir %>/<%= application %>-error.log
11
11
 
12
+ RackEnv <%= rails_env %>
12
13
  RailsEnv <%= rails_env %>
13
14
  # RailsAllowModRewrite <%= passenger_rails_allow_mod_rewrite %>
14
15
  #
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deprec
3
3
  version: !ruby/object:Gem::Version
4
- hash: 43
4
+ hash: 41
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 16
10
- version: 2.1.16
9
+ - 17
10
+ version: 2.1.17
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mike Bailey
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-13 00:00:00 +11:00
18
+ date: 2011-02-04 00:00:00 +11:00
19
19
  default_executable: depify
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -87,6 +87,7 @@ files:
87
87
  - lib/deprec/recipes/ntp.rb
88
88
  - lib/deprec/recipes/ssh.rb
89
89
  - lib/deprec/recipes/bash.rb
90
+ - lib/deprec/recipes/vmware_tools.rb
90
91
  - lib/deprec/recipes/logrotate.rb
91
92
  - lib/deprec/recipes/starling.rb
92
93
  - lib/deprec/recipes/lvm.rb
@@ -109,6 +110,7 @@ files:
109
110
  - lib/deprec/recipes/vnstat.rb
110
111
  - lib/deprec/recipes/ubuntu.rb
111
112
  - lib/deprec/recipes/syslog_ng.rb
113
+ - lib/deprec/recipes/nagios-3.2.3.tar.gz
112
114
  - lib/deprec/recipes/ec2.rb
113
115
  - lib/deprec/recipes/sphinx.rb
114
116
  - lib/deprec/recipes/monit.rb