Displaying 5 results from an estimated 5 matches for "ntpconf".
2010 Oct 25
0
[PATCH node] add network.py script
...ts/network.py
@@ -0,0 +1,207 @@
+#!/usr/bin/python
+
+from ovirtfunctions import *
+import tempfile
+import sys
+
+class Network:
+
+ def __init__(self):
+ self.WORKDIR=tempfile.mkdtemp()
+ self.IFCONFIG_FILE_ROOT="/files/etc/sysconfig/network-scripts/ifcfg"
+ self.NTPCONF_FILE_ROOT="/files/etc/ntp"
+ self.NTP_CONFIG_FILE="/etc/ntp.conf"
+ self.NTPSERVERS=""
+ self.CONFIGURED_NIC= ""
+ self.IF_CONFIG = ""
+ self.BR_CONFIG = ""
+ self.VL_CONFIG = ""
+...
2009 Jun 25
1
[PATCH node] Rerunning network config resets all network config. bz#507393
...,10 @@ WORKDIR=$(mktemp -d) || exit 1
trap '__st=$?; rm -rf "$WORKDIR"; stop_log; exit $__st' 0
trap 'exit $?' 1 2 13 15
-CONFIG_FILE_ROOT="/files/etc/sysconfig/network-scripts/ifcfg"
+IFCONFIG_FILE_ROOT="/files/etc/sysconfig/network-scripts/ifcfg"
+NTPCONF_FILE_ROOT="/files/etc/ntp"
NTP_CONFIG_FILE="/etc/ntp.conf"
+NTPSERVERS=""
CONFIGURED_NIC=""
# if local storage is not configured, then exit the script
@@ -55,10 +57,10 @@ function configure_interface
printf "\nConfigure $BRIDGE for use by $NI...
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.
2011 Aug 11
1
[PATCH] fix augtool calls
...lue
---
scripts/network.py | 32 ++++++++++++++++----------------
1 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/scripts/network.py b/scripts/network.py
index f51ee7c..65b551c 100644
--- a/scripts/network.py
+++ b/scripts/network.py
@@ -165,11 +165,11 @@ class Network:
ntpconf = ntpconf.split("\n")
for line in ntpconf:
try:
- oper, file, value = line.split()
+ oper, key, value = line.split()
+ augtool(oper, key, value)
except:
- oper, file = line.split()
-...
2007 Sep 02
0
handling rc.conf / freebsd init scripts
...ndmail_enable=\"YES\" /etc/rc.d/sendmail
stop"
}
service { ntpd:
name => "ntpd",
ensure => running,
hasstatus => true,
provider => init,
subscribe => File[ntpconf]
}
}
here you see a couple services handled by puppet. first, i always want
to disable the sendmail daemons (i also have a periodic.conf so the jobs
don''t run, but that''s easy to set up with a simple file resource). i''m
using "env" to trick the rc s...