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

Commit 81675b8

Browse files
committed
feat: configurable ACME mail address
The email address used for SSL registrations can be configured by setting the Ansible variable "certificates_email_address".
1 parent bc820be commit 81675b8

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

ansible/__tests__/test-tf-generation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
connection: local
44
gather_facts: no
55
tasks:
6+
- include_vars: "../roles/stackhead_project/defaults/main.yml"
67
- include_vars: "../roles/stackhead_module_api/testdata/variables.yml"
78
- include_vars: "../vars/internal.yml"
89
- include_vars: "../roles/stackhead_module_api/vars/main.yml"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
---
22
stackhead__config_folder: "{{ inventory_dir }}/stackhead" # value is overridden by StackHead CLI
33
# the variable "stackhead__config_folder" is part of the StackHead module API (update documentation if changed)
4+
5+
certificates_email_address: "[email protected]"

ansible/templates/terraform/ssl-certificate.tf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ resource "tls_private_key" "{{ project_name }}-private_key" {
44

55
resource "acme_registration" "{{ project_name }}-reg" {
66
account_key_pem = tls_private_key.{{ project_name }}-private_key.private_key_pem
7-
email_address = "[email protected]"
7+
email_address = "{{ certificates_email_address }}"
88
}
99

1010
// Create folder for acme-challenges

0 commit comments

Comments
 (0)