Skip to content

Commit

Permalink
Add support_ticket option (#208)
Browse files Browse the repository at this point in the history
Add support_ticket option to template and add a test case.

---------

Co-authored-by: Jeff Ohrstrom <[email protected]>
  • Loading branch information
seniormuffinman and johrstrom authored Aug 30, 2023
1 parent 32de053 commit eb91b71
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
21 changes: 21 additions & 0 deletions defaults/main/.ondemand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,24 @@
# widgets:
# - xdmod_widget_job_efficiency
# - xdmod_widget_jobs

# support_ticket:
# attachments:
# max_items: 4
# max_size: 2097152
# description: |
# My optional description Text for the support ticket feture
# email:
# from: "[email protected]"
# to: "[email protected]"
# delivery_method: "smtp"
# delivery_settings:
# address: 'smtp.gmail.com'
# port: 587
# domain: 'example.com'
# user_name: '<username>'
# password: '<password>'
# authentication: 'plain'
# enable_starttls_auto: true
# open_timeout: 15
# read_timeout: 15
10 changes: 10 additions & 0 deletions molecule/default/fixtures/ondemand.d/ondemand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,13 @@ dashboard_layout:
- xdmod_widget_jobs
width: 4


support_ticket:
attachments:
max_items: 4
max_size: 6291456
description: 'My optional description Text for the support ticket feture '
email:
from: [email protected]
to: [email protected]

10 changes: 10 additions & 0 deletions molecule/default/vars/ondemand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,13 @@ dashboard_layout:
widgets:
- xdmod_widget_job_efficiency
- xdmod_widget_jobs


support_ticket:
attachments:
max_items: 4
max_size: 6291456
description: 'My optional description Text for the support ticket feture '
email:
from: [email protected]
to: [email protected]
5 changes: 5 additions & 0 deletions templates/ondemand.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ pinned_apps:
dashboard_layout:
{{ dashboard_layout | to_nice_yaml(indent=2) | indent(2) }}
{% endif %}

{% if support_ticket is defined %}
support_ticket:
{{ support_ticket | to_nice_yaml(indent=2) | indent(2) }}
{% endif %}

0 comments on commit eb91b71

Please sign in to comment.