projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Everybody gets static-components.conf, even though only the master and sources need it
[mirror/dsa-puppet.git]
/
modules
/
roles
/
files
/
static-mirroring
/
static-master-run
diff --git
a/modules/roles/files/static-mirroring/static-master-run
b/modules/roles/files/static-mirroring/static-master-run
index
24ea3e1
..
0d7003d
100755
(executable)
--- a/
modules/roles/files/static-mirroring/static-master-run
+++ b/
modules/roles/files/static-mirroring/static-master-run
@@
-15,9
+15,12
@@
subdirs = { 'master': 'master', # where updates from off-site end up going
serialname = '.serial'
clients = []
serialname = '.serial'
clients = []
-with open('/
home/staticsync/etc/static-clients
') as f:
+with open('/
etc/static-clients.conf
') as f:
for line in f:
for line in f:
- clients.append(line.strip())
+ line = line.strip()
+ if line == "": continue
+ if line.startswith('#'): continue
+ clients.append(line)
def log(m):
t = time.strftime("[%Y-%m-%d %H:%M:%S]", time.gmtime())
def log(m):
t = time.strftime("[%Y-%m-%d %H:%M:%S]", time.gmtime())