mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
fix: add missing variables for drain module
This commit is contained in:
@@ -417,12 +417,21 @@ scenario "upgrade" {
|
||||
step "drain_client" {
|
||||
depends_on = [step.upgrade_second_client]
|
||||
|
||||
description = <<-EOF
|
||||
description = <<-EOF
|
||||
Selects one client to drain, waits for all allocs to be rescheduled and
|
||||
brings back the node eligibility
|
||||
EOF
|
||||
|
||||
module = module.drain_client
|
||||
variables {
|
||||
# connecting to the Nomad API
|
||||
nomad_addr = step.provision_cluster.nomad_addr
|
||||
ca_file = step.provision_cluster.ca_file
|
||||
cert_file = step.provision_cluster.cert_file
|
||||
key_file = step.provision_cluster.key_file
|
||||
nomad_token = step.provision_cluster.nomad_token
|
||||
nodes_to_drain = 1
|
||||
}
|
||||
}
|
||||
|
||||
step "upgrade_third_client" {
|
||||
|
||||
Reference in New Issue
Block a user