Permalink
Browse files

logrotate_misc: initial commit

  • Loading branch information...
1 parent 54d13ce commit 4622bec4f04941d1e5cca31312dd71e1c8ee3984 @troyready troyready committed Jan 8, 2013
@@ -0,0 +1,12 @@
+# CHANGELOG for logrotate_misc
+
+This file is used to list changes made in each version of logrotate_misc.
+
+## 0.1.0:
+
+* Initial release of logrotate_misc
+
+- - -
+Check the [Markdown Syntax Guide](http://daringfireball.net/projects/markdown/syntax) for help with Markdown.
+
+The [Github Flavored Markdown page](http://github.github.com/github-flavored-markdown/) describes the differences between markdown on github and standard markdown.
View
@@ -0,0 +1,13 @@
+Description
+===========
+Simple cookbook to hold recipes for logrotate configurations that don't fit in other recipes.
+
+Requirements
+============
+
+Attributes
+==========
+
+Usage
+=====
+
@@ -0,0 +1,7 @@
+maintainer "Biola University"
+maintainer_email "troy.ready@biola.edu"
+license "Apache 2.0"
+description "Miscellaneous recipies for logrotate configuration"
+long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
+version "0.1.0"
+depends "logrotate"
@@ -0,0 +1,18 @@
+#
+# Cookbook Name:: logrotate_misc
+# Recipe:: default
+#
+# Copyright 2013, Biola University
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
@@ -0,0 +1,26 @@
+#
+# Cookbook Name:: logrotate_misc
+# Recipe:: rails_apps
+#
+# Copyright 2013, Biola University
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# Rails apps logs should be found under /var/log/rails/APPNAME/foo.log
+logrotate_app "rails_apps" do
+ cookbook "logrotate"
+ path "/var/log/rails/*/*.log"
+ frequency "daily"
+ rotate 30
+end

0 comments on commit 4622bec

Please sign in to comment.