Created
December 3, 2012 15:59
-
-
Save sundbp/4195927 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defn setup-hetzner-kvm-server | |
| "Set up a fresh hetzner box to act as a KVM server" | |
| [hostname] | |
| (println (format "Performing initial setup for %s" hostname)) | |
| (hetzner-initial-setup hostname) | |
| (println "Sleeping 2mins to enable remote host to reboot..") | |
| (Thread/sleep (* 2 60 1000)) ;; wait for the host to reboot | |
| (println (format "Setting up %s as a KVM server.." hostname)) | |
| (configure-kvm-server hostname) | |
| (println (format "Done with %s" hostname))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment