blob: 6a25af9706e393f6bfc0e4adfc29515dacc04adb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Date: Tue, 11 Jul 2017 19:43:39 +0200
Subject: [PATCH] salt.sh: Clone armband repo, apply patches from it
FIXME: Revise the patching mechanism, make things more dynamic.
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
---
mcp/scripts/salt.sh | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/mcp/scripts/salt.sh b/mcp/scripts/salt.sh
index bb4f6cc..8bd3592 100755
--- a/mcp/scripts/salt.sh
+++ b/mcp/scripts/salt.sh
@@ -15,6 +15,16 @@ ssh ${SSH_OPTS} ubuntu@${SALT_MASTER} bash -s << SALT_INSTALL_END
svn export --force https://github.com/salt-formulas/salt-formulas/trunk/deploy/scripts /srv/salt/scripts
git clone --depth=1 --recurse-submodules https://git.opnfv.org/fuel
+ # NOTE(armband): no depth speedup on http
+ git clone http://git.opnfv.org/armband
+
+ # For patch applying purposes (workaround for empty git config)
+ export GIT_COMMITTER_NAME="OPNFV Armband"
+ export GIT_COMMITTER_EMAIL="armband@enea.com"
+ git -C /root/fuel am -3 --patch-format=mbox \
+ /root/armband/patches/opnfv-fuel/*.patch
+ git -C /root/fuel/mcp/reclass/classes/system am -3 --patch-format=mbox \
+ /root/armband/patches/reclass-system-salt-model/*.patch
ln -s /root/fuel/mcp/reclass /srv/salt/reclass
cd /srv/salt/scripts
|