Skip to content

Commit

Permalink
add flag to control logging level
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco de Freitas committed Jul 13, 2018
1 parent bd2b573 commit 94ffeee
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ mesos_ssl_support_downgrade: false
artifact_store: ""
checkpoint: "true"
marathon_mesos_role: ""
marathon_logging_level: ""

marathon_additional_configs: []
# For example:
Expand Down
5 changes: 5 additions & 0 deletions tasks/conf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions templates/logging_level.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ marathon_logging_level }}

0 comments on commit 94ffeee

Please sign in to comment.