Skip to content
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

Merged
merged 1 commit into from
Mar 17, 2015

Conversation

omaciel
Copy link
Member

@omaciel omaciel commented Mar 12, 2015

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.


hostname = run('hostname', quiet=True).strip()
if hostname:
domain = hostname.split('.', 1)[1]
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Member Author

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@elyezer
Copy link
Contributor

elyezer commented Mar 13, 2015

ACK, pending comment

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@elyezer
Copy link
Contributor

elyezer commented Mar 13, 2015

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.
@omaciel
Copy link
Member Author

omaciel commented Mar 16, 2015

I decided to drop the code that updated the domain attribute as it didn't seem to really affect this feature.

@sthirugn
Copy link
Contributor

ACK

@elyezer
Copy link
Contributor

elyezer commented Mar 17, 2015

Time to merge

elyezer added a commit that referenced this pull request Mar 17, 2015
Task to configure system for email notification.
@elyezer elyezer merged commit f8582bf into SatelliteQE:master Mar 17, 2015
@elyezer
Copy link
Contributor

elyezer commented Mar 17, 2015

Karma given

@elyezer
Copy link
Contributor

elyezer commented Mar 17, 2015

I can haz beers? omaciel has 205 points

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants