From 7204e2c5e8793621527ab73648617d0f4026e707 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 22 Jan 2021 02:22:05 +0000 Subject: [PATCH] Add integromat webhook URL Add the integromat webhook URL to the Ansible Vault and also to the generated Drupal settings file that Ansible generates, and the opdavies_blog module configuration. References #340 --- tools/ansible/vars/deploy_vars.yml | 2 ++ tools/ansible/vars/deploy_vault.yml | 31 +++++++++++-------- .../config/schema/opdavies_blog.schema.yml | 2 ++ 3 files changed, 22 insertions(+), 13 deletions(-) diff --git a/tools/ansible/vars/deploy_vars.yml b/tools/ansible/vars/deploy_vars.yml index 614b200..83b7d0b 100644 --- a/tools/ansible/vars/deploy_vars.yml +++ b/tools/ansible/vars/deploy_vars.yml @@ -14,6 +14,7 @@ ansistrano_after_update_code_tasks_file: '{{ playbook_dir }}/deploy/after-update app_hash_salt: '{{ vault_app_hash_salt }}' +integromat_webhook_url: '{{ vault_integromat_webhook_url }}' post_tweet_webhook_url: '{{ vault_post_tweet_webhook_url }}' release_drush_path: '{{ ansistrano_release_path.stdout }}/bin/drush' @@ -63,4 +64,5 @@ drupal_settings: $settings['reverse_proxy_header'] = 'CF-Connecting-IP'; $settings['omit_vary_cookie'] = TRUE; + $config['opdavies_blog.settings']['integromat_webhook_url'] = '{{ integromat_webhook_url }}'; $config['opdavies_blog.settings']['post_tweet_webhook_url'] = '{{ post_tweet_webhook_url }}'; diff --git a/tools/ansible/vars/deploy_vault.yml b/tools/ansible/vars/deploy_vault.yml index 5e833b0..272a2ff 100644 --- a/tools/ansible/vars/deploy_vault.yml +++ b/tools/ansible/vars/deploy_vault.yml @@ -1,14 +1,19 @@ $ANSIBLE_VAULT;1.1;AES256 -36346335323736336136343536666535663231656661353434343361333463353536623061633162 -3137383131653537656261313162366665333765313336310a663536656431346536613861303664 -34656538613639643932323939623366303731636433356136666661343765383863653934663930 -3235633266343165360a323639366234386336626538353365646261306662653330656663333230 -64366664643764356132326661356432366132633937333039383663643038653030336266613636 -63316231323533656661396239363830653638653861656363663661393633303736626334386538 -62656138333537333966623366646632336433343132363232303832363836666437633731363131 -63616637373261393331306432333761646262313734653563343035323932306261656139376235 -39383635383237623662643162646532636530653963633539363739306264636662386361363061 -33336363353334316266656163326166313337363733303938623034396130636163373737656664 -33633539306164323963646164316130643737376236383831613564373234346637636130316365 -37303332643735313537393637393462663638356231363033646335326564346436393232666132 -35653737383761373935353838313264633731306130336531383966363463653830 +30653362663533616334373532653633363838333932666137633662313431303763646433366238 +3464333531326134626361396661306130373461633536630a653637366565366462313335623561 +63653563653533306436663335623961343539366566633730306638323833373261363063363538 +3163326166353836300a373466646366663333353165323035613533636138383162663562343231 +38353362316136316434373362633839323135666536326662643666303838393635626333373339 +63313035633161626534323862346230386461363766666263323964666261636238333631393862 +30383638613964313165623732383866333064366136663131396166363737653961646166663664 +32346461396537663639303665646639636265646164373066633638396661323463343165633064 +66653734356463656462346364336262643761323935646331363864623865316631623239616136 +33616262663134323434316533303234643336616434393638393436396439346266353035343931 +61336366396237653235653834396237366664303737373766323230336162303763623761633836 +63326264643737333064363163353762326636646462363466343334353266303936616163326238 +65313235643866323730386363656233333132633837613235643237623130383334646439303839 +33383633653334643865623231333836383262303933303032653538636465663938623562336661 +63643435373161666331663861646431613236646564316238623736353762303533653835383230 +65306231303330376432306664623938386563646434633039313237643239316136656262346562 +63313462316338656137613634343034393534646162363464373830623335353564376338623636 +6630623238373438363732333834646432633435366165363066 diff --git a/web/modules/custom/blog/config/schema/opdavies_blog.schema.yml b/web/modules/custom/blog/config/schema/opdavies_blog.schema.yml index 9042e85..58d2460 100644 --- a/web/modules/custom/blog/config/schema/opdavies_blog.schema.yml +++ b/web/modules/custom/blog/config/schema/opdavies_blog.schema.yml @@ -2,5 +2,7 @@ opdavies_blog.settings: type: config_object label: 'Blog module configuration' mapping: + integromat_webhook_url: + type: string post_tweet_webhook_url: type: string