Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add flag to control logging level #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}