summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJosh Cooper <josh@puppetlabs.com>2011-07-29 14:00:08 -0700
committerJosh Cooper <josh@puppetlabs.com>2011-07-29 14:00:08 -0700
commite9233b67a5d73852d89eb2e14dcf5255fe082a6a (patch)
tree16701bb5e7536c59a12c63eb8c0c865ae7c47963 /lib
parentcd1e501b6ebba6f7b109c0591452a459a95c43da (diff)
parent82c6b3cb41397c989c011cf767066bcf1e403db2 (diff)
downloadpuppet-e9233b67a5d73852d89eb2e14dcf5255fe082a6a.tar.gz
puppet-e9233b67a5d73852d89eb2e14dcf5255fe082a6a.tar.xz
puppet-e9233b67a5d73852d89eb2e14dcf5255fe082a6a.zip
Merge branch 'ticket/master/8644-host-provider'
* ticket/master/8644-host-provider: (#8644) Host provider on Windows
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/provider/host/parsed.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/puppet/provider/host/parsed.rb b/lib/puppet/provider/host/parsed.rb
index 2ba01a41c..1a2bdb460 100644
--- a/lib/puppet/provider/host/parsed.rb
+++ b/lib/puppet/provider/host/parsed.rb
@@ -3,6 +3,9 @@ require 'puppet/provider/parsedfile'
hosts = nil
case Facter.value(:operatingsystem)
when "Solaris"; hosts = "/etc/inet/hosts"
+when "windows"
+ require 'win32/resolv'
+ hosts = Win32::Resolv.get_hosts_path
else
hosts = "/etc/hosts"
end