2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
6 def getstaticsynckey(host)
9 facts = YAML.load(File.open("/var/lib/puppet/yaml/facts/#{host}.yaml").read)
10 return facts.values['staticsync_key']
17 scope.lookupvar('site::localinfo').keys.sort.each do |node|
18 if scope.lookupvar('site::localinfo')[node]['static_master']
19 key = getstaticsynckey(node)
20 masters << { 'node' => node, 'addr' => scope.lookupvar('site::allnodeinfo')[node]['ipHostNumber'], 'key' => key}
27 lines << '# ' + m['node']
29 lines << "# no key for node"
31 lines << "command=\"/usr/local/bin/static-mirror-ssh-wrap /srv/static.debian.org #{m['node']}\"," +
32 'no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-user-rc,' +
33 'from="' + m['addr'].join(',') + '" ' +
41 # vim:set shiftwidth=4: