Start Nomad cluster with pre-defined bootstrap token

I want to start my Nomad cluster with a pre-defined bootstrap token, so that I don’t have to run nomad acl bootstrap

To make the comparison with Consul, we can have the following acl stanza:

acl = {
  enabled = true
  tokens {
    initial_management = "<consul_bootstrap_token>"
  }
}

With the configuration above, when Consul starts, it already has a valid bootstrap token that can be used to create policies, etc.

I would like to know if it’s possible to have the same kind of configuration for Nomad. The idea is not to have to run nomad acl bootstrap.

I’m running a “dynamic” Nomad cluster that I often destroy and redeploy using Terraform, so I would like to avoid any manual operations.

Thanks

Hi @iamoric,

Nomad does not allow specifying the bootstrap management token within the configuration file. It is expected that the ACL bootstrapping is done via the API/CLI which can be automated via your configuration management tool.

Thanks,
jrasell and the Nomad team