Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
ors-utils
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ors-utils
Commits
448c0ab9
Commit
448c0ab9
authored
Aug 18, 2022
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorganize scripts, move some scripts to playbook
parent
c91b45f2
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
19 additions
and
12 deletions
+19
-12
scripts/6-setup-re6st-slapos
scripts/6-setup-re6st-slapos
+0
-8
scripts/7-setup-playbook
scripts/7-setup-playbook
+0
-4
scripts/ors/0-setup-hostname-passwd
scripts/ors/0-setup-hostname-passwd
+0
-0
scripts/ors/1-update
scripts/ors/1-update
+0
-0
scripts/ors/2-get-host-ID
scripts/ors/2-get-host-ID
+0
-0
scripts/ors/3-setup-playbook
scripts/ors/3-setup-playbook
+11
-0
scripts/ors/4-configure-root-access
scripts/ors/4-configure-root-access
+0
-0
scripts/ors/5-configure-re6st
scripts/ors/5-configure-re6st
+8
-0
scripts/pcb/0-check-FPGA
scripts/pcb/0-check-FPGA
+0
-0
scripts/pcb/1-patch-FPGA
scripts/pcb/1-patch-FPGA
+0
-0
scripts/pcb/2-upgrade-FPGA
scripts/pcb/2-upgrade-FPGA
+0
-0
No files found.
scripts/6-setup-re6st-slapos
deleted
100755 → 0
View file @
c91b45f2
#!/bin/bash
SLAPOS_CFG_FILE
=
"/etc/opt/slapos/slapos.cfg"
mkdir
-p
/opt/amarisoft/.amarisoft
&&
cp
-r
~/.amarisoft/
*
/opt/amarisoft/.amarisoft/
;
ip
-6
a show dev lo |
grep
"::1/"
|
grep
2001
||
bash /root/re6st
;
stat
$SLAPOS_CFG_FILE
||
slapos node
||
bash /root/slapos
;
grep
-q
"create_tun"
$SLAPOS_CFG_FILE
||
sed
-i
's/create_tap = False/create_tap = False\ncreate_tun = True/g'
$SLAPOS_CFG_FILE
;
sed
-i
's/partition_amount.*/partition_amount = 20/g'
/etc/opt/slapos/slapos.cfg
;
ip l show dev slaptun0
||
slapos node format
--now
;
scripts/7-setup-playbook
deleted
100755 → 0
View file @
c91b45f2
#!/bin/bash
cd
slapos.package/playbook
;
ansible-playbook
-i
hosts ors.yml
;
ansible-playbook
-i
hosts ors-upgrade.yml
scripts/0-setup-hostname-passwd
→
scripts/
ors/
0-setup-hostname-passwd
View file @
448c0ab9
File moved
scripts/1-update
→
scripts/
ors/
1-update
View file @
448c0ab9
File moved
scripts/
5
-get-host-ID
→
scripts/
ors/2
-get-host-ID
View file @
448c0ab9
File moved
scripts/ors/3-setup-playbook
0 → 100755
View file @
448c0ab9
#!/bin/bash
cd
slapos.package/playbook
;
ansible-playbook
-i
hosts ors.yml
;
ansible-playbook
-i
hosts ors-upgrade.yml
;
# Don't run re6st with interface option to avoid networks merging while in Lille Office
CONF
=
"/etc/re6stnet/re6stnet.conf"
IFACE
=
"
$(
ip route |
grep
default |
sed
's/.*dev \(\w*\)\( .*$\|$\)/\1/g'
)
"
sed
-i
'/^interface/d'
$CONF
systemctl restart re6stnet
;
scripts/
8
-configure-root-access
→
scripts/
ors/4
-configure-root-access
View file @
448c0ab9
File moved
scripts/ors/5-configure-re6st
0 → 100755
View file @
448c0ab9
#!/bin/bash
CONF
=
"/etc/re6stnet/re6stnet.conf"
IFACE
=
"
$(
ip route |
grep
default |
sed
's/.*dev \(\w*\)\( .*$\|$\)/\1/g'
)
"
sed
-i
'/^interface/d'
$CONF
echo
"interface
$IFACE
"
>>
$CONF
if
!
ps
-ax
-o
cmd |
grep
babeld |
grep
-q
$IFACE
;
then
systemctl restart re6stnet
;
fi
scripts/
2
-check-FPGA
→
scripts/
pcb/0
-check-FPGA
View file @
448c0ab9
File moved
scripts/
3
-patch-FPGA
→
scripts/
pcb/1
-patch-FPGA
View file @
448c0ab9
File moved
scripts/
4
-upgrade-FPGA
→
scripts/
pcb/2
-upgrade-FPGA
View file @
448c0ab9
File moved
Write
Preview
Markdown
is supported
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