File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
templates/etc/systemd/system Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 187187#
188188# @param syslog_identifier
189189#
190+ # @param syslog_facility
191+ #
190192# @param read_only
191193#
192194define docker::run (
244246 Optional[Boolean] $remove_volume_on_stop = false ,
245247 Optional[Integer] $stop_wait_time = 0,
246248 Optional[String] $syslog_identifier = undef ,
249+ Optional[String] $syslog_facility = undef ,
247250 Optional[Boolean] $read_only = false ,
248251 Optional[String] $health_check_cmd = undef ,
249252 Optional[Boolean] $restart_on_unhealthy = false ,
Original file line number Diff line number Diff line change 197197 'docker_service' => 'my-docker' ,
198198 'restart_service_on_docker_refresh' => false ,
199199 } ,
200+ 'when passing syslog_facility' => {
201+ 'syslog_facility' => 'user' ,
202+ } ,
200203}
201204
202205describe 'docker::run' , type : :define do
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ Environment="HOME=/root"
3232<%- if @_syslog_identifier -%>
3333SyslogIdentifier=<%= @_syslog_identifier %>
3434<%- end -%>
35+ <%- if @syslog_facility -%>
36+ SyslogFacility=<%= @syslog_facility %>
37+ <%- end -%>
3538ExecStart=/usr/local/bin/docker-run-<%= @sanitised_title %> -start.sh
3639ExecStop=-/usr/local/bin/docker-run-<%= @sanitised_title %> -stop.sh
3740<%- if @remain_after_exit %>
You can’t perform that action at this time.
0 commit comments