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
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.package
Commits
d12c5598
Commit
d12c5598
authored
May 17, 2024
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook/ors: add format-ims script to slapos-node cron
parent
df112dcc
Pipeline
#35022
failed with stage
in 0 seconds
Changes
3
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
332 additions
and
1 deletion
+332
-1
playbook/roles/ors/files/format-ims
playbook/roles/ors/files/format-ims
+313
-0
playbook/roles/ors/tasks/main.yml
playbook/roles/ors/tasks/main.yml
+18
-0
playbook/sha256sum
playbook/sha256sum
+1
-1
No files found.
playbook/roles/ors/files/format-ims
0 → 100755
View file @
d12c5598
This diff is collapsed.
Click to expand it.
playbook/roles/ors/tasks/main.yml
View file @
d12c5598
...
@@ -80,6 +80,9 @@
...
@@ -80,6 +80,9 @@
-
name
:
Configure slapos
-
name
:
Configure slapos
script
:
configure-slapos.py
script
:
configure-slapos.py
-
name
:
Copy format-ims script
copy
:
src=format-ims dest=/opt/amarisoft owner=root mode=770
# Amarisoft software
# Amarisoft software
-
name
:
Create a directory if it does not exist
-
name
:
Create a directory if it does not exist
...
@@ -119,6 +122,15 @@
...
@@ -119,6 +122,15 @@
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'
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
when
:
lteenb_avx2_cap.rc !=
0
-
name
:
Check if lteims has capabilities
shell
:
'
getcap
{{
amarisoft_path.stdout
}}/mme/lteims
|
grep
cap_sys_admin
|
grep
-q
cap_net_raw'
ignore_errors
:
yes
register
:
lteims_cap
-
name
:
Set capabilities on lteims
shell
:
'
patchelf
--set-rpath
{{
amarisoft_path.stdout
}}/mme
{{
amarisoft_path.stdout
}}/mme/lteims
&&
setcap
cap_sys_admin,cap_net_raw=+pe
{{
amarisoft_path.stdout
}}/mme/lteims'
when
:
lteims_cap.rc !=
0
-
name
:
Create .amarisoft directory for SR
-
name
:
Create .amarisoft directory for SR
file
:
path=/opt/amarisoft/.amarisoft state=directory
file
:
path=/opt/amarisoft/.amarisoft state=directory
...
@@ -181,3 +193,9 @@
...
@@ -181,3 +193,9 @@
-
name
:
Install upgrader
-
name
:
Install upgrader
shell
:
ansible-playbook upgrader-run.yml --extra-vars 'extra_playbook={{ extra_playbook }} upgrader_playbook={{ upgrader_playbook }} repeat_until_success={{ repeat_until_success }} upgrade_kernel={{ upgrade_kernel | default(False) == True }} playbook_report={{ playbook_report }}' -i hosts 2>>/opt/upgrader/latest_daily_upgrade.log >> /opt/upgrader/latest_daily_upgrade.log
shell
:
ansible-playbook upgrader-run.yml --extra-vars 'extra_playbook={{ extra_playbook }} upgrader_playbook={{ upgrader_playbook }} repeat_until_success={{ repeat_until_success }} upgrade_kernel={{ upgrade_kernel | default(False) == True }} playbook_report={{ playbook_report }}' -i hosts 2>>/opt/upgrader/latest_daily_upgrade.log >> /opt/upgrader/latest_daily_upgrade.log
when
:
launch_upgrader | bool
when
:
launch_upgrader | bool
-
name
:
Add format-ims script to cron after slapos node boot
lineinfile
:
dest=/etc/cron.d/slapos-node regexp="@reboot root /opt/slapos/bin/slapos node boot(.*)" line="@reboot root /opt/slapos/bin/slapos node boot >> /opt/slapos/log/slapos-node-format.log 2>&1 ; /opt/amarisoft/format-ims /opt/amarisoft/format-ims.log" state=present
-
name
:
Add format-ims script to cron after slapos node format
lineinfile
:
dest=/etc/cron.d/slapos-node regexp="(.*)root /opt/slapos/bin/slapos node format(.*)" line="0 * * * * root /opt/slapos/bin/slapos node format >> /opt/slapos/log/slapos-node-format.log 2>&1 ; /opt/amarisoft/format-ims /opt/amarisoft/format-ims.log" state=present
playbook/sha256sum
View file @
d12c5598
5d6641cdfdfabe72068368d0fcfb7d8e6f826535a768806b9296f980f578b0aa
-
3eeaea021f937c8e85b08ddc6e49f8205d5878dd25b3dfd600ebc0c2da8baf7c
-
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