le1t0-deprec 2.1.6.032 → 2.1.6.033

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,5 +1,10 @@
1
1
  # deprec changelog
2
2
 
3
+ = 2.1.6.033 (Jul 22, 2010)
4
+
5
+ * added syslogger script
6
+ * some small fixes for syslog-ng recipe
7
+
3
8
  = 2.1.6.032 (Jul 20, 2010)
4
9
 
5
10
  * some small fixes for syslog-ng recipe
@@ -28,17 +28,30 @@ Capistrano::Configuration.instance(:must_exist).load do
28
28
  :owner => 'root:root'}
29
29
 
30
30
  ]
31
+
32
+ SYSTEM_CONFIG_FILES[:syslog] = [
33
+
34
+ { :template => 'syslogger',
35
+ :path => '/usr/local/bin/syslogger',
36
+ :mode => 0755,
37
+ :owner => 'root:root'}
38
+
39
+ ]
31
40
 
32
41
  desc "Generate Syslog configs"
33
42
  task :config_gen do
34
43
  SYSTEM_CONFIG_FILES[:sysklogd].each do |file|
35
44
  deprec2.render_template(:sysklogd, file)
36
45
  end
46
+ SYSTEM_CONFIG_FILES[:syslog].each do |file|
47
+ deprec2.render_template(:syslog, file)
48
+ end
37
49
  end
38
50
 
39
51
  desc "Push Syslog config files to server"
40
52
  task :config, :roles => :all_hosts, :except => {:syslog_master => true} do
41
53
  deprec2.push_configs(:sysklogd, SYSTEM_CONFIG_FILES[:sysklogd])
54
+ deprec2.push_configs(:syslog, SYSTEM_CONFIG_FILES[:syslog])
42
55
  restart
43
56
  end
44
57
 
@@ -122,17 +122,30 @@ Capistrano::Configuration.instance(:must_exist).load do
122
122
  :owner => 'root:root'}
123
123
 
124
124
  ]
125
-
125
+
126
+ SYSTEM_CONFIG_FILES[:syslog] = [
127
+
128
+ { :template => 'syslogger',
129
+ :path => '/usr/local/bin/syslogger',
130
+ :mode => 0755,
131
+ :owner => 'root:root'}
132
+
133
+ ]
134
+
126
135
  desc "Generate Syslog-ng configs"
127
136
  task :config_gen do
128
137
  SYSTEM_CONFIG_FILES[:syslog_ng].each do |file|
129
138
  deprec2.render_template(:syslog_ng, file)
130
139
  end
140
+ SYSTEM_CONFIG_FILES[:syslog].each do |file|
141
+ deprec2.render_template(:syslog, file)
142
+ end
131
143
  end
132
144
 
133
145
  desc "Push Syslog-ng config files to server"
134
146
  task :config, :roles => :all_hosts do
135
147
  deprec2.push_configs(:syslog_ng, SYSTEM_CONFIG_FILES[:syslog_ng])
148
+ deprec2.push_configs(:syslog, SYSTEM_CONFIG_FILES[:syslog])
136
149
  restart
137
150
  end
138
151
 
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/perl
2
+
3
+ # argument 1 = facility (i.e. local7)
4
+ # argument 2 = program (i.e. apache)
5
+ # argument 3 = log_level (i.e. notice)
6
+
7
+ if ((@ARGV + 0) < 3) {
8
+ print "usage $0 <facility> <program> <log_level>" ;
9
+ }
10
+
11
+ use Sys::Syslog qw( :DEFAULT setlogsock );
12
+
13
+ setlogsock('unix');
14
+ openlog($ARGV[1], 'pid', $ARGV[0]);
15
+
16
+ while ($log = <STDIN>) {
17
+ syslog($ARGV[2], $log);
18
+ }
19
+ closelog
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 2
7
7
  - 1
8
8
  - 6
9
- - 32
10
- version: 2.1.6.032
9
+ - 33
10
+ version: 2.1.6.033
11
11
  platform: ruby
12
12
  authors:
13
13
  - Le1t0
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-20 00:00:00 +02:00
18
+ date: 2010-07-22 00:00:00 +02:00
19
19
  default_executable: depify
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -236,6 +236,7 @@ files:
236
236
  - lib/deprec/templates/subversion/svn.apache.vhost.erb
237
237
  - lib/deprec/templates/sysklogd/syslog.conf.erb
238
238
  - lib/deprec/templates/sysklogd/syslogd.erb
239
+ - lib/deprec/templates/syslog/syslogger
239
240
  - lib/deprec/templates/syslog_ng/syslog-ng.conf.erb
240
241
  - lib/deprec/templates/trac/apache_vhost.conf.erb
241
242
  - lib/deprec/templates/trac/nginx_vhost.conf.erb