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
14
Merge Requests
14
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
25731c56
Commit
25731c56
authored
Oct 24, 2024
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook/ors: remove network dependent tasks
parent
b973d5c6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
38 deletions
+0
-38
playbook/ors.yml
playbook/ors.yml
+0
-2
playbook/roles/ors/meta/main.yml
playbook/roles/ors/meta/main.yml
+0
-10
playbook/roles/ors/tasks/main.yml
playbook/roles/ors/tasks/main.yml
+0
-26
No files found.
playbook/ors.yml
View file @
25731c56
...
@@ -13,6 +13,4 @@
...
@@ -13,6 +13,4 @@
-
settings/ors.yml
-
settings/ors.yml
roles
:
roles
:
-
generate-key
-
amarisoft-upgrade
-
ors
-
ors
playbook/roles/ors/meta/main.yml
deleted
100644 → 0
View file @
b973d5c6
---
dependencies
:
-
{
role
:
package
,
package_name
:
anacron
,
package_state
:
present
}
-
{
role
:
package
,
package_name
:
patchelf
,
package_state
:
present
}
-
{
role
:
package
,
package_name
:
util-linux
,
package_state
:
present
}
-
{
role
:
package
,
package_name
:
iptables-persistent
,
package_state
:
present
}
-
{
role
:
package
,
package_name
:
iptables
,
package_state
:
present
}
-
{
role
:
package
,
package_name
:
curl
,
package_state
:
present
}
-
{
role
:
package
,
package_name
:
sudo
,
package_state
:
present
}
-
{
role
:
package
,
package_name
:
libsctp-dev
,
package_state
:
present
}
playbook/roles/ors/tasks/main.yml
View file @
25731c56
...
@@ -39,26 +39,6 @@
...
@@ -39,26 +39,6 @@
shell
:
'
cat
/tmp/playbook-report-tmp.log
>>
{{
monitor_path.stdout
}}/playbook-report/report.log'
shell
:
'
cat
/tmp/playbook-report-tmp.log
>>
{{
monitor_path.stdout
}}/playbook-report/report.log'
when
:
(monitor_path is succeeded) and (playbook_report | bool) and (extra_playbook | length > 0)
when
:
(monitor_path is succeeded) and (playbook_report | bool) and (extra_playbook | length > 0)
# SSD image backports
-
stat
:
path=/opt/upgrader/last-backport
register
:
last_backport
-
stat
:
path=/opt/upgrader/playbook-tmp/ors_backport_after
register
:
ors_backport_after
-
shell
:
echo 1 > /opt/upgrader/last-backport
when
:
last_backport.stat.exists == False
-
name
:
Do ors backport
shell
:
ansible-playbook ors-image-backports.yml -i hosts 2>>/opt/upgrader/ors_backport.log >> /opt/upgrader/ors_backport.log
when
:
(ors_backport_after.stat.exists == True) and (lookup('file', '/opt/upgrader/playbook-tmp/ors_backport_after')|int > lookup('file', '/opt/upgrader/last-backport')|int )
args
:
chdir
:
/opt/upgrader/playbook-tmp/
-
shell
:
echo {{ ansible_date_time.epoch }} > /opt/upgrader/last-backport
when
:
(ors_backport_after.stat.exists == True) and (lookup('file', '/opt/upgrader/playbook-tmp/ors_backport_after')|int > lookup('file', '/opt/upgrader/last-backport')|int )
# Radio Hardware
# Radio Hardware
-
name
:
Copy get-sdr-info script
-
name
:
Copy get-sdr-info script
...
@@ -203,12 +183,6 @@
...
@@ -203,12 +183,6 @@
-
name
:
Configure ssh
-
name
:
Configure ssh
lineinfile
:
dest=/etc/ssh/sshd_config regexp="^PasswordAuthentication (.*)" line="PasswordAuthentication yes" state=present
lineinfile
:
dest=/etc/ssh/sshd_config regexp="^PasswordAuthentication (.*)" line="PasswordAuthentication yes" state=present
# Schedule and upgrade playbook
-
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
when
:
launch_upgrader | bool
-
name
:
Add format-ims script to cron after slapos node boot
-
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
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
...
...
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