From 1d0a8fb71b83c2a7ee170ffe4ea8d5bf76230ac7 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Wed, 14 Mar 2018 23:58:16 -0400 Subject: [PATCH] Validate logrotate for services Add some basic validation that we can logrotate our nodepool / zuul services. Change-Id: I00142be48f823d829c67f4b93f27acbe6b17d2a6 Signed-off-by: Paul Belanger --- playbooks/roles/test.nodepool-builder/tasks/main.yaml | 5 +++++ playbooks/roles/test.nodepool-launcher/tasks/main.yaml | 5 +++++ playbooks/roles/test.zuul-executor/tasks/main.yaml | 5 +++++ playbooks/roles/test.zuul-fingergw/tasks/main.yaml | 5 +++++ playbooks/roles/test.zuul-merger/tasks/main.yaml | 5 +++++ playbooks/roles/test.zuul-scheduler/tasks/main.yaml | 5 +++++ playbooks/roles/test.zuul-web/tasks/main.yaml | 5 +++++ 7 files changed, 35 insertions(+) diff --git a/playbooks/roles/test.nodepool-builder/tasks/main.yaml b/playbooks/roles/test.nodepool-builder/tasks/main.yaml index 725fdfa..5a8dfe1 100644 --- a/playbooks/roles/test.nodepool-builder/tasks/main.yaml +++ b/playbooks/roles/test.nodepool-builder/tasks/main.yaml @@ -46,3 +46,8 @@ become: yes shell: /usr/sbin/service nodepool-builder status tags: skip_ansible_lint + +- name: Ensure logrotate is setup + become: yes + command: logrotate -d /etc/logrotate.d/nodepool-builder + tags: skip_ansible_lint diff --git a/playbooks/roles/test.nodepool-launcher/tasks/main.yaml b/playbooks/roles/test.nodepool-launcher/tasks/main.yaml index cddf5ea..2429ff3 100644 --- a/playbooks/roles/test.nodepool-launcher/tasks/main.yaml +++ b/playbooks/roles/test.nodepool-launcher/tasks/main.yaml @@ -32,3 +32,8 @@ become: yes shell: /usr/sbin/service nodepool-launcher status tags: skip_ansible_lint + +- name: Ensure logrotate is setup + become: yes + command: logrotate -d /etc/logrotate.d/nodepool-launcher + tags: skip_ansible_lint diff --git a/playbooks/roles/test.zuul-executor/tasks/main.yaml b/playbooks/roles/test.zuul-executor/tasks/main.yaml index 8deb241..c2c7fd3 100644 --- a/playbooks/roles/test.zuul-executor/tasks/main.yaml +++ b/playbooks/roles/test.zuul-executor/tasks/main.yaml @@ -27,3 +27,8 @@ become: yes shell: /usr/sbin/service zuul-executor status tags: skip_ansible_lint + +- name: Ensure logrotate is setup + become: yes + command: logrotate -d /etc/logrotate.d/zuul-executor + tags: skip_ansible_lint diff --git a/playbooks/roles/test.zuul-fingergw/tasks/main.yaml b/playbooks/roles/test.zuul-fingergw/tasks/main.yaml index 25acd84..f283916 100644 --- a/playbooks/roles/test.zuul-fingergw/tasks/main.yaml +++ b/playbooks/roles/test.zuul-fingergw/tasks/main.yaml @@ -27,3 +27,8 @@ become: yes shell: /usr/sbin/service zuul-fingergw status tags: skip_ansible_lint + +- name: Ensure logrotate is setup + become: yes + command: logrotate -d /etc/logrotate.d/zuul-fingergw + tags: skip_ansible_lint diff --git a/playbooks/roles/test.zuul-merger/tasks/main.yaml b/playbooks/roles/test.zuul-merger/tasks/main.yaml index fa2ce7e..32a10d7 100644 --- a/playbooks/roles/test.zuul-merger/tasks/main.yaml +++ b/playbooks/roles/test.zuul-merger/tasks/main.yaml @@ -27,3 +27,8 @@ become: yes shell: /usr/sbin/service zuul-merger status tags: skip_ansible_lint + +- name: Ensure logrotate is setup + become: yes + command: logrotate -d /etc/logrotate.d/zuul-merger + tags: skip_ansible_lint diff --git a/playbooks/roles/test.zuul-scheduler/tasks/main.yaml b/playbooks/roles/test.zuul-scheduler/tasks/main.yaml index f5fa31e..be66648 100644 --- a/playbooks/roles/test.zuul-scheduler/tasks/main.yaml +++ b/playbooks/roles/test.zuul-scheduler/tasks/main.yaml @@ -27,3 +27,8 @@ become: yes shell: /usr/sbin/service zuul-scheduler status tags: skip_ansible_lint + +- name: Ensure logrotate is setup + become: yes + command: logrotate -d /etc/logrotate.d/zuul-scheduler + tags: skip_ansible_lint diff --git a/playbooks/roles/test.zuul-web/tasks/main.yaml b/playbooks/roles/test.zuul-web/tasks/main.yaml index c413add..a7df61c 100644 --- a/playbooks/roles/test.zuul-web/tasks/main.yaml +++ b/playbooks/roles/test.zuul-web/tasks/main.yaml @@ -27,3 +27,8 @@ become: yes shell: /usr/sbin/service zuul-web status tags: skip_ansible_lint + +- name: Ensure logrotate is setup + become: yes + command: logrotate -d /etc/logrotate.d/zuul-web + tags: skip_ansible_lint