Browse Source

Added openstackid dev sendgrid support

updated openstackid dev node configuration
to use sendgrid api key from hiera

Depends-On: https://review.openstack.org/#/c/651794/
Depends-On: https://review.openstack.org/#/c/651798/
Change-Id: I9fc5e9b24886105771a1be93d8d8a6c6e1189c32
changes/06/651806/1
smarcet 1 month ago
parent
commit
d6c2d3ab9e
2 changed files with 4 additions and 4 deletions
  1. 2
    4
      manifests/site.pp
  2. 2
    0
      modules/openstack_project/manifests/openstackid_dev.pp

+ 2
- 4
manifests/site.pp View File

@@ -1182,10 +1182,8 @@ node /^openstackid-dev\d*\.openstack\.org$/ {
1182 1182
     app_key                             => hiera('openstackid_dev_app_key'),
1183 1183
     id_log_error_to_email               => 'openstack@tipit.net',
1184 1184
     id_log_error_from_email             => 'noreply@openstack.org',
1185
-    email_driver                        => 'smtp',
1186
-    email_smtp_server                   => 'smtp.sendgrid.net',
1187
-    email_smtp_server_user              => hiera('openstackid_dev_smtp_user'),
1188
-    email_smtp_server_password          => hiera('openstackid_dev_smtp_password'),
1185
+    email_driver                        => 'sendgrid',
1186
+    email_send_grid_api_key             => hiera('openstackid_dev_send_grid_api_key'),
1189 1187
     php_version                         => 7,
1190 1188
     mysql_ssl_enabled                   => true,
1191 1189
     mysql_ssl_ca_file_contents          => hiera('openstackid_dev_mysql_ssl_ca_file_contents'),

+ 2
- 0
modules/openstack_project/manifests/openstackid_dev.pp View File

@@ -45,6 +45,7 @@ class openstack_project::openstackid_dev (
45 45
   $app_url = '',
46 46
   $app_key = '',
47 47
   $email_driver = 'mail',
48
+  $email_send_grid_api_key = '',
48 49
   $email_smtp_server = 'smtp.mailgun.org',
49 50
   $email_smtp_server_port = 587,
50 51
   $email_smtp_server_user = '',
@@ -108,6 +109,7 @@ class openstack_project::openstackid_dev (
108 109
     app_url                             => $app_url,
109 110
     app_key                             => $app_key,
110 111
     email_driver                        => $email_driver,
112
+    email_send_grid_api_key             => $email_send_grid_api_key,
111 113
     email_smtp_server                   => $email_smtp_server,
112 114
     email_smtp_server_port              => $email_smtp_server_port,
113 115
     email_smtp_server_user              => $email_smtp_server_user,

Loading…
Cancel
Save