mirror of
https://github.com/trailofbits/algo.git
synced 2025-04-22 00:57:08 +02:00
Support for custom domain names in the endpoint (#1337)
This commit is contained in:
parent
216cd09dcf
commit
ec56203b87
4 changed files with 4 additions and 4 deletions
|
@ -248,7 +248,7 @@ You need to source the rc file prior to run Algo. Download it from the OpenStack
|
|||
Required variables:
|
||||
|
||||
- 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
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
- name: Set subjectAltName as afact
|
||||
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
|
||||
add_host:
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
- pause:
|
||||
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 }}]
|
||||
register: _endpoint
|
||||
when: endpoint is undefined
|
||||
|
|
|
@ -35,7 +35,7 @@ algo_local_dns: false
|
|||
ipv6_support: false
|
||||
dns_encryption: true
|
||||
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 %}"
|
||||
openssl_bin: openssl
|
||||
strongswan_enabled_plugins:
|
||||
|
|
Loading…
Add table
Reference in a new issue