]> Frank Brehm's Git Trees - salt/states.git/commitdiff
Changed logrotating for chrony
authorFrank Brehm <frank@brehm-online.com>
Mon, 6 Jun 2016 10:30:48 +0000 (12:30 +0200)
committerFrank Brehm <frank@brehm-online.com>
Mon, 6 Jun 2016 10:30:48 +0000 (12:30 +0200)
basic/chrony.sls
basic/files/chrony.logrotate
postfix/common.sls

index cde9053f7ae308c6428dd26078b4594a2d122d1f..0aa11a9232c540eb26025b7d32874403ed04eaa4 100644 (file)
@@ -1,7 +1,7 @@
 
 chrony:
   pkg:
-    - installed
+    - latest
   service:
     - running
     - enable: True
@@ -69,20 +69,6 @@ chrony-logswitch-script-parent:
     - group: staff
     - dir_mode: 2775
 
-chrony-logswitch-script:
-  file.managed:
-    - name: /usr/local/bin/rotate-chrony
-    - source: salt://basic/files/rotate-chrony
-    - user: root
-    - group: staff
-    - mode: 755
-    - template: jinja
-    - backup: minion
-    - require:
-      - pkg: chrony
-      - file: chrony-logswitch-script-parent
-      - file: /etc/chrony/chrony.keys
-
 /etc/logrotate.d/chrony:
   file.managed:
     - user: root
@@ -95,5 +81,4 @@ chrony-logswitch-script:
       - test -d /etc/logrotate.d
     - require:
       - pkg: chrony
-      - file: chrony-logswitch-script
 
index 5b3758e619b4833234d76c13a3c987fd0e2a8d40..355118eaeadfa53abcc01533b31e31d518db971d 100644 (file)
@@ -10,6 +10,6 @@
        sharedscripts
        create 644
        postrotate
-               /usr/local/bin/rotate-chrony
+               /usr/bin/chronyc -a cyclelogs > /dev/null 2>&1 || true
        endscript
 }
index 6847f1d72173188134a4c04bbb8fe9965d69954b..9578cbe27515431971611a40f0ff7c910deaa56b 100644 (file)
@@ -23,6 +23,108 @@ postfix-pkgs:
     - require:
       - pkg: postfix
 
+#      - postfix-pgsql
+#      - postfix-pcre
+#      - sasl2-bin
+#      - postfix-cdb
+#      - heirloom-mailx
+#      - dovecot-sieve
+#      - dovecot-pgsql
+#      - dovecot-imapd
+#      - dovecot-pop3d
+#      - dovecot-lmtpd
+#      - mutt
+#      - amavisd-new
+#      - clamav
+#      - clamav-daemon
+#      - clamdscan
+#      - altermime
+#      - ripole
+#      - arj
+#      - cabextract
+#      - dovecot-antispam
+#      - spamassassin
+#      - spamc
+#      - sa-compile
+#      - lhasa
+#      - lzop
+#      - p7zip
+#      - rpm
+#      - unrar
+#      - pyzor
+#      - postgrey
+#      - policyd-weight
+#      - zip
+#      - zoo
+#      - unzip
+#      - alien
+#      - rpm-i18n
+#      - libio-string-perl
+#      - libnet-ident-perl
+#      - build-essential
+#      - libalgorithm-merge-perl
+#      - libalgorithm-diff-xs-perl
+#      - libfile-fcntllock-perl
+#      - libhtml-format-perl
+#      - libhtml-form-perl
+#      - libmail-sendmail-perl
+#      - libnet-rblclient-perl
+#      - libparse-syslog-perl
+#      - libmail-spf-perlpostfix
+#      - procmail
+#      - postfix-pgsql
+#      - postfix-pcre
+#      - sasl2-bin
+#      - postfix-cdb
+#      - heirloom-mailx
+#      - dovecot-sieve
+#      - dovecot-pgsql
+#      - dovecot-imapd
+#      - dovecot-pop3d
+#      - dovecot-lmtpd
+#      - mutt
+#      - amavisd-new
+#      - clamav
+#      - clamav-daemon
+#      - clamdscan
+#      - altermime
+#      - ripole
+#      - arj
+#      - cabextract
+#      - dovecot-antispam
+#      - spamassassin
+#      - spamc
+#      - sa-compile
+#      - lhasa
+#      - lzop
+#      - p7zip
+#      - rpm
+#      - unrar
+#      - pyzor
+#      - postgrey
+#      - policyd-weight
+#      - zip
+#      - zoo
+#      - unzip
+#      - alien
+#      - rpm-i18n
+#      - libio-string-perl
+#      - libnet-ident-perl
+#      - build-essential
+#      - libalgorithm-merge-perl
+#      - libalgorithm-diff-xs-perl
+#      - libfile-fcntllock-perl
+#      - libhtml-format-perl
+#      - libhtml-form-perl
+#      - libmail-sendmail-perl
+#      - libnet-rblclient-perl
+#      - libparse-syslog-perl
+#      - libmail-spf-perl
+#      - liblz4-tool
+#      - unar
+#      - unrar-free
+#      - arc
+
 /etc/postfix:
   file.directory:
     - user: root