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

View File

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