Add new SMTP config for akkounts #480

Merged
raucao merged 4 commits from feature/479-akkounts_smtp_config into master 2023-03-27 09:56:16 +00:00
Owner

This is not running on akkounts-1

closes #479
refs kosmos/akkounts#107

This is not running on akkounts-1 closes #479 refs kosmos/akkounts#107
greg added the
enhancement
service
accounts
labels 2023-03-24 15:58:10 +00:00
greg self-assigned this 2023-03-24 15:58:10 +00:00
greg added 1 commit 2023-03-24 15:58:11 +00:00
4f1fb347a8 Add new SMTP config for akkounts
This is not running on akkounts-1

closes #479
refs kosmos/akkounts#107
greg requested review from raucao 2023-03-24 15:58:21 +00:00
greg added the
kredits-1
label 2023-03-24 15:58:30 +00:00
raucao requested changes 2023-03-24 23:20:04 +00:00
raucao left a comment
Owner

Cool. Left a few suggestions.

Cool. Left a few suggestions.
@ -5,0 +7,4 @@
"domain": "kosmos.org",
"auth_method": "plain",
"enable_starttls": "auto"
},
Owner

Why override the default values with the same values?

Why override the default values with the same values?
greg marked this conversation as resolved
@ -10,4 +10,9 @@ node.default['akkounts']['lndhub']['public_url'] = nil
node.default['akkounts']['lndhub']['public_key'] = nil
node.default['akkounts']['lndhub']['postgres_db'] = 'lndhub'
node.default['akkounts']['smtp']['from_address'] = 'accounts <accounts@kosmos.org>'
Owner

I think just a lowercase "accounts" without context would probably be a bit weird in an email inbox. How about "Kosmos Accounts" for example?

I think just a lowercase "accounts" without context would probably be a bit weird in an email inbox. How about "Kosmos Accounts" for example?
greg marked this conversation as resolved
@ -43,0 +50,4 @@
env[:smtp_domain] = node['akkounts']['smtp']['domain']
env[:smtp_auth_method] = node['akkounts']['smtp']['auth_method']
env[:smtp_enable_starttls] = node['akkounts']['smtp']['enable_starttls']
Owner

I think the template supports automatic namespacing. I.e. we should be able to do this:

env[:smtp] = {
  server: smtp_server,
  port: smtp_port,
  login: smtp_credentials[:user_name]
}

... and it should expand to uppercase keys like SMTP_SERVER.

I think the template supports automatic namespacing. I.e. we should be able to do this: ```ruby env[:smtp] = { server: smtp_server, port: smtp_port, login: smtp_credentials[:user_name] } ``` ... and it should expand to uppercase keys like `SMTP_SERVER`.
greg marked this conversation as resolved
greg added 3 commits 2023-03-27 08:49:40 +00:00
greg requested review from raucao 2023-03-27 08:49:58 +00:00
Owner

Tested/running on akkounts-1 now.

Tested/running on `akkounts-1` now.
raucao self-assigned this 2023-03-27 09:56:00 +00:00
raucao added the
ops
label 2023-03-27 09:56:06 +00:00
raucao merged commit 0fbba8baa8 into master 2023-03-27 09:56:16 +00:00
raucao deleted branch feature/479-akkounts_smtp_config 2023-03-27 09:56:16 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kosmos/chef#480
No description provided.