Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
feat: configurable ACME mail address
Browse files Browse the repository at this point in the history
The email address used for SSL registrations
can be configured by setting the Ansible variable
"certificates_email_address".
  • Loading branch information
saitho committed Jan 9, 2021
1 parent bc820be commit 81675b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions ansible/__tests__/test-tf-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
connection: local
gather_facts: no
tasks:
- include_vars: "../roles/stackhead_project/defaults/main.yml"
- include_vars: "../roles/stackhead_module_api/testdata/variables.yml"
- include_vars: "../vars/internal.yml"
- include_vars: "../roles/stackhead_module_api/vars/main.yml"
Expand Down
2 changes: 2 additions & 0 deletions ansible/roles/stackhead_project/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---
stackhead__config_folder: "{{ inventory_dir }}/stackhead" # value is overridden by StackHead CLI
# the variable "stackhead__config_folder" is part of the StackHead module API (update documentation if changed)

certificates_email_address: "certificates-noreply@stackhead.io"
2 changes: 1 addition & 1 deletion ansible/templates/terraform/ssl-certificate.tf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resource "tls_private_key" "{{ project_name }}-private_key" {

resource "acme_registration" "{{ project_name }}-reg" {
account_key_pem = tls_private_key.{{ project_name }}-private_key.private_key_pem
email_address = "certificate@saitho.me"
email_address = "{{ certificates_email_address }}"
}

// Create folder for acme-challenges
Expand Down

0 comments on commit 81675b8

Please sign in to comment.