Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
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
Ophélie Gagnard
slapos.package
Commits
267be70d
Commit
267be70d
authored
Oct 06, 2022
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbooy/ors: add capabilities to lteenb and lteenb-avx2
parent
6bfd0600
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
playbook/roles/ors/meta/main.yml
playbook/roles/ors/meta/main.yml
+3
-0
playbook/roles/ors/tasks/main.yml
playbook/roles/ors/tasks/main.yml
+23
-0
No files found.
playbook/roles/ors/meta/main.yml
0 → 100644
View file @
267be70d
---
dependencies
:
-
{
role
:
package
,
package_name
:
patchelf
,
package_state
:
present
}
playbook/roles/ors/tasks/main.yml
View file @
267be70d
...
...
@@ -73,6 +73,29 @@
systemd
:
name=init-sdr enabled=no
when
:
init_sdr_service.stat.exists
-
name
:
Get Amarisoft path
shell
:
'
find
/opt/amarisoft
-maxdepth
1
|
grep
"^/opt/amarisoft/v[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}$"
|
sort
|
tail
-n1'
register
:
amarisoft_path
when
:
opt_amarisoft.stat.exists
-
name
:
Check if lteenb has capabilities
shell
:
'
getcap
{{
amarisoft_path.stdout
}}/enb/lteenb
|
grep
-q
cap_sys_nice'
ignore_errors
:
yes
register
:
lteenb_cap
-
name
:
Set capabilities on lteenb
shell
:
'
patchelf
--set-rpath
{{
amarisoft_path.stdout
}}/enb
{{
amarisoft_path.stdout
}}/enb/lteenb
&&
setcap
cap_sys_nice=+pe
{{
amarisoft_path.stdout
}}/enb/lteenb'
when
:
lteenb_cap.rc !=
0
-
name
:
Check if lteenb-avx2 has capabilities
shell
:
'
getcap
{{
amarisoft_path.stdout
}}/enb/lteenb-avx2
|
grep
-q
cap_sys_nice'
ignore_errors
:
yes
register
:
lteenb_avx2_cap
-
name
:
Set capabilities on lteenb-avx2
shell
:
'
patchelf
--set-rpath
{{
amarisoft_path.stdout
}}/enb
{{
amarisoft_path.stdout
}}/enb/lteenb-avx2
&&
setcap
cap_sys_nice=+pe
{{
amarisoft_path.stdout
}}/enb/lteenb-avx2'
when
:
lteenb_avx2_cap.rc !=
0
-
name
:
Configure re6st
script
:
configure-re6st
...
...
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