Closed Bug 1046173 Opened 10 years ago Closed 10 years ago

put /etc/logrotate.d/a10n into puppet on a10n.webapp.scl3

Categories

(Infrastructure & Operations Graveyard :: WebOps: Other, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rhelmer, Assigned: cliang)

Details

(Whiteboard: [kanban:https://kanbanize.com/ctrl_board/4/641] )

I have created this file on the a10n server and tested that it is working the way we expect - can someone check into the puppet repo and make sure puppet maintains it? Also if you see any problems with it that'd be appreciated. Thanks!

[rhelmer@a10n.webapp.scl3 ~]$ cat /etc/logrotate.d/a10n 
/var/log/program-*.log {
       daily
       rotate 52
       compress
       delaycompress
       notifempty
       missingok
       copytruncate
}
Whiteboard: [kanban:https://kanbanize.com/ctrl_board/4/641]
Assignee: server-ops-webops → cliang
The file seems to be correct and working.  I've checked the following into the puppet repo:

Index: modules/webapp/files/a10n/etc-logrotated/a10n
===================================================================
--- modules/webapp/files/a10n/etc-logrotated/a10n	(revision 0)
+++ modules/webapp/files/a10n/etc-logrotated/a10n	(revision 91223)
@@ -0,0 +1,9 @@
+/var/log/program-*.log {
+       daily
+       rotate 52
+       compress
+       delaycompress
+       notifempty
+       missingok
+       copytruncate
+}
Index: modules/webapp/manifests/a10n.pp
===================================================================
--- modules/webapp/manifests/a10n.pp	(revision 91217)
+++ modules/webapp/manifests/a10n.pp	(revision 91223)
@@ -148,4 +148,9 @@
             ];
     }

+    # Bug 1046173
+    file { "/etc/logrotate.d/a10n":
+      source  => "puppet:///modules/${module_name}/a10n/etc-logrotated/a10n",
+    }
+
 }
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.