diff --git a/roles/palava-signaltower/defaults/main.yml b/roles/palava-signaltower/defaults/main.yml index 2986b29..e7df63f 100644 --- a/roles/palava-signaltower/defaults/main.yml +++ b/roles/palava-signaltower/defaults/main.yml @@ -5,6 +5,8 @@ palava_signaltower_log_dir: /var/log/signaltower palava_signaltower_port: 4233 palava_signaltower_autostart: yes +# palava_signaltower_turn_secret: TURN_SECRET__IF_GIVEN_TURN_IS_ENABLED + palava_signaltower_version: master palava_environment: production diff --git a/roles/palava-signaltower/templates/signaltower.service.j2 b/roles/palava-signaltower/templates/signaltower.service.j2 index 4520c78..20eeb35 100644 --- a/roles/palava-signaltower/templates/signaltower.service.j2 +++ b/roles/palava-signaltower/templates/signaltower.service.j2 @@ -13,8 +13,11 @@ Restart=on-failure Type=forking RestartSec=5 Environment=SIGNALTOWER_PORT={{ palava_signaltower_port }} +{% if palava_signaltower_turn_secret|default(False) %} +Environment=SIGNALTOWER_TURN_SECRET={{ palava_signaltower_turn_secret }} +{% endif %} Environment=LOG_FILE={{ palava_signaltower_log_dir }}/signaltower.log SyslogIdentifier=signaltower [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target