Also sources can ssh to the master to trigger stuff
authorPeter Palfrader <peter@palfrader.org>
Sat, 8 Dec 2012 18:02:23 +0000 (19:02 +0100)
committerPeter Palfrader <peter@palfrader.org>
Sat, 8 Dec 2012 18:02:23 +0000 (19:02 +0100)
modules/roles/templates/static-master-authorized_keys.erb

index 27bd448..9d01eef 100644 (file)
@@ -15,7 +15,7 @@ end
 
 mirrors = []
 scope.lookupvar('site::localinfo').keys.sort.each do |node|
-    if scope.lookupvar('site::localinfo')[node]['static_mirror']
+    if scope.lookupvar('site::localinfo')[node]['static_mirror'] or scope.lookupvar('site::localinfo')[node]['static_source']
         key = getstaticsynckey(node)
         mirrors << { 'node' => node, 'addr' => scope.lookupvar('site::allnodeinfo')[node]['ipHostNumber'], 'key' => key}
     end