theforeman/smart-proxy — pull request #44 by GregSutcliffe (2012-11-26 18:01:54+00:00)
Title: Store and re-use the last IP we pinged

Store the last successful IP returned to the Foreman UI in a file in /tmp. Use a file lock to make sure concurrent process don't try and offer the same IP to two users.