Skip to content

Commit eb91b71

Browse files
Add support_ticket option (#208)
Add support_ticket option to template and add a test case. --------- Co-authored-by: Jeff Ohrstrom <johrstrom@osc.edu>
1 parent 32de053 commit eb91b71

File tree

4 files changed

+46
-0
lines changed

4 files changed

+46
-0
lines changed

defaults/main/.ondemand.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,24 @@
3030
# widgets:
3131
# - xdmod_widget_job_efficiency
3232
# - xdmod_widget_jobs
33+
34+
# support_ticket:
35+
# attachments:
36+
# max_items: 4
37+
# max_size: 2097152
38+
# description: |
39+
# My optional description Text for the support ticket feture
40+
# email:
41+
# from: "config@example.com"
42+
# to: "support@example.com"
43+
# delivery_method: "smtp"
44+
# delivery_settings:
45+
# address: 'smtp.gmail.com'
46+
# port: 587
47+
# domain: 'example.com'
48+
# user_name: '<username>'
49+
# password: '<password>'
50+
# authentication: 'plain'
51+
# enable_starttls_auto: true
52+
# open_timeout: 15
53+
# read_timeout: 15

molecule/default/fixtures/ondemand.d/ondemand.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,13 @@ dashboard_layout:
2626
- xdmod_widget_jobs
2727
width: 4
2828

29+
30+
support_ticket:
31+
attachments:
32+
max_items: 4
33+
max_size: 6291456
34+
description: 'My optional description Text for the support ticket feture '
35+
email:
36+
from: config@example.com
37+
to: support@example.com
38+

molecule/default/vars/ondemand.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,13 @@ dashboard_layout:
2222
widgets:
2323
- xdmod_widget_job_efficiency
2424
- xdmod_widget_jobs
25+
26+
27+
support_ticket:
28+
attachments:
29+
max_items: 4
30+
max_size: 6291456
31+
description: 'My optional description Text for the support ticket feture '
32+
email:
33+
from: config@example.com
34+
to: support@example.com

templates/ondemand.yml.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@ pinned_apps:
1616
dashboard_layout:
1717
{{ dashboard_layout | to_nice_yaml(indent=2) | indent(2) }}
1818
{% endif %}
19+
20+
{% if support_ticket is defined %}
21+
support_ticket:
22+
{{ support_ticket | to_nice_yaml(indent=2) | indent(2) }}
23+
{% endif %}

0 commit comments

Comments
 (0)