-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
297 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -416,3 +416,61 @@ webhook_plugins: | |
- demo | ||
- gtn | ||
- news | ||
|
||
### History mailer | ||
|
||
# config | ||
history_mailer_warn_days: 365 | ||
history_mailer_delete_days: 379 | ||
history_mailer_email_days_threshold: 14 | ||
history_mailer_purge_days_threshold: 6 | ||
|
||
history_mailer_galaxy_url: https://dev.gvl.org.au | ||
history_mailer_galaxy_api_key: "{{ vault_jenkins_bot_dev_api_key }}" # TODO: add this! | ||
|
||
history_mailer_galaxy_keeplist_group: "History Retention Keeplist" | ||
|
||
# history_mailer_postal_base_url: "https://mail.usegalaxy.org.au/api/v1/" | ||
# history_mailer_postal_api_key: "{{ vault_history_mailer_postal_api_key }}" | ||
|
||
# history_mailer_email_template_warning: "{{ history_mailer_email_template_dir }}/email_warning.html" | ||
# history_mailer_email_template_deletion: "{{ history_mailer_email_template_dir }}/email_deletion.html" | ||
|
||
# history_mailer_mail_from: "Galaxy Australia <[email protected]>" | ||
# history_mailer_mail_replyto: "[email protected]" | ||
|
||
# history_mailer_slack_token: "{{ vault_history_mailer_slack_token }}" | ||
# history_mailer_slack_alert_channel: "#alerts" | ||
# history_mailer_slack_log_channel: "#galaxy-logs" | ||
# history_mailer_alert_mentions: "<@Catherine>" | ||
# history_mailer_log_mentions: "<@Catherine>" | ||
|
||
# settings for ansible role | ||
history_mailer_user: ubuntu | ||
history_mailer_dir: "/home/{{ history_mailer_user }}/hm_TEST" | ||
|
||
# history_mailer_use_postal: true # Must be true for history mailer to work | ||
|
||
history_mailer_enable_cron_jobs: false # When not enabled, cron jobs will be entered in crontab in a disabled state | ||
|
||
history_mailer_cron_jobs: | ||
- name: warn_and_delete | ||
weekday: "3" | ||
hour: "11" | ||
options: | ||
- production | ||
- warn | ||
- dryrun | ||
# - name: purge_histories | ||
# weekday: "2" | ||
# hour: "12" | ||
# options: | ||
# - production | ||
# - purge | ||
# - notify | ||
|
||
# Delete these and use vault variables | ||
vault_history_mailer_postal_api_key: nottherealkey # | ||
vault_history_mailer_slack_token: "xoxb" | ||
vault_jenkins_bot_production_api_key: abcdefg # TODO: add the real one, add these to vault | ||
vault_jenkins_bot_staging_api_key: xyz # TODO: add the real one, add these to vault |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,3 +49,70 @@ extra_keys: | |
ssh_config_id_file: "/home/{{ ssh_config_user }}/.ssh/internal_hop_key" | ||
ssh_config_user: ubuntu | ||
ssh_config_hosts: "{{ groups['galaxy_group'] }}" | ||
|
||
### History mailer | ||
|
||
# config | ||
history_mailer_warn_days: 365 | ||
history_mailer_delete_days: 379 | ||
history_mailer_email_days_threshold: 14 | ||
history_mailer_purge_days_threshold: 6 | ||
|
||
history_mailer_galaxy_url: https://usegalaxy.org.au | ||
history_mailer_galaxy_api_key: "{{ vault_jenkins_bot_production_api_key }}" # TODO: add this! | ||
history_mailer_staging_galaxy_url: https://staging.gvl.org.au | ||
history_mailer_staging_galaxy_api_key: "{{ vault_jenkins_bot_staging_api_key }}" # TODO: add this! | ||
|
||
history_mailer_galaxy_keeplist_group: "History Retention Keeplist" | ||
|
||
history_mailer_postal_base_url: "https://mail.usegalaxy.org.au/api/v1/" | ||
history_mailer_postal_api_key: "{{ vault_history_mailer_postal_api_key }}" | ||
|
||
history_mailer_email_template_warning: "{{ history_mailer_email_template_dir }}/email_warning.html" | ||
history_mailer_email_template_deletion: "{{ history_mailer_email_template_dir }}/email_deletion.html" | ||
|
||
history_mailer_mail_from: "Galaxy Australia <[email protected]>" | ||
history_mailer_mail_replyto: "[email protected]" | ||
|
||
history_mailer_slack_token: "{{ vault_history_mailer_slack_token }}" | ||
history_mailer_slack_alert_channel: "#alerts" | ||
history_mailer_slack_log_channel: "#galaxy-logs" | ||
history_mailer_alert_mentions: "<@Catherine>" | ||
history_mailer_log_mentions: "<@Catherine>" | ||
|
||
# settings for ansible role | ||
history_mailer_user: ubuntu | ||
history_mailer_dir: "/home/{{ history_mailer_user }}/hm_TEST" | ||
|
||
history_mailer_use_postal: true # Must be true for history mailer to work | ||
|
||
history_mailer_enable_cron_jobs: false # When not enabled, cron jobs will be entered in crontab in a disabled state | ||
|
||
history_mailer_files: | ||
- src: templates/history_mailer/email_warning.html | ||
dest: "{{ history_mailer_email_template_warning }}" | ||
- src: templates/history_mailer/email_deletion.html | ||
dest: "{{ history_mailer_email_template_deletion }}" | ||
|
||
history_mailer_cron_jobs: | ||
- name: warn_and_delete | ||
weekday: "3" | ||
hour: "11" | ||
options: | ||
- production | ||
- warn | ||
- delete | ||
- notify | ||
- name: purge_histories | ||
weekday: "2" | ||
hour: "12" | ||
options: | ||
- production | ||
- purge | ||
- notify | ||
|
||
# Delete these and use vault variables | ||
vault_history_mailer_postal_api_key: nottherealkey # ## | ||
vault_history_mailer_slack_token: "xoxb" | ||
vault_jenkins_bot_production_api_key: abcdefg # TODO: add the real one, add these to vault | ||
vault_jenkins_bot_staging_api_key: xyz # TODO: add the real one, add these to vault |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
$ANSIBLE_VAULT;1.1;AES256 | ||
31616565623561373966653435633261313061623030303666653565633133633066343434663433 | ||
3364373839316366623839373838623236373365306230660a613235346463653064353765623030 | ||
36316166326664643765623939343566633231333030646130343736366431666566386430363230 | ||
6235643866386335640a633361303836663865343431616134363266623535623139616632353138 | ||
61373737323061343261383862333736393761666534306439633034336564646261323363393238 | ||
38626364376166663331386130333131656664633934323332316431376661656661303632393464 | ||
38636238303935373265343837653731306635623964326639316436386463313163366334373039 | ||
34626134353030623465303537653434333832303464663035326333653261393736393939326462 | ||
33346532366335333434653539613861353838333539643035636333333464656437396133666161 | ||
37366138386130613364333734323233323133393363663739663039326262343639626462313561 | ||
37346162623963376561393633653230396337313763343763613530383630386437653237666665 | ||
38643565383337613233616133643031393131623266646136663137353133643664653332373934 | ||
66373764623861363738633331656436356534656262303433616436316637393635336665306166 | ||
36633066393764616534303035613236386332633739626466623439353933383965316665366465 | ||
30623432383839396465646434313536333066663064323066343334386566323234353438336632 | ||
32643538363239373734623166333466653265303937393736363837666266363832363366313862 | ||
34643764303736343732666536343465636230393636303739333338303164653138383238343263 | ||
63663633373830626461336639626663356435343531626561336164663136666134613361326634 | ||
31303937623063313663616531626530353065356138646336323131356430343933646434373439 | ||
66663661623465326139326139393131356238306631383432303037623035333862323763653130 | ||
64663230353835646436323538383662633539643866363063643732313132343537353665396462 | ||
6566303835656131353431666435356362366633316338626466 |
Oops, something went wrong.