Skip to content

Install rsyslog packages from PPA #748

Install rsyslog packages from PPA

Install rsyslog packages from PPA #748

# Copyright 2020 Rainer Gerhards and Others
#
# https://github.com/rsyslog/rsyslog-pkg-ubuntu
#
# 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
#
# https://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.
# References:
#
# https://help.github.com/en/github/managing-subscriptions-and-notifications-on-github/configuring-notifications#github-actions-notification-options
# https://github.com/settings/notifications
# https://www.rsyslog.com/ubuntu-repository/
---
name: Install rsyslog packages from PPA
on:
schedule:
# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * *
# Run daily
- cron: "15 0 * * *"
#
# Run every 4 hours
#- cron: "0 0,4,8,12,16,20 * * *"
#
# Run every hour (relaxed testing purposes)
#- cron: "0 * * * *"
#
# Run once every 15 minutes (good for testing changes)
#- cron: "*/15 * * * *"
jobs:
enable_scheduled_stable_ppa_and_install_packages:
name: Enable scheduled stable PPA and install packages
runs-on: ${{ matrix.os }}
# Default: 360 minutes
timeout-minutes: 10
strategy:
# When set to true, cancel all in-progress jobs if any matrix job fails.
fail-fast: false
matrix:
# Explicitly list supported LTS versions
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
# Note: 'ubuntu-latest' currently maps to 'ubuntu-18.04'
#os: [ubuntu-16.04, ubuntu-18.04, ubuntu-20.04, ubuntu-latest]
os: [ubuntu-16.04, ubuntu-18.04, ubuntu-20.04]
steps:
- name: Install stock Ubuntu-provided rsyslog
run: |
sudo apt-get update
sudo apt-get install -y rsyslog
- name: Display stock Ubuntu-provided rsyslog version
run: rsyslogd -v
- name: Show apt-cache policy rsyslog results before adding PPA
run: sudo apt-cache policy rsyslog
- name: Search APT cache for rsyslog before adding PPA
run: apt-cache search rsyslog
- name: Show records for rsyslog-prefixed packages before adding PPA
run: apt-cache showpkg "rsyslog*"
- name: Add PPA
run: |
sudo apt-get update
sudo apt-get install --yes software-properties-common
sudo add-apt-repository --yes --update ppa:adiscon/v8-stable
sudo apt-get update
- name: Show apt-cache policy rsyslog results after adding PPA
run: sudo apt-cache policy rsyslog
- name: Search APT cache for rsyslog after adding PPA
run: apt-cache search rsyslog
- name: Show records for rsyslog-prefixed packages after adding PPA
run: apt-cache showpkg "rsyslog*"
- name: Install core rsyslog package
run: sudo apt-get install -y rsyslog
- name: Display PPA-provided rsyslog version
run: rsyslogd -v
- name: Restart rsyslog
run: sudo service rsyslog restart
- name: systemctl status output
run: sudo systemctl status rsyslog
- name: Install rsyslog-kafka
run: sudo apt-get install rsyslog-kafka
- name: Install rsyslog-doc
run: sudo apt-get install rsyslog-doc
- name: Install rsyslog-relp
run: sudo apt-get install rsyslog-relp
- name: Install rsyslog-elasticsearch
run: sudo apt-get install rsyslog-elasticsearch
- name: Install rsyslog-imptcp
run: sudo apt-get install rsyslog-imptcp
- name: Install rsyslog-mmnormalize
run: sudo apt-get install rsyslog-mmnormalize
- name: Install rsyslog-mmanon
run: sudo apt-get install rsyslog-mmanon
- name: Install rsyslog-mmfields
run: sudo apt-get install rsyslog-mmfields
- name: Install rsyslog-mmutf8fix
run: sudo apt-get install rsyslog-mmutf8fix
- name: Install rsyslog-utils
run: sudo apt-get install rsyslog-utils
- name: Install rsyslog-mmrm1stspace
run: sudo apt-get install rsyslog-mmrm1stspace
- name: Install rsyslog-pgsql
run: sudo apt-get install rsyslog-pgsql
- name: Install rsyslog-mysql
run: sudo apt-get install rsyslog-mysql
- name: Install rsyslog-mmjsonparse
run: sudo apt-get install rsyslog-mmjsonparse
- name: Install rsyslog-imkmsg
run: sudo apt-get install rsyslog-imkmsg
- name: Install rsyslog-improg
run: sudo apt-get install rsyslog-improg
- name: Install rsyslog-mongodb
run: sudo apt-get install rsyslog-mongodb
- name: Install rsyslog-omclickhouse
run: sudo apt-get install rsyslog-omclickhouse
- name: Install rsyslog-imdocker
run: sudo apt-get install rsyslog-imdocker
- name: Install rsyslog-omrabbitmq
run: sudo apt-get install rsyslog-omrabbitmq
- name: Install rsyslog-czmq
run: sudo apt-get install rsyslog-czmq
- name: Install rsyslog-mmgrok
run: sudo apt-get install rsyslog-mmgrok
- name: Install rsyslog-gnutls
run: sudo apt-get install rsyslog-gnutls
- name: Install rsyslog-openssl
run: sudo apt-get install rsyslog-openssl
- name: Install rsyslog-pmnormalize
run: sudo apt-get install rsyslog-pmnormalize
- name: Install rsyslog-redis
run: sudo apt-get install rsyslog-redis
- name: Install rsyslog-omstdout
run: sudo apt-get install rsyslog-omstdout
- name: Install rsyslog-fmhttp
run: sudo apt-get install rsyslog-fmhttp
- name: Install rsyslog-fmhash
run: sudo apt-get install rsyslog-fmhash
- name: Install rsyslog-mmkubernetes
run: sudo apt-get install rsyslog-mmkubernetes
- name: Install rsyslog-impcap
run: sudo apt-get install rsyslog-impcap
- name: Display installed rsyslog packages
run: dpkg -l | grep -E 'rsyslog|adiscon'
enable_daily_stable_ppa_and_install_packages:
name: Enable daily stable PPA and install packages
runs-on: ${{ matrix.os }}
# Default: 360 minutes
timeout-minutes: 10
strategy:
# When set to true, cancel all in-progress jobs if any matrix job fails.
fail-fast: false
matrix:
# Explicitly list supported LTS versions
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
# Note: 'ubuntu-latest' currently maps to 'ubuntu-18.04'
#os: [ubuntu-16.04, ubuntu-18.04, ubuntu-20.04, ubuntu-latest]
os: [ubuntu-16.04, ubuntu-18.04, ubuntu-20.04]
steps:
- name: Install stock Ubuntu-provided rsyslog
run: |
sudo apt-get update
sudo apt-get install -y rsyslog
- name: Display stock Ubuntu-provided rsyslog version
run: rsyslogd -v
- name: Show apt-cache policy rsyslog results before adding PPA
run: sudo apt-cache policy rsyslog
- name: Search APT cache for rsyslog before adding PPA
run: apt-cache search rsyslog
- name: Show records for rsyslog-prefixed packages before adding PPA
run: apt-cache showpkg "rsyslog*"
- name: Add PPA
run: |
sudo apt-get update
sudo apt-get install --yes software-properties-common
sudo add-apt-repository --yes --update ppa:adiscon/v8-devel
- name: Show apt-cache policy rsyslog results after adding PPA
run: sudo apt-cache policy rsyslog
- name: Search APT cache for rsyslog after adding PPA
run: apt-cache search rsyslog
- name: Show records for rsyslog-prefixed packages after adding PPA
run: apt-cache showpkg "rsyslog*"
- name: Install core rsyslog package
run: sudo apt-get install -y rsyslog
- name: Display PPA-provided rsyslog version
run: rsyslogd -v
- name: Restart rsyslog
run: sudo service rsyslog restart
- name: systemctl status output
run: sudo systemctl status rsyslog
- name: Install rsyslog-kafka
run: sudo apt-get install rsyslog-kafka
- name: Install rsyslog-doc
run: sudo apt-get install rsyslog-doc
- name: Install rsyslog-relp
run: sudo apt-get install rsyslog-relp
- name: Install rsyslog-elasticsearch
run: sudo apt-get install rsyslog-elasticsearch
- name: Install rsyslog-imptcp
run: sudo apt-get install rsyslog-imptcp
- name: Install rsyslog-mmnormalize
run: sudo apt-get install rsyslog-mmnormalize
- name: Install rsyslog-mmanon
run: sudo apt-get install rsyslog-mmanon
- name: Install rsyslog-mmfields
run: sudo apt-get install rsyslog-mmfields
- name: Install rsyslog-mmutf8fix
run: sudo apt-get install rsyslog-mmutf8fix
- name: Install rsyslog-utils
run: sudo apt-get install rsyslog-utils
- name: Install rsyslog-mmrm1stspace
run: sudo apt-get install rsyslog-mmrm1stspace
- name: Install rsyslog-pgsql
run: sudo apt-get install rsyslog-pgsql
- name: Install rsyslog-mysql
run: sudo apt-get install rsyslog-mysql
- name: Install rsyslog-mmjsonparse
run: sudo apt-get install rsyslog-mmjsonparse
- name: Install rsyslog-imkmsg
run: sudo apt-get install rsyslog-imkmsg
- name: Install rsyslog-improg
run: sudo apt-get install rsyslog-improg
- name: Install rsyslog-mongodb
run: sudo apt-get install rsyslog-mongodb
- name: Install rsyslog-omclickhouse
run: sudo apt-get install rsyslog-omclickhouse
- name: Install rsyslog-imdocker
run: sudo apt-get install rsyslog-imdocker
- name: Install rsyslog-omrabbitmq
run: sudo apt-get install rsyslog-omrabbitmq
- name: Install rsyslog-czmq
run: sudo apt-get install rsyslog-czmq
- name: Install rsyslog-mmgrok
run: sudo apt-get install rsyslog-mmgrok
- name: Install rsyslog-gnutls
run: sudo apt-get install rsyslog-gnutls
- name: Install rsyslog-openssl
run: sudo apt-get install rsyslog-openssl
- name: Install rsyslog-pmnormalize
run: sudo apt-get install rsyslog-pmnormalize
- name: Install rsyslog-redis
run: sudo apt-get install rsyslog-redis
- name: Install rsyslog-omstdout
run: sudo apt-get install rsyslog-omstdout
- name: Install rsyslog-fmhttp
run: sudo apt-get install rsyslog-fmhttp
- name: Install rsyslog-fmhash
run: sudo apt-get install rsyslog-fmhash
- name: Install rsyslog-mmkubernetes
run: sudo apt-get install rsyslog-mmkubernetes
- name: Install rsyslog-impcap
run: sudo apt-get install rsyslog-impcap
- name: Display installed rsyslog packages
run: dpkg -l | grep -E 'rsyslog|adiscon'