forked from ISTI-ansible-roles/ansible-roles
library/roles/smartgears/dataminer_app/templates/wps-config-fixer.j2: Set the provided hostname.
This commit is contained in:
parent
e955566e16
commit
02d74065cb
|
@ -4,7 +4,11 @@
|
|||
WPS_CONFIG_FILE='{{ smartgears_instance_path }}/webapps/{{ dataminer_wps_name }}/config/wps_config.xml'
|
||||
|
||||
# Fix the hostname
|
||||
{% if hostname is defined %}
|
||||
sed -Ei 's/hostname=\".*\"\ hostport/hostname="{{ hostname }}" hostport/' $WPS_CONFIG_FILE
|
||||
{% else %}
|
||||
sed -Ei 's/hostname=\".*\"\ hostport/hostname="{{ smartgears_hostname }}" hostport/' $WPS_CONFIG_FILE
|
||||
{% endif %}
|
||||
|
||||
# Fix the port
|
||||
{%if setup_nginx %}
|
||||
|
|
Loading…
Reference in New Issue