;;; Tyreunom's system administration and configuration tools.
;;;
;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
;;;
;;; This program is free software: you can redistribute it and/or modify
;;; it under the terms of the GNU General Public License as published by
;;; the Free Software Foundation, either version 3 of the License, or
;;; (at your option) any later version.
;;;
;;; This program is distributed in the hope that it will be useful,
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with this program.  If not, see <http://www.gnu.org/licenses/>.

;;
;; Definition of rotation policies
;;

(define-module (config rotation)
  #:use-module (gnu services)
  #:use-module (gnu services admin)
  #:export (server-rotations
            base-rotations))

(define base-rotations
  (list "/var/log/guix-daemon.log"
        "/var/log/mcron.log"
        "/var/log/debug"
        "/var/log/lastlog"
        "/var/log/messages"
        "/var/log/secure"
        "/var/log/wtmp"
        "/var/log/shepherd.log"))

(define server-rotations
  (append
    base-rotations
    (list
      "/var/log/letsencrypt/letsencrypt.log"
      "/var/log/maillog"
      "/var/log/nginx/access.log"
      "/var/log/nginx/error.log")))