Set default config_refresh in fleet flags

This ensures we don't end up in a state where osquery does not check in
for config updates.
This commit is contained in:
Zach Wasserman 2021-03-09 15:37:11 -08:00
parent f38206a927
commit aa562c3a52

View file

@ -13,6 +13,10 @@ func FleetFlags(fleetURL *url.URL) []string {
"--enroll_tls_endpoint=" + path.Join(prefix, "/api/v1/osquery/enroll"),
"--config_plugin=tls",
"--config_tls_endpoint=" + path.Join(prefix, "/api/v1/osquery/config"),
// Osquery defaults config_refresh to 0 which is probably not ideal for
// a client connected to Fleet. Users can always override this in the
// config they serve via Fleet.
"--config_refresh=60",
"--disable_distributed=false",
"--distributed_plugin=tls",
"--distributed_tls_max_attempts=10",