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.adam-barratt.org.uk/?a=commitdiff_plain;h=1a6e21d366bf5f8feab36ab1a214598085ae82eb;p=mirror%2Fdsa-puppet.git 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 53a4922bd..9a65a5b74 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 4a9a30350..09ad05806 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, }