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 |