aboutsummaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/hostname.rb
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-12-30 13:39:04 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-12-30 13:39:04 -0200
commit8a074424708a2ca7c7625e138fe29621ae3315a8 (patch)
tree0a1a47e55d7d49114cf246b9efea1e0907ee1cbd /lib/puppet/parser/functions/hostname.rb
parenta1bde593bf95ea1048a35ad6c42cbad8c7a51971 (diff)
parent6fcf75d46a5c7fcd00fd4470270552b543cf4452 (diff)
downloadpuppet-common-8a074424708a2ca7c7625e138fe29621ae3315a8.tar.gz
puppet-common-8a074424708a2ca7c7625e138fe29621ae3315a8.tar.bz2
Merge branch 'master' of https://gitlab.com/shared-puppet-modules-group/commonHEADmaster
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
-