Implement Monlet MVP stack and UI updates
This commit is contained in:
@@ -17,7 +17,7 @@ import (
|
||||
"github.com/monlet/agent/internal/spool"
|
||||
)
|
||||
|
||||
var version = "dev"
|
||||
var version = "0.1.0"
|
||||
|
||||
func main() {
|
||||
cfgPath := flag.String("config", "config.toml", "path to TOML config")
|
||||
@@ -31,7 +31,7 @@ func main() {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
agentID, err := ids.LoadOrCreateAgentID(cfg.StateDir, cfg.AgentID)
|
||||
agentID, err := ids.ResolveAgentID(cfg.AgentID, cfg.Hostname)
|
||||
if err != nil {
|
||||
log.Error("agent_id", "err", err)
|
||||
os.Exit(1)
|
||||
@@ -47,7 +47,7 @@ func main() {
|
||||
Cfg: cfg,
|
||||
AgentID: agentID,
|
||||
Version: version,
|
||||
Client: client.New(cfg.Server.URL, cfg.Server.Token, agentID, version),
|
||||
Client: client.New(cfg.Server.URL, cfg.Server.Token, agentID),
|
||||
Spool: sp,
|
||||
Metrics: metrics.New(),
|
||||
Log: log,
|
||||
|
||||
Reference in New Issue
Block a user