Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
701cb551
Commit
701cb551
authored
Jun 18, 2013
by
Mike Hibler
Browse files
Nit: add switch-backup to excluded files.
parent
8f19f0dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/subboss_sync.in
View file @
701cb551
#!/usr/bin/perl -wT
#
# Copyright (c) 2000-201
2
University of Utah and the Flux Group.
# Copyright (c) 2000-201
3
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -30,8 +30,8 @@ my $RSYNC = 'rsync';
my
$RSYNC_OPTS
=
"
-W -u -av --delete --force
";
my
@excludes
=
qw#cisco-config/ cisco-config. hp-config/ OLD/ tmp/ /proj/#
;
my
@includes
=
qw#
INCLUDE_ME
#
;
my
@excludes
=
qw#cisco-config/ cisco-config. hp-config/ OLD/ tmp/ /proj/
switch-backup
#
;
my
@includes
=
qw##
;
#
# dhcpd_makeconf - helper script to create dhcpd.conf files from the database.
...
...
@@ -101,13 +101,14 @@ for (@includes) {
$cmdline
.=
"
-e ssh /tftpboot/
";
# Slurp in all of the subboss data to know
A)
if we should serve the DHCP
# Slurp in all of the subboss data to know if we should serve the DHCP
# lease to a given node, or if the next-server field should be something
# other than the IP for boss.
$query_result
=
DBQueryWarn
("
select distinct subboss_id from subbosses where service = 'tftp'
");
if
(
!
$query_result
)
{
fatal
("
Could not dhcpd data from DB!
");
DBQueryWarn
("
select distinct subboss_id from subbosses
"
.
"
where service='tftp'
");
if
(
!
$query_result
)
{
fatal
("
Could not subboss data from DB!
");
}
while
(
my
%row
=
$query_result
->
fetchhash
())
{
my
$subboss_id
=
$row
{"
subboss_id
"};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment