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

Commit bd7f400

Browse files
committed
feat(module-api): move certificates_email_address to StackHead module API
1 parent bd32d91 commit bd7f400

File tree

6 files changed

+6
-3
lines changed

6 files changed

+6
-3
lines changed

Documentation/stackhead-modules/development/module-api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ The following variables are set by StackHead and can be used by the role:
2121
| `stackhead__certificates_project_folder` | Path to project's SSL certificate folder | deployment | string |
2222
| `project_name` | Name of the project that is being deployed | deployment | string |
2323
| `app_config` | Contents of the project definition file | deployment | object |
24+
| `certificates_email_address` | E-Mail address to use for creating SSL certificates | global | string |
2425

2526
Additionally the plugin configuration for the respective step set in StackHead CLI is available in `module.config`.
2627

ansible/__tests__/test-tf-generation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- include_vars: "../roles/stackhead_project/defaults/main.yml"
77
- include_vars: "../roles/stackhead_module_api/testdata/variables.yml"
88
- include_vars: "../vars/internal.yml"
9+
- include_vars: "../roles/stackhead_module_api/defaults/main.yml"
910
- include_vars: "../roles/stackhead_module_api/vars/main.yml"
1011
- set_fact:
1112
stackhead__templates: "{{ playbook_dir }}/../templates"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
certificates_email_address: "[email protected]"
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
---
22
stackhead__config_folder: "{{ inventory_dir }}/stackhead" # value is overridden by StackHead CLI
3-
# the variable "stackhead__config_folder" is part of the StackHead module API (update documentation if changed)
4-
5-
certificates_email_address: "[email protected]"

ansible/roles/stackhead_project/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
- include_vars: "../vars/internal.yml"
3+
- include_vars: "../roles/stackhead_module_api/defaults/main.yml"
34
- include_vars: "../roles/stackhead_module_api/vars/main.yml"
45

56
- import_tasks: "../roles/stackhead_setup/tasks/facts-load.yml"

ansible/roles/stackhead_setup/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
- include_vars: "../vars/internal.yml"
3+
- include_vars: "../roles/stackhead_module_api/defaults/main.yml"
34
- include_vars: "../roles/stackhead_module_api/vars/main.yml"
45

56
- import_tasks: "../roles/stackhead_setup/tasks/facts-load.yml"

0 commit comments

Comments
 (0)