summaryrefslogtreecommitdiffstats
path: root/roles/nickhammond.logrotate/tests
diff options
context:
space:
mode:
authorTroy Dawson <tdawson@redhat.com>2015-08-27 15:23:44 -0500
committerTroy Dawson <tdawson@redhat.com>2015-08-27 15:23:44 -0500
commitede0fd9a75f3f0927f95cf542be0cb4a9448c96d (patch)
treed630e3f95ce950fbbfe664075048d63d3278c51d /roles/nickhammond.logrotate/tests
parent2483b7767d4e56e41e9890adfffe4bdc1480a11b (diff)
parentf0d03d257f2186c91e99c06e34be737468ea6ad6 (diff)
downloadopenshift-ede0fd9a75f3f0927f95cf542be0cb4a9448c96d.tar.gz
openshift-ede0fd9a75f3f0927f95cf542be0cb4a9448c96d.tar.bz2
openshift-ede0fd9a75f3f0927f95cf542be0cb4a9448c96d.tar.xz
openshift-ede0fd9a75f3f0927f95cf542be0cb4a9448c96d.zip
Merge pull request #518 from tdawson/201508logrotate
Update syslog logrotate to compress and rotate daily
Diffstat (limited to 'roles/nickhammond.logrotate/tests')
-rw-r--r--roles/nickhammond.logrotate/tests/inventory1
-rw-r--r--roles/nickhammond.logrotate/tests/test.yml18
2 files changed, 19 insertions, 0 deletions
diff --git a/roles/nickhammond.logrotate/tests/inventory b/roles/nickhammond.logrotate/tests/inventory
new file mode 100644
index 000000000..2fbb50c4a
--- /dev/null
+++ b/roles/nickhammond.logrotate/tests/inventory
@@ -0,0 +1 @@
+localhost
diff --git a/roles/nickhammond.logrotate/tests/test.yml b/roles/nickhammond.logrotate/tests/test.yml
new file mode 100644
index 000000000..e806b0a02
--- /dev/null
+++ b/roles/nickhammond.logrotate/tests/test.yml
@@ -0,0 +1,18 @@
+---
+- hosts: all
+ sudo: True
+ roles:
+ - ansible-logrotate
+ - role: ansible-logrotate
+ logrotate_scripts:
+ - name: nginx-options
+ path: /var/log/nginx/options.log
+ options:
+ - daily
+
+ - role: ansible-logrotate
+ logrotate_scripts:
+ - name: nginx-scripts
+ path: /var/log/nginx/scripts.log
+ scripts:
+ postrotate: "echo test"