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

RESOLVED FIXED

Status

RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: rhelmer, Assigned: cliang)

Tracking

Details

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

(Reporter)

Description

4 years ago
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
}

Updated

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

Updated

4 years ago
Assignee: server-ops-webops → cliang
(Assignee)

Comment 1

4 years ago
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
Last Resolved: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.