Skip to content

Commit cac0625

Browse files
authored
Merge pull request #20 from genomicsengland/TNG
INFRA-891: Enable option to not use upstream repo
2 parents 1ecb98a + f49a67d commit cac0625

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

logstash/init.sls

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
{%- from 'logstash/map.jinja' import logstash with context %}
22
3+
{%- if logstash.use_upstream_repo %}
34
include:
45
- .repo
6+
{%- endif %}
57
68
logstash-pkg:
79
pkg.{{logstash.pkgstate}}:
810
- name: {{logstash.pkg}}
11+
{%- if logstash.use_upstream_repo %}
912
- require:
1013
- pkgrepo: logstash-repo
14+
{%- endif %}
1115
1216
# This gets around a user permissions bug with the logstash user/group
1317
# being able to read /var/log/syslog, even if the group is properly set for

logstash/map.jinja

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{% set logstash = salt['grains.filter_by']({
22
'Debian': {
3+
'use_upstream_repo': True,
34
'pkg': 'logstash',
45
'svc': 'logstash',
56
'pkgstate': 'latest',
67
'indent': 4
78
},
89
'RedHat': {
10+
'use_upstream_repo': True,
911
'pkg': 'logstash',
1012
'svc': 'logstash',
1113
'pkgstate': 'latest',

0 commit comments

Comments
 (0)