Enabling raw exec in client.hcl

Hi there,

I’m having trouble enabling raw_exec in my client config file. I thought it would be as easy as adding the plugin stanza like so:

client {
  plugin "raw_exec" {
    config {
      enabled = true
    }
  }
  host_volume "ngram" {
    path      = "/home/jcwitt/ngram-build-4.3.2"
    read_only = false
  }
  host_volume "exist-data" {
    path      = "/home/jcwitt/exist-data"
    read_only = false
  }
  host_volume "exist-config" {
    path      = "/home/jcwitt/exist-config"
    read_only = false
  }
}

But on start up I keep getting the following error.
Error loading /etc/nomad.d/client.hcl: client unexpected keys plugin, raw_exec

It works fine if I remove the plugin stanza.

I’m running Nomad v1.2.3 (a79efc8422082c4790046c3f5ad92c542592a54f)

Can anyone help :slight_smile: ?

The plugin stanza goes outside of client, at the root of the configuration:

client {
  host_volume "ngram" {
    path      = "/home/jcwitt/ngram-build-4.3.2"
    read_only = false
  }
  host_volume "exist-data" {
    path      = "/home/jcwitt/exist-data"
    read_only = false
  }
  host_volume "exist-config" {
    path      = "/home/jcwitt/exist-config"
    read_only = false
  }
}
plugin "raw_exec" {
    config {
      enabled = true
    }
}
2 Likes