From: Peter Palfrader Date: Thu, 5 Nov 2015 19:18:06 +0000 (+0100) Subject: Arrays do not seem to work, use strings for now X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=commitdiff_plain;h=1a6e21d366bf5f8feab36ab1a214598085ae82eb;hp=8816f56395bf7740ef596a1a2253393e09281b2b Arrays do not seem to work, use strings for now --- diff --git a/modules/puppetmaster/lib/puppet/parser/functions/gen_tlsa_entry.rb b/modules/puppetmaster/lib/puppet/parser/functions/gen_tlsa_entry.rb index 53a4922b..9a65a5b7 100644 --- a/modules/puppetmaster/lib/puppet/parser/functions/gen_tlsa_entry.rb +++ b/modules/puppetmaster/lib/puppet/parser/functions/gen_tlsa_entry.rb @@ -4,10 +4,10 @@ module Puppet::Parser::Functions hostname = args.shift() port = args.shift() - if port.kind_of?(Array) - ports = port + if port.kind_of?(String) + ports = port.split() else - ports = [ port ] + ports = port end res = [] diff --git a/modules/roles/manifests/rtc.pp b/modules/roles/manifests/rtc.pp index 4a9a3035..09ad0580 100644 --- a/modules/roles/manifests/rtc.pp +++ b/modules/roles/manifests/rtc.pp @@ -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, }