Changeset - 2ded0cbae449
[Not reviewed]
0 2 0
Branko Majic (branko) - 6 years ago 2018-06-28 23:26:35
branko@majic.rs
MAR-129: Updated test site TLS playbook to allow for ability to specify additional DNS names to include in issued certificates.
2 files changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
testsite/playbooks/tls.yml
Show inline comments
 
@@ -27,6 +27,8 @@
 
      - hostname: xmpp
 
        service: xmpp
 
        name: XMPP
 
        extra_dns_names:
 
          - "{{ testsite_domain }}"
 
  tasks:
 
    - name: Create GnuTLS certificate templates for all hosts
 
      template: src="../tls/gnutls_server_certificate.cfg.j2" dest="../tls/{{ item.hostname }}.{{ testsite_domain }}_{{ item.service }}.cfg"
testsite/tls/gnutls_server_certificate.cfg.j2
Show inline comments
 
@@ -18,6 +18,9 @@ expiration_days = 365
 

	
 
# A dnsname in case of a WWW server.
 
dns_name = "{{ item.hostname }}.{{ testsite_domain }}"
 
{% for dns_name in item.extra_dns_names | default([]) %}
 
dns_name = "{{ dns_name }}"
 
{% endfor %}
 

	
 
# Whether this certificate will be used for a TLS server
 
tls_www_server
0 comments (0 inline, 0 general)