File tree 3 files changed +9
-0
lines changed
templates/etc/systemd/system
3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 187
187
#
188
188
# @param syslog_identifier
189
189
#
190
+ # @param syslog_facility
191
+ #
190
192
# @param read_only
191
193
#
192
194
define docker::run (
244
246
Optional[Boolean] $remove_volume_on_stop = false ,
245
247
Optional[Integer] $stop_wait_time = 0,
246
248
Optional[String] $syslog_identifier = undef ,
249
+ Optional[String] $syslog_facility = undef ,
247
250
Optional[Boolean] $read_only = false ,
248
251
Optional[String] $health_check_cmd = undef ,
249
252
Optional[Boolean] $restart_on_unhealthy = false ,
Original file line number Diff line number Diff line change 197
197
'docker_service' => 'my-docker' ,
198
198
'restart_service_on_docker_refresh' => false ,
199
199
} ,
200
+ 'when passing syslog_facility' => {
201
+ 'syslog_facility' => 'user' ,
202
+ } ,
200
203
}
201
204
202
205
describe 'docker::run' , type : :define do
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ Environment="HOME=/root"
32
32
<%- if @_syslog_identifier -%>
33
33
SyslogIdentifier=<%= @_syslog_identifier %>
34
34
<%- end -%>
35
+ <%- if @syslog_facility -%>
36
+ SyslogFacility=<%= @syslog_facility %>
37
+ <%- end -%>
35
38
ExecStart=/usr/local/bin/docker-run-<%= @sanitised_title %> -start.sh
36
39
ExecStop=-/usr/local/bin/docker-run-<%= @sanitised_title %> -stop.sh
37
40
<%- if @remain_after_exit %>
You can’t perform that action at this time.
0 commit comments