Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
e13de5bd0d | |||
813b1519e4 |
@ -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(),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user