-
Notifications
You must be signed in to change notification settings - Fork 22
203 lines (153 loc) · 6.57 KB
/
install-rsyslog-packages-from-obs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# 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://software.opensuse.org//download.html?project=home%3Argerhards&package=rsyslog
---
name: Install rsyslog packages from OBS
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_obs_repo_and_install_packages:
name: Enable OBS repo 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: As of 2020-06 ubuntu-latest' maps to 'ubuntu-18.04', not ubuntu-20.04
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 OBS
run: sudo apt-cache policy rsyslog
- name: Search APT cache for rsyslog before adding OBS
run: apt-cache search rsyslog
- name: Show records for rsyslog-prefixed packages before adding OBS
run: apt-cache showpkg "rsyslog*"
- name: Add OBS
run: |
echo "deb http://download.opensuse.org/repositories/home:/rgerhards/xUbuntu_$(lsb_release -r | cut -f 2)/ /" | sudo tee /etc/apt/sources.list.d/home:rgerhards.list
wget -nv https://download.opensuse.org/repositories/home:rgerhards/xUbuntu_$(lsb_release -r | cut -f 2)/Release.key -O - | sudo apt-key add -
sudo apt update
- name: Show apt-cache policy rsyslog results after adding OBS
run: sudo apt-cache policy rsyslog
- name: Search APT cache for rsyslog after adding OBS
run: apt-cache search rsyslog
- name: Show records for rsyslog-prefixed packages after adding OBS
run: apt-cache showpkg "rsyslog*"
- name: Install core rsyslog package
run: sudo apt-get install -y rsyslog
- name: Display OBS-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'