summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/hostname.rb
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2016-03-04 23:34:17 +0100
committermh <mh@immerda.ch>2016-03-04 23:34:17 +0100
commit2ac62545834f10e958c863adac75cbe47a597faf (patch)
tree019f964e8197f42b4369ddd9cc3c5f22ad16fe4e /lib/puppet/parser/functions/hostname.rb
parente9d8147584cf42dceec6d2cdd4314e8a85dc3aeb (diff)
remove a crappy function
Diffstat (limited to 'lib/puppet/parser/functions/hostname.rb')
-rw-r--r--lib/puppet/parser/functions/hostname.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/puppet/parser/functions/hostname.rb b/lib/puppet/parser/functions/hostname.rb
deleted file mode 100644
index 7bc477f..0000000
--- a/lib/puppet/parser/functions/hostname.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-# get an uniq array of ipaddresses for a hostname
-require 'resolv'
-
-module Puppet::Parser::Functions
- newfunction(:hostname, :type => :rvalue) do |args|
- res = Array.new
- Resolv::DNS.new.each_address(args[0]){ |addr|
- res << addr
- }
- res.uniq
- end
-end
-