Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: Vagrantfile

Issue 29366882: Issue 3574 - Refactor Puppet class base into class adblockplus (Closed)
Patch Set: Created Dec. 6, 2016, 10:40 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | hiera/puppet_node_classifier.rb » ('j') | modules/adblockplus/manifests/init.pp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Vagrantfile
===================================================================
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -63,9 +63,10 @@
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config_path = File.join(REPOSITORY_DIR, "modules/private/hiera/hosts.yaml")
config_data = YAML.load_file(config_path)
- servers = config_data["servers"]
+ servers = config_data["adblockplus::hosts"]
servers.each do |server, items|
- ip = items["ip"][0]
+ next if items['ensure'] == 'absent'
+ ip = items["ips"][0]
role = items.fetch("role", "default")
define_standard_vm(config, server, ip, role)
end
« no previous file with comments | « no previous file | hiera/puppet_node_classifier.rb » ('j') | modules/adblockplus/manifests/init.pp » ('J')

Powered by Google App Engine
This is Rietveld