Skip to content

Commit 5f251e5

Browse files
authored
Pin Vagrant box version
The existing night-rally fixtures rely on a Ansible versions <2.8. Pin box version to ensure it uses Vagrant images that come with Ansible <2.8. Relates elastic#116
1 parent f5a5f70 commit 5f251e5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

night_rally/fixtures/ansible/Vagrantfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ end
1111

1212
base_ip = '192.168.180.10'
1313
boxname = "elastic/ubuntu-16.04-x86_64"
14+
# Pin an older image to ensure Ansible <2.8
15+
box_version = "20190623.0.0"
1416

1517
default_cpus = 2
1618
default_target_node_count = 3
@@ -22,11 +24,11 @@ default_target_memory = ENV.fetch("VAGRANT_TARGET_MEMORY", "5120")
2224
install_build_requirements = ENV["VAGRANT_ENABLE_BUILD"].to_s.downcase=="true"
2325
domain_name = "benchmarks.ci.vagrant"
2426

25-
nodes = [{ hostname: "coordinator", domain: domain_name, autostart: true, box: boxname, memory: default_load_driver_memory }]
27+
nodes = [{ hostname: "coordinator", domain: domain_name, autostart: true, box: boxname, box_version: box_version, memory: default_load_driver_memory }]
2628

2729
# target-nodes
2830
for i in 1..default_target_node_count
29-
nodes += [{ hostname: "target%02d" % [i], domain: domain_name, autostart: true, box: boxname, memory: default_target_memory.to_i }]
31+
nodes += [{ hostname: "target%02d" % [i], domain: domain_name, autostart: true, box: boxname, box_version: box_version, memory: default_target_memory.to_i }]
3032
end
3133

3234
rally_repo = ENV.fetch("RALLY_REPO", "https://github.com/elastic/rally.git")
@@ -194,6 +196,7 @@ Vagrant.configure(2) do |config|
194196

195197
config.vm.define node[:hostname], autostart: (node[:autostart] || false) do |node_config|
196198
node_config.vm.box = node[:box] || boxname
199+
node_config.vm.box_version = box_version
197200
node_config.vm.hostname = fqdn
198201
node_config.vm.network :private_network, ip: ip_address.to_s
199202

0 commit comments

Comments
 (0)