Skip to content

Mastermind templates configuration

If you want to configure custom mastermind templates, you should:

  1. Setup waldur.mastermindTemplating.mastermindTemplatesPath in values.yaml (by default, it is equal to mastermind_templates/mastermind-templates.yaml). Alternatively, you can use waldur.mastermindTemplating.mastermindTemplates containing .yaml file strings to get rid of file usage.

  2. Put all the custom templates into the file in a following way:

NB: The keys in the file should have <waldur_application_name>/<event_name>_<postfix>.<extension>, where <postfix> can be either message or subject, and <extension> - either txt or html

1
2
3
4
5
<file-name1>: |
    <Custom content1>
<file-name2>: |
    <Custom content2>
...

Example:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
users/invitation_notification_message.txt: |
    Hi!
users/invitation_notification_message.html: |
    <html>
    <head lang="en">
        <meta charset="UTF-8">
        <title>Invitation has been created</title>
    </head>
    <body>
    <p>
        Hi!
    </p>
    </body>
    </html>
...