diff options
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 24 |
1 files changed, 13 insertions, 11 deletions
@@ -11,31 +11,33 @@ import "go.wit.com/log" var argv args type args struct { - Xml []string `arg:"--libvirt" help:"add current xml files: --libvirt /etc/libvirt/qemu/*.xml"` - Save bool `arg:"--save" default:"false" help:"save config protobuf after libvirt file import"` - Config string `arg:"--config" help:"defaults to ~/.config/virtigo/"` - Port int `arg:"--port" default:"8080" help:"allow droplet events via http"` - Daemon bool `arg:"--daemon" help:"run in daemon mode"` + Xml []string `arg:"--libvirt" help:"import qemu xml files: --libvirt /etc/libvirt/qemu/*.xml"` + Save bool `arg:"--save" default:"false" help:"save protobuf config after import"` + Config string `arg:"env:VIRTIGO_HOME" help:"defaults to ~/.config/virtigo/"` + Port int `arg:"--port" default:"8080" help:"allow droplet events via http"` + Daemon bool `arg:"--daemon" help:"run in daemon mode"` + } + // Uptime bool `arg:"--uptime" default:"true" help:"allow uptime checks for things like Kuma"` // Hosts []string `arg:"--hosts" help:"hosts to connect to"` func (a args) Description() string { return ` -virtigo will help control your cluster of hypervisiors + virtigo will help control your cluster This maintains a master list of all your vm's (aka 'droplets') in your homelab cloud. You can import libvirt xml files. This app talks to your hypervisors via the virtigod daemon. -Runs a http server so you can control your virtual machines with things like: -start virtual machines with: +Import your existing libvirt xml files with: - curl http://virtigo.wit.com/start?www.wit.com + virtigo --libvirt /etc/libvirt/qemu/*.xml --save -Import your existing libvirt xml files with: +This runs a http server so you can control your virtual machines. +For example to start a vm called 'www.wit.com' your cluster 'foo.bar.com': - virtigo --libvirt ~/mymachines/*.xml --save + curl http://foo.bar.com/start?www.wit.com ` } |
