mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 10:55:42 +03:00
Move raw_exec enabled into the DevMode config block
This commit is contained in:
@@ -44,11 +44,6 @@ func (d *RawExecDriver) Fingerprint(cfg *config.Config, node *structs.Node) (boo
|
||||
// Check that the user has explicitly enabled this executor.
|
||||
enabled := cfg.ReadBoolDefault(rawExecConfigOption, false)
|
||||
|
||||
// Always turn this driver on in dev mode because we don't have a config file
|
||||
if cfg.DevMode {
|
||||
enabled = true
|
||||
}
|
||||
|
||||
if enabled {
|
||||
d.logger.Printf("[WARN] driver.raw_exec: raw exec is enabled. Only enable if needed")
|
||||
node.Attributes["driver.raw_exec"] = "1"
|
||||
|
||||
@@ -257,6 +257,9 @@ func DevConfig() *Config {
|
||||
} else if runtime.GOOS == "linux" {
|
||||
conf.Client.NetworkInterface = "lo"
|
||||
}
|
||||
conf.Client.Options = map[string]string{
|
||||
"driver.raw_exec.enable": "true",
|
||||
}
|
||||
|
||||
return conf
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user