Support for custom domain names in the endpoint (#1337)

pull/1347/head
Jack Ivanov 5 years ago committed by GitHub
parent 216cd09dcf
commit ec56203b87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -248,7 +248,7 @@ You need to source the rc file prior to run Algo. Download it from the OpenStack
Required variables: Required variables:
- server - IP or hostname to access the server via SSH - server - IP or hostname to access the server via SSH
- endpoint - Public IP address of your server - endpoint - Public IP address or domain name of your server
- ssh_user - ssh_user

@ -1,7 +1,7 @@
--- ---
- name: Set subjectAltName as afact - name: Set subjectAltName as afact
set_fact: set_fact:
IP_subject_alt_name: "{% if algo_provider == 'local' %}{{ IP_subject_alt_name }}{% else %}{{ cloud_instance_ip }}{% endif %}" IP_subject_alt_name: "{{ (IP_subject_alt_name if algo_provider == 'local' else cloud_instance_ip) | lower }}"
- name: Add the server to an inventory group - name: Add the server to an inventory group
add_host: add_host:

@ -31,7 +31,7 @@
- pause: - pause:
prompt: | prompt: |
Enter the public IP address of your server: (IMPORTANT! This IP is used to verify the certificate) Enter the public IP address or domain name of your server: (IMPORTANT! This is used to verify the certificate)
[{{ cloud_instance_ip }}] [{{ cloud_instance_ip }}]
register: _endpoint register: _endpoint
when: endpoint is undefined when: endpoint is undefined

@ -35,7 +35,7 @@ algo_local_dns: false
ipv6_support: false ipv6_support: false
dns_encryption: true dns_encryption: true
domain: false domain: false
subjectAltName_IP: "IP:{{ IP_subject_alt_name }}" subjectAltName_IP: "{{ 'DNS:' if IP_subject_alt_name|regex_search('[a-z]') else 'IP:' }}{{ IP_subject_alt_name }}"
subjectAltName_USER: "{% if '@' in item %}email:{{ item }}{% else %}DNS:{{ item }}{% endif %}" subjectAltName_USER: "{% if '@' in item %}email:{{ item }}{% else %}DNS:{{ item }}{% endif %}"
openssl_bin: openssl openssl_bin: openssl
strongswan_enabled_plugins: strongswan_enabled_plugins:

Loading…
Cancel
Save