diff --git a/playbooks/group_vars/nodepool-builder.yaml b/playbooks/group_vars/nodepool-builder.yaml index 797c47d..0625963 100644 --- a/playbooks/group_vars/nodepool-builder.yaml +++ b/playbooks/group_vars/nodepool-builder.yaml @@ -27,6 +27,17 @@ nodepool_service_nodepool_launcher_manage: false # windmill.shade shade_pip_virtualenv: /opt/venv/nodepool-builder +# openstack.logrotate +logrotate_configs: + - name: nodepool-builder + log: /var/log/nodepool/builder-debug.log /var/log/nodepool/nodepool-builder.log + options: + - compress + - missingok + - rotate 7 + - daily + - notifempty + # openstack.sudoers sudoers_task_manager: - config diff --git a/playbooks/group_vars/nodepool-launcher.yaml b/playbooks/group_vars/nodepool-launcher.yaml index 443814f..2f625d9 100644 --- a/playbooks/group_vars/nodepool-launcher.yaml +++ b/playbooks/group_vars/nodepool-launcher.yaml @@ -23,3 +23,14 @@ nodepool_service_nodepool_builder_manage: false # windmill.shade shade_pip_virtualenv: /opt/venv/nodepool-launcher + +# openstack.logrotate +logrotate_configs: + - name: nodepool-launcher + log: /var/log/nodepool/launcher-debug.log /var/log/nodepool/nodepool-launcher.log + options: + - compress + - missingok + - rotate 7 + - daily + - notifempty diff --git a/playbooks/nodepool-builder.yaml b/playbooks/nodepool-builder.yaml index f29335f..e4accfc 100644 --- a/playbooks/nodepool-builder.yaml +++ b/playbooks/nodepool-builder.yaml @@ -67,6 +67,11 @@ owner: root src: nodepool-builder/usr/local/bin/disk-image-create.j2 + tasks: + - name: Setup openstack.logrotate role. + include_role: + name: openstack.logrotate + post_tasks: - name: Run nodepool-server validation. include_role: diff --git a/playbooks/nodepool-launcher.yaml b/playbooks/nodepool-launcher.yaml index d99fb22..ea852b8 100644 --- a/playbooks/nodepool-launcher.yaml +++ b/playbooks/nodepool-launcher.yaml @@ -48,6 +48,11 @@ owner: nodepool src: nodepool/home/nodepool/.config/openstack/clouds.yaml + tasks: + - name: Setup openstack.logrotate role. + include_role: + name: openstack.logrotate + post_tasks: - name: Run nodepool-launcher validation. include_role: diff --git a/tools/install_roles.sh b/tools/install_roles.sh index 5c9f7e5..439d479 100755 --- a/tools/install_roles.sh +++ b/tools/install_roles.sh @@ -28,6 +28,7 @@ zuul-cloner -m $CLONEMAP \ --cache-dir /opt/git \ git://git.openstack.org \ openstack/ansible-role-diskimage-builder \ + openstack/ansible-role-logrotate \ openstack/ansible-role-nodepool \ openstack/ansible-role-shade \ openstack/ansible-role-ssh \