-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task to configure system for email notification. #160
Conversation
|
||
hostname = run('hostname', quiet=True).strip() | ||
if hostname: | ||
domain = hostname.split('.', 1)[1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure about the purpose of the domain value. Can you please test and make sure that this actually works?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and it didn't seem to affect the end result. I still managed to get notifications. If anything, the default for domain
is something like example.com
which my proposed code would change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I want to remove the code that updates the domain attribute as I don't think it buy us anything
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
ACK, pending comment |
c861a61
to
e7bfe1c
Compare
call it, preferably before another task that restarts the stack, such as | ||
the 'setup_default_capsule' task. | ||
|
||
:param str smtp: A valid URL to a SMTP server. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
ACK |
This task will configure your Satellite 6 system to send out email notifications. The task itself needs to restart the entire stack in order to take effect (via katello-service restart). I chose not to restart the stack within the task itself, but to let the user call it when appropriate, preferably before another task that may already restart all services, such as the ``setup_default_capsule`` task.
e7bfe1c
to
8e6e8dc
Compare
I decided to drop the code that updated the |
ACK |
Time to merge |
Task to configure system for email notification.
Karma given |
I can haz beers? |
This task will configure your Satellite 6 system to send out email
notifications. The task itself needs to restart the entire stack in
order to take effect (via katello-service restart). I chose not to
restart the stack within the task itself, but to let the user call it
when appropriate, preferably before another task that may already
restart all services, such as the
setup_default_capsule
task.