diff --git a/README.md b/README.md index 008d9dd..d556410 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,8 @@ mesos_ssl_cert_file: # When mesos SSL is enabled this must be used to point to t artifact_store: "" checkpoint: "true" marathon_mesos_role: "" +# off, fatal, error, warn, info (default), debug, trace, all. +marathon_logging_level: "" marathon_additional_configs: [] # For example: diff --git a/defaults/main.yml b/defaults/main.yml index 654095c..4b3f681 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -46,6 +46,7 @@ mesos_ssl_support_downgrade: false artifact_store: "" checkpoint: "true" marathon_mesos_role: "" +marathon_logging_level: "" marathon_additional_configs: [] # For example: diff --git a/tasks/conf.yml b/tasks/conf.yml index 575bd2f..abc1643 100644 --- a/tasks/conf.yml +++ b/tasks/conf.yml @@ -47,6 +47,11 @@ when: marathon_mesos_role != "" notify: Restart marathon +- name: Set optional --logging_level option + template: src=logging_level.j2 dest=/etc/marathon/conf/logging_level + when: marathon_logging_level != "" + notify: Restart marathon + - name: Set --hostname option template: src=hostname.j2 dest=/etc/marathon/conf/hostname notify: Restart marathon diff --git a/templates/logging_level.j2 b/templates/logging_level.j2 new file mode 100644 index 0000000..6c922d9 --- /dev/null +++ b/templates/logging_level.j2 @@ -0,0 +1 @@ +{{ marathon_logging_level }}