Skip to content

Commit 2a3062d

Browse files
authored
Merge pull request #224 from cloudfoundry/rep-windows-add-syslog
Add syslog for rep_windows job [#134275941]
2 parents e81dab0 + 992449e commit 2a3062d

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

jobs/rep_windows/monit

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
{
44
"name": "rep_windows",
55
"executable": "powershell",
6-
"args": ["C:\\var\\vcap\\jobs\\rep_windows\\bin\\start.ps1"]
6+
"args": ["C:\\var\\vcap\\jobs\\rep_windows\\bin\\start.ps1"],
7+
"env": {
8+
"__PIPE_SYSLOG_HOST": "<%= p('syslog_daemon_config.address') %>",
9+
"__PIPE_SYSLOG_PORT": "<%= p('syslog_daemon_config.port') %>",
10+
"__PIPE_SYSLOG_TRANSPORT": "<%= p('syslog_daemon_config.transport') %>"
11+
}
712
}
813
]
914
}

jobs/rep_windows/spec

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,3 +185,13 @@ properties:
185185
diego.rep.optional_placement_tags:
186186
description: "Array of optional tags used for scheduling Tasks and LRPs"
187187
default: []
188+
189+
syslog_daemon_config.address:
190+
description: "Syslog host"
191+
default: ""
192+
syslog_daemon_config.port:
193+
description: "Syslog port"
194+
default: ""
195+
syslog_daemon_config.transport:
196+
description: "Syslog transport protocol (tcp or udp)"
197+
default: "udp"

0 commit comments

Comments
 (0)