add rossini
[mirror/dsa-puppet.git] / modules / roles / templates / static-mirroring / static-update-component.erb
index d00d749..7dbad82 100755 (executable)
@@ -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