Skip to content

Commit

Permalink
CI: Allow overriding memory/cpu from vars.yml
Browse files Browse the repository at this point in the history
The examples are there to override the memory/count/vpcu of the
lb/master/worker but in reality we were ignoring most of those
values.

This patch adds the missing values to override so we can configure
the deployments on CI vi modifying the vars.yml
  • Loading branch information
Itxaka authored and Danny Sauer committed Mar 11, 2020
1 parent bd1a1d1 commit 9a3fe02
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ci/infra/testrunner/platforms/terraform.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,14 @@ def _update_tfvars(self, tfvars):
"stack_name": self.stack_name(),
"username": self.conf.terraform.nodeuser,
"masters": self.conf.terraform.master.count,
"master_memory": self.conf.terraform.master.memory,
"master_vcpu": self.conf.terraform.master.cpu,
"workers": self.conf.terraform.worker.count,
"worker_memory": self.conf.terraform.worker.memory,
"worker_vcpu": self.conf.terraform.worker.cpu,
"lbs": self.conf.terraform.lb.count,
"lb_memory": self.conf.terraform.lb.memory,
"lb_vcpu": self.conf.terraform.lb.cpu,
"authorized_keys": [self.utils.authorized_keys()]
}

Expand Down

0 comments on commit 9a3fe02

Please sign in to comment.