X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Ftemplates%2Fstatic-mirroring%2Fstatic-update-component.erb;h=7dbad820aea4e71ecbc1a746d503693f5cca1f31;hb=7f7977f233e069f392961706a02d656a02a74bc3;hp=d00d7494aede072f9bf51b84c600736167320437;hpb=529f0bbc5cfbcec2e92688331f3cb6b487bb8fab;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/templates/static-mirroring/static-update-component.erb b/modules/roles/templates/static-mirroring/static-update-component.erb index d00d7494a..7dbad820a 100755 --- a/modules/roles/templates/static-mirroring/static-update-component.erb +++ b/modules/roles/templates/static-mirroring/static-update-component.erb @@ -61,14 +61,14 @@ lines = [] masters = [] scope.lookupvar('site::localinfo').keys.sort.each do |node| if scope.lookupvar('site::localinfo')[node]['static_master'] - lines << "masters+=(\"#{node}\"}" + lines << " masters+=(\"#{node}\")" end end lines.join("\n") %> for master_idx in ${!masters[*]}; do - ssh "${masters[$master_idx]}" static-master-update-component "$component" + ssh -o AddressFamily=inet -t -o ServerAliveInterval=300 -o PreferredAuthentications=publickey "${masters[$master_idx]}" static-master-update-component "$component" done fi