Tool

Examine Unexpected Changes In Your /etc/hosts File

Updating hosts file is super easy! Any sed, echo, vim command will work.

You’re perfectly safe, if all changes only come from the automation. And your code is bug-free.

But in the reality, you might have surprises. Especially when people might change it manually.

My Suggestion? Before making any changes, confirm all customizations are expected. If not, abort the changes with proper alerting.

Update /etc/hosts With Everything Expected


(more…)

ChatOps Bot: Query Node Info Without Manual Login

Try Your Best To Avoid Any SSH Operations. Yes, I deeply believe in this principle. But my reality is the automation is never so perfect. I still need to login and check system status sometimes. Though the chance is rare.
It may happen at nights or even when I’m on vacation. So what I can do? Just carry my laptop with me wherever I go? This is certainly bad, isn’t it?

We’re living in the world of ChatOps. And mobile phones dominate our daily life (Sadly!) So why don’t we implement a ChatOps bot for this? Here comes a slack command: /chatqueryhost. (Note: The solution is not limited to Slack)

ChatOps Bot: Query Node Info Without Manual Login


(more…)