Method: Beaker::HostPrebuiltSteps#disable_updates
- Defined in:
- lib/beaker/host_prebuilt_steps.rb
#disable_updates(hosts, opts) ⇒ Object
Update /etc/hosts to make updates.puppetlabs.com (aka the dujour server) resolve to 127.0.01, so that we don’t pollute the server with test data. See SERVER-1000, BKR-182, BKR-237, DJ-10 for additional details.
383 384 385 386 387 388 389 390 |
# File 'lib/beaker/host_prebuilt_steps.rb', line 383 def disable_updates hosts, opts logger = opts[:logger] hosts.each do |host| next if host['platform'] =~ /netscaler/ logger.notify "Disabling updates.puppetlabs.com by modifying hosts file to resolve updates to 127.0.0.1 on #{host}" set_etc_hosts(host, "127.0.0.1\tupdates.puppetlabs.com\n") end end |