diff --git a/defaults/main/.ondemand.yml b/defaults/main/.ondemand.yml index 938fdee..fc4ced8 100644 --- a/defaults/main/.ondemand.yml +++ b/defaults/main/.ondemand.yml @@ -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: "config@example.com" +# to: "support@example.com" +# delivery_method: "smtp" +# delivery_settings: +# address: 'smtp.gmail.com' +# port: 587 +# domain: 'example.com' +# user_name: '' +# password: '' +# authentication: 'plain' +# enable_starttls_auto: true +# open_timeout: 15 +# read_timeout: 15 diff --git a/molecule/default/fixtures/ondemand.d/ondemand.yml b/molecule/default/fixtures/ondemand.d/ondemand.yml index 4764a2d..edf5d99 100644 --- a/molecule/default/fixtures/ondemand.d/ondemand.yml +++ b/molecule/default/fixtures/ondemand.d/ondemand.yml @@ -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: config@example.com + to: support@example.com + diff --git a/molecule/default/vars/ondemand.yml b/molecule/default/vars/ondemand.yml index 08ec219..bfff88c 100644 --- a/molecule/default/vars/ondemand.yml +++ b/molecule/default/vars/ondemand.yml @@ -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: config@example.com + to: support@example.com diff --git a/templates/ondemand.yml.j2 b/templates/ondemand.yml.j2 index 7268d7f..8ad661f 100644 --- a/templates/ondemand.yml.j2 +++ b/templates/ondemand.yml.j2 @@ -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 %}