Forces the configuration of the apt::ppa
repository before the
installation of packages, so they will be installed in their correct
version.
puppet-lint flagged these lines
<!--
Thank you for contributing to this project!
-->
<!--
Replace this comment with a description of your pull request.
-->
<!--
Replace this comment with the list of issues or n/a.
Use format:
Fixes #123
Fixes #124
-->
<!--
Thank you for contributing to this project!
-->
Setup rsyslog so that if any $featurepackages are given rsyslog will
restart after those $featurepackages are installed.
Forcing a restart of rsyslog after installation of any $featurepackages
are installed is important if you have an rsyslog config that is not
valid without the additional package from $featurepackages in place.
<!--
Thank you for contributing to this project!
-->
According to the doc (https://www.rsyslog.com/doc/v8-stable/configuration/modules/omrelp.html) omrelp tls permitted peers can be given as an array.
example:
tls.permittedPeer=["SHA1:...1", "SHA1:....2"]
This PR reuse the same logic present in inputs.epp for to deal with arrays.
Following puppet declaration :
```
class { 'rsyslog::config':
modules => {
'omrelp' => {},
},
actions => {
relp => {
type => 'omrelp',
config => {
target => 'logs.example.tld',
port => '2514',
tls => 'on',
'tls.mycert' => '/etc/ssl/certs/ssl-cert-snakeoil.pem',
'tls.myprivkey' =>'/etc/ssl/private/ssl-cert-snakeoil.key',
'tls.authmode' => 'fingerprint',
'tls.permittedpeer' =>['rsyslog_permittedpeers'],
}
},
}
```
produce the following rsyslog config :
```
module(load="omrelp")
action(type="omrelp"
name="relp"
target="logs.example.tld"
port="2514"
tls="on"
tls.mycert="/etc/ssl/certs/ssl-cert-snakeoil.pem"
tls.myprivkey="/etc/ssl/private/ssl-cert-snakeoil.key"
tls.authmode="fingerprint"
tls.permittedpeer="[ 'rsyslog_permittedpeers' ]"
)
```
with the fix i have
...
tls.permittedpeer=[ "rsyslog_permittedpeers" ]
...
modulesync 5.4.0
Redo of #151.
… resource
<!--
Thank you for contributing to this project!
-->
<!--
Replace this comment with a description of your pull request.
-->
<!--
Replace this comment with the list of issues or n/a.
Use format:
Fixes #123
Fixes #124
-->
modulesync 9.2.0
<!--
Thank you for contributing to this project!
-->
<!--
Replace this comment with a description of your pull request.
-->
Fixes this kind of error:
```
Syntax error at 'global_config' (file: /etc/puppetlabs/code/environments/rsyslog/site/profile/manifests/rsyslog.pp, line: 5, column: 5)
1 # Class: profile::rsyslog
2 # By default provides client configuration, can optionally provide server configuration
3 class profile::rsyslog {
4 class { 'rsyslog::config':
5 'global_config' => {}
[...]
```
Also in this commit a minor typofix in REFERENCE.