Fix airshipctl-roles-test gate job
Due to incorrect processing IP:port pairs using 'regex_replace' filter, roles-test gate job fails. This patches fixes all the related errors and CI gate check itself. Change-Id: Ifd7f890166195df0af9b34e1ccff59b7abd2d9ab Relates-To: #305 Closes: #305 Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
This commit is contained in:
parent
83a7fbc2d1
commit
d21c02c87b
@ -101,7 +101,7 @@
|
|||||||
apache_server_ssl_key_path: "/etc/ssl/private/{{ file_exchanger_name }}.key"
|
apache_server_ssl_key_path: "/etc/ssl/private/{{ file_exchanger_name }}.key"
|
||||||
apache_server_ssl_cert_path: "/etc/ssl/certs/{{ file_exchanger_name }}.pem"
|
apache_server_ssl_cert_path: "/etc/ssl/certs/{{ file_exchanger_name }}.pem"
|
||||||
apache_server_ssl_cn: "{{ file_exchanger_servername }}"
|
apache_server_ssl_cn: "{{ file_exchanger_servername }}"
|
||||||
apache_server_ssl_alt_name: "{{ file_exchanger_ip | map('regex_replace', '(.*)', 'IP:\\1') | list }}"
|
apache_server_ssl_alt_name: "{{ file_exchanger_ip | map('regex_replace', '^(.*)$', 'IP:\\1') | list }}"
|
||||||
|
|
||||||
- name: Generate certs for case without alt_names
|
- name: Generate certs for case without alt_names
|
||||||
when: file_exchanger_ip is undefined or file_exchanger_ip == None
|
when: file_exchanger_ip is undefined or file_exchanger_ip == None
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
{% if file_exchanger_http_port != 80 %}
|
{% if file_exchanger_http_port != 80 %}
|
||||||
Listen {{ file_exchanger_http_port }}
|
Listen {{ file_exchanger_http_port }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<VirtualHost {{ file_exchanger_ip | default(['*']) | ipwrap | map('regex_replace', '(.*)', '\\1:{}'.format(file_exchanger_http_port)) | list | join(' ') }}>
|
<VirtualHost {{ file_exchanger_ip | default(['*']) | ipwrap | map('regex_replace', '^(.*)$', '\\1:{}'.format(file_exchanger_http_port)) | list | join(' ') }}>
|
||||||
# Add machine's IP address (use ifconfig command)
|
# Add machine's IP address (use ifconfig command)
|
||||||
ServerName {{ file_exchanger_servername }}
|
ServerName {{ file_exchanger_servername }}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
{% if file_exchanger_https_port != 443 %}
|
{% if file_exchanger_https_port != 443 %}
|
||||||
Listen {{ file_exchanger_https_port }}
|
Listen {{ file_exchanger_https_port }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<VirtualHost {{ file_exchanger_ip | default(['*']) | ipwrap | map('regex_replace', '(.*)', '\\1:{}'.format(file_exchanger_https_port)) | list | join(' ') }}>
|
<VirtualHost {{ file_exchanger_ip | default(['*']) | ipwrap | map('regex_replace', '^(.*)$', '\\1:{}'.format(file_exchanger_https_port)) | list | join(' ') }}>
|
||||||
# Add machine's IP address (use ifconfig command)
|
# Add machine's IP address (use ifconfig command)
|
||||||
{% if file_exchanger_user is defined and file_exchanger_user != None %}
|
{% if file_exchanger_user is defined and file_exchanger_user != None %}
|
||||||
<Directory /var/www/file_exchanger_cgi-bin/>
|
<Directory /var/www/file_exchanger_cgi-bin/>
|
||||||
|
@ -56,4 +56,3 @@
|
|||||||
service:
|
service:
|
||||||
name: apache2
|
name: apache2
|
||||||
state: reloaded
|
state: reloaded
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@
|
|||||||
apache_server_ssl_key_path: "/etc/ssl/private/{{ sushy_emulator_frontend_name }}.key"
|
apache_server_ssl_key_path: "/etc/ssl/private/{{ sushy_emulator_frontend_name }}.key"
|
||||||
apache_server_ssl_cert_path: "/etc/ssl/certs/{{ sushy_emulator_frontend_name }}.pem"
|
apache_server_ssl_cert_path: "/etc/ssl/certs/{{ sushy_emulator_frontend_name }}.pem"
|
||||||
apache_server_ssl_cn: "{{ sushy_emulator_frontend_servername }}"
|
apache_server_ssl_cn: "{{ sushy_emulator_frontend_servername }}"
|
||||||
apache_server_ssl_alt_name: "{{ sushy_emulator_frontend_ip | map('regex_replace', '(.*)', 'IP:\\1') | list }}"
|
apache_server_ssl_alt_name: "{{ sushy_emulator_frontend_ip | map('regex_replace', '^(.*)$', 'IP:\\1') | list }}"
|
||||||
|
|
||||||
- name: Generate certs for case without alt_names
|
- name: Generate certs for case without alt_names
|
||||||
when: sushy_emulator_frontend_ip is undefined
|
when: sushy_emulator_frontend_ip is undefined
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
{% if sushy_emulator_frontend_https_port != 443 %}
|
{% if sushy_emulator_frontend_https_port != 443 %}
|
||||||
Listen {{ sushy_emulator_frontend_https_port }}
|
Listen {{ sushy_emulator_frontend_https_port }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<VirtualHost {{ sushy_emulator_frontend_ip | default(['*']) | ipwrap | map('regex_replace', '(.*)', '\\1:{}'.format(sushy_emulator_frontend_https_port)) | list | join(' ') }}>
|
<VirtualHost {{ sushy_emulator_frontend_ip | default(['*']) | ipwrap | map('regex_replace', '^(.*)$', '\\1:{}'.format(sushy_emulator_frontend_https_port)) | list | join(' ') }}>
|
||||||
# Add machine's IP address (use ifconfig command)
|
# Add machine's IP address (use ifconfig command)
|
||||||
ServerName {{ sushy_emulator_frontend_servername }}
|
ServerName {{ sushy_emulator_frontend_servername }}
|
||||||
# Give an alias to to start your website url with
|
# Give an alias to to start your website url with
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{% if sushy_emulator_frontend_http_port != 80 %}
|
{% if sushy_emulator_frontend_http_port != 80 %}
|
||||||
Listen {{ sushy_emulator_frontend_http_port }}
|
Listen {{ sushy_emulator_frontend_http_port }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<VirtualHost {{ sushy_emulator_frontend_ip | default(['*']) | ipwrap | map('regex_replace', '(.*)', '\\1:{}'.format(sushy_emulator_frontend_http_port)) | list | join(' ') }}>
|
<VirtualHost {{ sushy_emulator_frontend_ip | default(['*']) | ipwrap | map('regex_replace', '^(.*)$', '\\1:{}'.format(sushy_emulator_frontend_http_port)) | list | join(' ') }}>
|
||||||
# Add machine's IP address (use ifconfig command)
|
# Add machine's IP address (use ifconfig command)
|
||||||
ServerName {{ sushy_emulator_frontend_servername }}
|
ServerName {{ sushy_emulator_frontend_servername }}
|
||||||
# Give an alias to to start your website url with
|
# Give an alias to to start your website url with
|
||||||
|
Loading…
Reference in New Issue
Block a user