This file is indexed.

/usr/share/heartbeat/ha_propagate is in heartbeat 1:3.0.5-3ubuntu2.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/python
#
#   Support:      linux-ha-dev@lists.tummy.com
#   License:      GNU General Public License (GPL)
#
#       This script read the list of nodes from the ha.cf file
#       and then uses 'scp' to copy the ha.cf file to each node.
#

import os, sys
from stat import *

cfgdir = "/etc/ha.d/"
cfgfile = cfgdir + "ha.cf"
authfile = cfgdir + "authkeys"

try:
	os.stat(cfgfile)
	os.stat(authfile)
except:
	print "HA Linux not configured on this node.  Can not propagate."
	sys.exit()

nodes = []

f=open(cfgfile)
for line in f:
    if line.startswith("node"):
       toks = line.split()
       if (len(toks) == 2):
	  nodeName = toks[1]
	  nodes.append(nodeName)
f.close()

thisnode = os.uname()[1]
if nodes.count(thisnode) > 0:
   nodes.remove(thisnode)

for i, v in enumerate(nodes):
    print "Propagating HA configuration files to node " + v + "."
    res = os.system("scp " + cfgfile + " " + authfile + " root@" + v + ":" + cfgdir)
    print "Setting HA startup configuration on node " + v + "."
    res = os.system("ssh " + " root@" + v + " chkconfig `chkconfig heartbeat`")