Skip to content

Commit

Permalink
(site/dev) send syslog/tls to rsyslog.fluent.ayekan.dev.lsst.org:5140
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Mar 28, 2024
1 parent 34acab0 commit a496eeb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
12 changes: 8 additions & 4 deletions hieradata/site/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@
ipa::ipa_master_fqdn: "ipa1.ls.lsst.org"
rsyslog::feature_packages:
- "rsyslog-elasticsearch"
- "rsyslog-openssl"
rsyslog::config::modules:
omelasticsearch: {}
rsyslog::config::actions:
graylogls:
fluentbit_dev:
type: "omfwd"
facility: "*.*"
config:
Target: "collector.ls.lsst.org"
Port: 5514
Protocol: "udp"
target: "rsyslog.fluent.ayekan.dev.lsst.org"
port: 5140
protocol: "tcp"
StreamDriver: "ossl"
StreamDriverMode: "1"
StreamDriverAuthMode: "anon"
opensearch:
type: "omelasticsearch"
facility: "*.*"
Expand Down
12 changes: 8 additions & 4 deletions spec/support/spec/rsyslog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,20 @@
end
when 'dev'
it { is_expected.to contain_package('rsyslog-elasticsearch') }
it { is_expected.to contain_package('rsyslog-openssl') }
it { is_expected.to contain_rsyslog__component__module('omelasticsearch') }

it do
is_expected.to contain_rsyslog__component__action('graylogls').with(
is_expected.to contain_rsyslog__component__action('fluentbit_dev').with(
type: 'omfwd',
facility: '*.*',
config: {
'Target' => 'collector.ls.lsst.org',
'Port' => '5514',
'Protocol' => 'udp',
'target' => 'rsyslog.fluent.ayekan.dev.lsst.org',
'port' => '5140',
'protocol' => 'tcp',
'StreamDriver' => 'ossl',
'StreamDriverMode' => '1',
'StreamDriverAuthMode' => 'anon',
},
)
end
Expand Down

0 comments on commit a496eeb

Please sign in to comment.