[MediaWiki-commits] [Gerrit] operations/puppet[production]: parsoid-testing: add logrotate
Dzahn has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/345888 ) Change subject: parsoid-testing: add logrotate .. parsoid-testing: add logrotate Bug: T161920 Change-Id: Ia7bd1af992ed2290370529c14d06b301ecf21c10 --- A modules/parsoid/files/parsoid_testing.logrotate.conf M modules/role/manifests/parsoid/testing.pp 2 files changed, 19 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/88/345888/1 diff --git a/modules/parsoid/files/parsoid_testing.logrotate.conf b/modules/parsoid/files/parsoid_testing.logrotate.conf new file mode 100644 index 000..74c89f6 --- /dev/null +++ b/modules/parsoid/files/parsoid_testing.logrotate.conf @@ -0,0 +1,14 @@ +# +### THIS FILE IS MANAGED BY PUPPET +### puppet:///modules/parsoid/parsoid_testing_logrotate +# + +/var/log/parsoid { +daily +compress +delaycompress +missingok +notifempty +rotate 7 +} + diff --git a/modules/role/manifests/parsoid/testing.pp b/modules/role/manifests/parsoid/testing.pp index c4fa9b4..e37e572 100644 --- a/modules/role/manifests/parsoid/testing.pp +++ b/modules/role/manifests/parsoid/testing.pp @@ -52,6 +52,11 @@ notify => Service['nginx'], } +logrotate::conf { 'parsoid_testing': +ensure => 'present', +source => 'puppet:///modules/parsoid/parsoid_testing.logrotate.conf', +} + ferm::service { 'nginx-parsoid-testing': proto => 'tcp', port => 8001, -- To view, visit https://gerrit.wikimedia.org/r/345888 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia7bd1af992ed2290370529c14d06b301ecf21c10 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Dzahn ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] operations/puppet[production]: parsoid-testing: add logrotate
Dzahn has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/345888 ) Change subject: parsoid-testing: add logrotate .. parsoid-testing: add logrotate Bug: T161920 Change-Id: Ia7bd1af992ed2290370529c14d06b301ecf21c10 --- A modules/parsoid/files/parsoid_testing.logrotate.conf M modules/role/manifests/parsoid/testing.pp 2 files changed, 19 insertions(+), 0 deletions(-) Approvals: jenkins-bot: Verified Dzahn: Looks good to me, approved diff --git a/modules/parsoid/files/parsoid_testing.logrotate.conf b/modules/parsoid/files/parsoid_testing.logrotate.conf new file mode 100644 index 000..e724dbe --- /dev/null +++ b/modules/parsoid/files/parsoid_testing.logrotate.conf @@ -0,0 +1,14 @@ +# +### THIS FILE IS MANAGED BY PUPPET +### puppet:///modules/parsoid/parsoid_testing_logrotate +# + +/srv/log/parsoid/main.log { +daily +compress +delaycompress +missingok +notifempty +rotate 7 +} + diff --git a/modules/role/manifests/parsoid/testing.pp b/modules/role/manifests/parsoid/testing.pp index c4fa9b4..e37e572 100644 --- a/modules/role/manifests/parsoid/testing.pp +++ b/modules/role/manifests/parsoid/testing.pp @@ -52,6 +52,11 @@ notify => Service['nginx'], } +logrotate::conf { 'parsoid_testing': +ensure => 'present', +source => 'puppet:///modules/parsoid/parsoid_testing.logrotate.conf', +} + ferm::service { 'nginx-parsoid-testing': proto => 'tcp', port => 8001, -- To view, visit https://gerrit.wikimedia.org/r/345888 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ia7bd1af992ed2290370529c14d06b301ecf21c10 Gerrit-PatchSet: 3 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Dzahn Gerrit-Reviewer: Dzahn Gerrit-Reviewer: Giuseppe Lavagetto Gerrit-Reviewer: Mobrovac Gerrit-Reviewer: Subramanya Sastry Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits