|
84 | 84 | # @param log_driver
|
85 | 85 | # Set the log driver.
|
86 | 86 | # Docker default is json-file.
|
87 |
| -# Valid values: none, json-file, syslog, journald, gelf, fluentd |
88 |
| -# Valid values description: |
89 |
| -# none : Disables any logging for the container. |
90 |
| -# docker logs won't be available with this driver. |
91 |
| -# json-file: Default logging driver for Docker. |
92 |
| -# Writes JSON messages to file. |
93 |
| -# syslog : Syslog logging driver for Docker. |
94 |
| -# Writes log messages to syslog. |
95 |
| -# journald : Journald logging driver for Docker. |
96 |
| -# Writes log messages to journald. |
97 |
| -# gelf : Graylog Extended Log Format (GELF) logging driver for Docker. |
98 |
| -# Writes log messages to a GELF endpoint: Graylog or Logstash. |
99 |
| -# fluentd : Fluentd logging driver for Docker. |
100 |
| -# Writes log messages to fluentd (forward input). |
101 |
| -# splunk : Splunk logging driver for Docker. |
102 |
| -# Writes log messages to Splunk (HTTP Event Collector). |
103 |
| -# awslogs : AWS Cloudwatch Logs logging driver for Docker. |
104 |
| -# Write log messages to Cloudwatch API |
| 87 | +# Please verify the value by yourself, before setting it. Valid shipped log drivers can be found here: |
| 88 | +# https://docs.docker.com/config/containers/logging/configure/#supported-logging-drivers |
| 89 | +# Since custom log driver plugins are and must be possible, the value can not be verified through code here. |
105 | 90 | #
|
106 | 91 | # @param log_opt
|
107 | 92 | # Set the log driver specific options
|
108 | 93 | # Valid values per log driver:
|
109 | 94 | # none : undef
|
| 95 | +# local : |
| 96 | +# max-size=[0-9+][k|m|g] |
| 97 | +# max-file=[0-9+] |
110 | 98 | # json-file:
|
111 | 99 | # max-size=[0-9+][k|m|g]
|
112 | 100 | # max-file=[0-9+]
|
|
504 | 492 | }
|
505 | 493 | }
|
506 | 494 |
|
507 |
| - if $log_driver { |
508 |
| - if $facts['os']['family'] == 'windows' { |
509 |
| - assert_type(Pattern[/^(none|json-file|syslog|gelf|fluentd|splunk|awslogs|etwlogs)$/], $log_driver) |$a, $b| { |
510 |
| - fail('log_driver must be one of none, json-file, syslog, gelf, fluentd, splunk, awslogs or etwlogs') |
511 |
| - } |
512 |
| - } else { |
513 |
| - assert_type(Pattern[/^(none|json-file|syslog|journald|gelf|fluentd|splunk|awslogs)$/], $log_driver) |$a, $b| { |
514 |
| - fail('log_driver must be one of none, json-file, syslog, journald, gelf, fluentd, splunk or awslogs') |
515 |
| - } |
516 |
| - } |
517 |
| - } |
518 |
| - |
519 | 495 | if $storage_driver {
|
520 | 496 | if $facts['os']['family'] == 'windows' {
|
521 | 497 | assert_type(Pattern[/^(windowsfilter)$/], $storage_driver) |$a, $b| {
|
|
0 commit comments