File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- vyatta-config-sync is a Vyatta configuration synchronizer destined
2
- to distribute Vyatta config.boot file from master server across slave servers
1
+ vyatta-config-sync is a Vyatta / VyOS configuration synchronizer destined
2
+ to distribute config.boot file from master server across slave servers
3
3
while applying necessary local modifications on every slave host.
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
#
3
- # Vyatta (VC5/VC6/VC7) config.boot synchronizer, version 0.1-16
3
+ # Vyatta / VyOS config.boot synchronizer, version 0.1-17
4
4
#
5
5
source " /etc/default/vyatta" application=vyatta-config-sync
6
6
CONFIG_BOOT_FILE=" /opt/vyatta/etc/config/config.boot"
@@ -144,7 +144,7 @@ while [ ${CL} -le ${LC} ]; do
144
144
let CM++
145
145
done
146
146
# Generate slave config.boot by applying local transformations and host substitution to master config.boot
147
- sed -f " ${TMP_LOCAL_TRANSFORMATIONS_FILE} " -e " s/host-name .*[^{] $/host-name ${SYNC_HOST_NAME} /" " ${CONFIG_BOOT_FILE} " > " ${TMP_CONFIG_BOOT_FILE} "
147
+ sed -f " ${TMP_LOCAL_TRANSFORMATIONS_FILE} " -e " s/host-name ${HOSTNAME} $/host-name ${SYNC_HOST_NAME} /" " ${CONFIG_BOOT_FILE} " > " ${TMP_CONFIG_BOOT_FILE} "
148
148
chmod 0660 " ${TMP_CONFIG_BOOT_FILE} "
149
149
chgrp vyattacfg " ${TMP_CONFIG_BOOT_FILE} "
150
150
# Compare MD5 sums of existing and newly generated slave config.boot files
You can’t perform that action at this time.
0 commit comments