From ae5886d6cc39d222df30f041fc37d6c95ec22249 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Tue, 27 May 2025 18:41:36 +0200 Subject: [PATCH] Fix environment creation from skeleton Running `cookiecutter skeleton` fails with: Unable to create file 'inventory/group_vars/all/alertmanager.yml' Error message: 'vault_alertmanager_slack_integration_app_creds' is undefined This is caused by cookiecutter templating which needs to be escaped. Fix a typo as well. --- .../inventory/group_vars/all/alertmanager.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/environments/skeleton/{{cookiecutter.environment}}/inventory/group_vars/all/alertmanager.yml b/environments/skeleton/{{cookiecutter.environment}}/inventory/group_vars/all/alertmanager.yml index 4a46b7976..bf86852ca 100644 --- a/environments/skeleton/{{cookiecutter.environment}}/inventory/group_vars/all/alertmanager.yml +++ b/environments/skeleton/{{cookiecutter.environment}}/inventory/group_vars/all/alertmanager.yml @@ -1,6 +1,6 @@ # Uncomment below and add Slack bot app creds in the adjacent file -# vault_alertmanager.ym for Slack integration: +# vault_alertmanager.yml for Slack integration: # # alertmanager_slack_integration: # channel: '#alerts' -# app_creds: "{{ vault_alertmanager_slack_integration_app_creds }}" +# app_creds: "{% raw %}{{ vault_alertmanager_slack_integration_app_creds }}{% endraw %}"