Give arrays another try
authorPeter Palfrader <peter@palfrader.org>
Thu, 5 Nov 2015 19:27:06 +0000 (20:27 +0100)
committerPeter Palfrader <peter@palfrader.org>
Thu, 5 Nov 2015 19:27:06 +0000 (20:27 +0100)
modules/puppetmaster/lib/puppet/parser/functions/gen_tlsa_entry.rb
modules/roles/manifests/rtc.pp

index f49555c..baaa73b 100644 (file)
@@ -4,10 +4,10 @@ module Puppet::Parser::Functions
     hostname = args.shift()
     port = args.shift()
 
-    if port.kind_of?(String)
-      ports = port.split()
-    else
+    if port.kind_of?(Array)
       ports = port
+    else
+      ports = [port]
     end
 
     res = []
index 09ad058..4a9a303 100644 (file)
@@ -10,7 +10,7 @@ class roles::rtc {
        dnsextras::tlsa_record{ 'tlsa-xmpp':
                zone     => 'debian.org',
                certfile => "/etc/puppet/modules/ssl/files/servicecerts/www.debian.org.crt",
-               port     => '5061 5222 5269',
+               port     => [5061, 5222, 5269],
                hostname => $::fqdn,
        }