Update role for Ubuntu Focal and Centos-8

Change-Id: Ia0ae332f89168851cc2c68dc0ad9696ba3bcae8c
This commit is contained in:
Jonathan Rosser 2021-01-14 08:17:56 +00:00
parent d616af7883
commit 6defc982de
2 changed files with 78 additions and 0 deletions

35
vars/redhat-8.yml Normal file
View File

@ -0,0 +1,35 @@
---
# Copyright 2014, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
rsyslog_client_distro_packages:
- rsyslog
- logrotate
rsyslog_client_reload: 'systemctl restart rsyslog 2>&1 || true'
rsyslog_client_already_handled_files:
- /var/log/yum.log
- /var/log/hawkey.log
- /var/log/dnf.librepo.log
rsyslog_system_logfile: /var/log/messages
rsyslog_logfile_user: root
rsyslog_logfile_group: root
rsyslog_logfile_drop_user: root
rsyslog_logfile_drop_group: root

43
vars/ubuntu-20.04.yml Normal file
View File

@ -0,0 +1,43 @@
---
# Copyright 2014, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Example override to specify which repo the packages should come from
# rsyslog_client_repos:
# - { repo: "ppa:adiscon/v8-stable", state: "present" }
rsyslog_client_distro_packages:
- rsyslog
- logrotate
rsyslog_client_already_handled_files:
- /var/log/kern.log
- /var/log/auth.log
- /var/log/alternatives.log
- /var/log/apt/history.log
- /var/log/apt/term.log
- /var/log/dpkg.log
rsyslog_client_reload: 'systemctl restart rsyslog > /dev/null 2>&1 || true'
rsyslog_system_logfile: /var/log/syslog
rsyslog_logfile_user: syslog
rsyslog_logfile_group: adm
rsyslog_logfile_drop_user: syslog
rsyslog_logfile_drop_group: syslog