Compare commits

...

2 Commits

Author SHA1 Message Date
e13de5bd0d feat(agent): add config sub commands 2023-03-02 17:22:27 +01:00
813b1519e4 fix(packaging): agent default configuration 2023-03-02 17:22:05 +01:00
2 changed files with 9 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package agent
import ( import (
"forge.cadoles.com/Cadoles/emissary/internal/command/agent/openwrt" "forge.cadoles.com/Cadoles/emissary/internal/command/agent/openwrt"
"forge.cadoles.com/Cadoles/emissary/internal/command/config"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
) )
@ -11,6 +12,7 @@ func Root() *cli.Command {
Usage: "Agent related commands", Usage: "Agent related commands",
Subcommands: []*cli.Command{ Subcommands: []*cli.Command{
openwrt.Root(), openwrt.Root(),
config.Root(),
RunCommand(), RunCommand(),
}, },
} }

View File

@ -1,4 +1,6 @@
agent: agent:
serverUrl: http://127.0.0.1:3000
privateKeyPath: /var/lib/emissary/agent-key.json
reconciliationInterval: 5 reconciliationInterval: 5
controllers: controllers:
persistence: persistence:
@ -6,10 +8,14 @@ agent:
stateFile: /var/lib/emissary/state.json stateFile: /var/lib/emissary/state.json
spec: spec:
enabled: true enabled: true
serverUrl: http://192.168.0.45:3000
gateway: gateway:
enabled: true enabled: true
uci: uci:
enabled: true enabled: true
binPath: uci binPath: uci
configBackupFile: /var/lib/emissary/uci-backup.conf configBackupFile: /var/lib/emissary/uci-backup.conf
collectors:
- name: uname
command: uname
args:
- -a