Signal9Signal9 — home
online
back to labs

Config Surgeon: Edit to an Exact Target

EasyText Editors15-20 min
The brief

The app config at /root/app/signal9.conf is going to production tonight and needs three precise edits: debug mode is still on, a scratch line someone left behind must go, and the new metrics endpoint hasn't been declared. Open the file in vim and perform surgery: change 'debug = true' to 'debug = false', delete the entire line containing 'REMOVE-ME', and add the line 'metrics_endpoint = /metrics' at the bottom of the file. Precision counts — the deploy tooling reads this file literally.

What you'll do
  • Change 'debug = true' to 'debug = false'
  • Delete the whole line containing 'REMOVE-ME'
  • Append the line 'metrics_endpoint = /metrics' at the end of the file

Hands-on lab: you work on a real Linux box in your browser, graded on the machine's actual state.