Displaying 4 results from an estimated 4 matches for "save_ntp_configur".
2009 Jun 25
1
[PATCH node] Rerunning network config resets all network config. bz#507393
...tc/npt.conf and insert our own
- BACKUP="${WORKDIR}/ntp.conf-backup"
- egrep -v '^server .* # added by ovirt-config-network' < $NTP_CONFIG_FILE > $BACKUP
- for server in $NTP; do
- echo "server $server # added by ovirt-config-network" >> $BACKUP
+function save_ntp_configuration
+{
+ local ntpconf="$WORKDIR/augtool-ntp"
+ local ntproot="/files/etc/ntp.conf"
+
+ printf "\
+rm ${ntproot}\n\n
+set ${ntproot}/driftfile /var/lib/ntp/drift\n\
+set ${ntproot}/includefile /etc/ntp/crypto/pw\n\
+set ${ntproot}/keys /etc/ntp/keys\n\
+save\n&quo...
2009 Jul 07
1
Obsoletes previous patch
This patch obsoletes the previously submitted patch. It adds a
warning message to the user when they select to change the NTP settings.
2010 Oct 25
0
[PATCH node] add network.py script
...uot;set %s/DNS2 %s\n\" >> %s") % (IF_ROOT, DNS2)
+ except:
+ pass
+
+ def configure_ntp(self):
+ if OVIRT_VARS.has_key("OVIRT_NTP"):
+ NTPSERVERS=OVIRT_NTP
+ else:
+ NTPSERVERS=""
+
+ def save_ntp_configuration(self):
+ ntproot = "/files/etc/ntp.conf"
+ ntpconf = "rm %s\n" % ntproot
+ ntpconf += "set %s/driftfile /var/lib/ntp/drift\n" % ntproot
+ ntpconf += "set %s/includefile /etc/ntp/crypto/pw\n" % ntproot
+ ntpconf += "...
2010 Jan 18
1
Fixed a karg issue...
I missed one situation in the last patch. It wasn't properly handling
the karg for NTP. This patch fixes that.