Skip to content

Commit

Permalink
Merge pull request #14 from paulrbr-fl/rename-syslog-server-var
Browse files Browse the repository at this point in the history
vars: add a clever_syslog_server variable replacing syslog_server
  • Loading branch information
paulrbr-fl authored Oct 4, 2018
2 parents ec83672 + 23c0fc8 commit 36858ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ Variables for the application
- `clever_app_tasks_file`: tasks file to be executed after environment and addons variables where gathered. Specific to an app, should be use to run migrations. Optional.
- `clever_domain`: the domain from which the application should be reachable, optional.
- _Obsolete_: `domain`: Same as above but was replaced by `clever_domain` since v1.4 of this role.
- `syslog_server`: UDP Syslog server to be used as UDPSyslog drain for the application, optional. Example: `udp://198.51.100.51:12345`.
- `clever_syslog_server`: UDP Syslog server to be used as UDPSyslog drain for the application, optional. Example: `udp://198.51.100.51:12345`.
- _Obsolete_: `syslog_server`: Same as above but was replaced by `clever_syslog_server` since v1.5 of this role.
- `clever_metrics`: a boolean to enable or disable metrics support. Optional, default to `false`.

Variables specific to deployment, default should be fine:
Expand Down
4 changes: 2 additions & 2 deletions tasks/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
- name: Configure Drain
when: syslog_server is defined
when: syslog_server is defined or clever_syslog_server is defined
command: clever-set-drain.sh
environment:
SYSLOG_UDP_SERVER: "{{ syslog_server }}"
SYSLOG_UDP_SERVER: "{{ clever_syslog_server | default(syslog_server) }}"
CONFIGURATION_FILE: "{{ clever_login_file }}"

- name: Configure Domain
Expand Down

0 comments on commit 36858ff

Please sign in to comment.