2024-03-10 07:15:49 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2024-03-19 15:13:44 +00:00
|
|
|
"git.staur.ca/stobbsm/clustvirt/cluster"
|
2024-03-24 04:05:06 +00:00
|
|
|
"git.staur.ca/stobbsm/clustvirt/lib/log"
|
|
|
|
"git.staur.ca/stobbsm/clustvirt/router/server"
|
2024-03-10 07:15:49 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2024-03-24 04:05:06 +00:00
|
|
|
log.Info("main").Msg("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-24 04:05:06 +00:00
|
|
|
log.Info("main").Msg("starting web server")
|
|
|
|
r := server.New("127.0.0.1", 3000, clst)
|
|
|
|
r.Start()
|
2024-03-10 07:15:49 +00:00
|
|
|
}
|