File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ packages() {
376
376
# xenstore utils
377
377
chroot . apt-get --no-install-recommends -q -y --force-yes install xenstore-utils libxenstore3.0
378
378
# keepalived - install version 1.2.13 from wheezy backports
379
- chroot . apt-get --no-install-recommends -t wheezy-backports - q -y --force-yes install keepalived
379
+ chroot . apt-get --no-install-recommends -q -y --force-yes -t wheezy-backports install keepalived
380
380
# conntrackd
381
381
chroot . apt-get --no-install-recommends -q -y --force-yes install conntrackd ipvsadm libnetfilter-conntrack3 libnl1
382
382
# ipcalc
Original file line number Diff line number Diff line change @@ -139,14 +139,21 @@ def _redundant_on(self):
139
139
heartbeat_cron .add ("* * * * * root $SHELL %s/check_heartbeat.sh 2>&1 > /dev/null" % self .CS_ROUTER_DIR , - 1 )
140
140
heartbeat_cron .add ("* * * * * root sleep 30; $SHELL %s/check_heartbeat.sh 2>&1 > /dev/null" % self .CS_ROUTER_DIR , - 1 )
141
141
heartbeat_cron .commit ()
142
-
142
+
143
143
# Configure KeepaliveD cron job - runs at every reboot
144
144
keepalived_cron = CsFile ("/etc/cron.d/keepalived" )
145
145
keepalived_cron .add ("SHELL=/bin/bash" , 0 )
146
146
keepalived_cron .add ("PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" , 1 )
147
147
keepalived_cron .add ("@reboot root service keepalived start" , - 1 )
148
148
keepalived_cron .commit ()
149
149
150
+ # Configure ConntrackD cron job - runs at every reboot
151
+ conntrackd_cron = CsFile ("/etc/cron.d/conntrackd" )
152
+ conntrackd_cron .add ("SHELL=/bin/bash" , 0 )
153
+ conntrackd_cron .add ("PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" , 1 )
154
+ conntrackd_cron .add ("@reboot root service conntrackd start" , - 1 )
155
+ conntrackd_cron .commit ()
156
+
150
157
proc = CsProcess (['/usr/sbin/keepalived' , '--vrrp' ])
151
158
if not proc .find () or keepalived_conf .is_changed ():
152
159
CsHelper .service ("keepalived" , "restart" )
You can’t perform that action at this time.
0 commit comments