File tree 2 files changed +35
-3
lines changed
2 files changed +35
-3
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ CMD=" cd /shared/source; make install"
4
+ VDIR=~ /projects/vagrant/vagrant-ansible-samba-cluster
5
+ VNODES=" "
6
+
7
+ reading=false
8
+ while read -r line || [[ -n " $line " ]]; do
9
+ if [[ " $line " == " [samba_servers]" ]]; then
10
+ reading=true
11
+ continue
12
+ fi
13
+ if [ " $reading " = true ]; then
14
+ if [ " x${line} " == " x" ]; then
15
+ break
16
+ fi
17
+ VNODES=" ${VNODES} ${line} "
18
+ fi
19
+ done < ${VDIR} /.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory
20
+
21
+ case $1 in
22
+ -f|--force)
23
+ CMD=" ${CMD} || ./wafbuild-fed.sh"
24
+ ;;
25
+ * )
26
+ CMD=" $@ "
27
+ ;;
28
+ esac
29
+
30
+ cd ${VDIR}
31
+ vagrant rsync ${VNODES}
32
+ for NODE in ${VNODES} ; do
33
+ vagrant ssh ${NODE} -c " ${CMD} "
34
+ done
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ SCM="~/projects/samba/samba-perf"
4
4
PKG=" ~/projects/fedora/samba"
5
5
REPO=" ~/repo/f23/x86_64"
6
6
REPO_NAME=" jarrpa"
7
- NODES=" ganesh"
8
7
9
8
MOCK_OPTS=" --no-clean --without=configure --nocheck --no-cleanup-after"
10
9
if [ " x${1} " == " xclean" ]; then
@@ -39,11 +38,10 @@ if [ "${NEW_MD5}" != "${OLD_MD5}" ]; then
39
38
echo " sudo mock ${MOCK_OPTS} -r f23-x86_64 rebuild ${SRPM} "
40
39
sudo mock ${MOCK_OPTS} -r f23-x86_64 rebuild ${SRPM}
41
40
popd
42
- vagrant rsync
43
41
if [ " x${OLD_MD5} " != " x" ]; then
44
42
CMD=" SAMBA_PKGS=` dnf list installed | grep \" samba\\\| ctdb\\\| libwb\\\| libsmb\" | awk ' {print $1}' ` ; sudo dnf reinstall ${SAMBA_PKGS} "
45
43
else
46
44
CMD=" sudo dnf --disablerepo=* --enablerepo=${REPO_NAME} update"
47
45
fi
48
- vagrant ssh ${NODES} -c " ${ CMD}"
46
+ ./scripts/hark-a- vagrant.sh ${ CMD}
49
47
fi
You can’t perform that action at this time.
0 commit comments