2024-03-10 07:15:49 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
2024-03-12 01:39:17 +00:00
|
|
|
|
2024-03-19 15:13:44 +00:00
|
|
|
"git.staur.ca/stobbsm/clustvirt/cluster"
|
2024-03-21 22:56:24 +00:00
|
|
|
"git.staur.ca/stobbsm/clustvirt/router/server"
|
2024-03-10 07:15:49 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
log.Println("Starting clustvirt, the libvirt cluster manager")
|
2024-03-19 15:13:44 +00:00
|
|
|
clst := cluster.New().
|
|
|
|
AddHost("earth.staur.ca").
|
|
|
|
AddHost("venus.staur.ca").
|
|
|
|
AddHost("mars.staur.ca").
|
|
|
|
Build()
|
2024-03-14 01:12:48 +00:00
|
|
|
// Start webserver and serve homepage
|
|
|
|
|
2024-03-21 22:56:24 +00:00
|
|
|
r := server.New("127.0.0.1", 3000, clst)
|
|
|
|
r.Start()
|
2024-03-10 07:15:49 +00:00
|
|
|
}
|