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
Carlos Ramos Carreño
slapos.package
Commits
48788f43
Commit
48788f43
authored
Oct 10, 2023
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
!fixup playbook/ors: fix for ORS upgrading from older playbooks
parent
33850094
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
playbook/roles/ors-image-backports/tasks/main.yml
playbook/roles/ors-image-backports/tasks/main.yml
+14
-0
playbook/roles/ors/tasks/main.yml
playbook/roles/ors/tasks/main.yml
+0
-14
playbook/sha256sum
playbook/sha256sum
+1
-1
No files found.
playbook/roles/ors-image-backports/tasks/main.yml
View file @
48788f43
---
---
# Needed for ORS upgrading from older playbooks
-
name
:
Check if anacron is installed
shell
:
'
which
anacron'
register
:
anacron_present
ignore_errors
:
yes
-
name
:
Run ORS playbook in case anacron is not installed
shell
:
ansible-playbook ors.yml -i hosts 2>> /opt/upgrader/latest_ors.log >> /opt/upgrader/latest_ors.log
ignore_errors
:
yes
when
:
anacron_present.rc !=
0
args
:
chdir
:
/opt/upgrader/playbook-tmp/
# Set cron to repeat ors-image-backports in case someone unplugs the ORS while this playbook is running
# Set cron to repeat ors-image-backports in case someone unplugs the ORS while this playbook is running
-
name
:
Set Cron to repeat until success
-
name
:
Set Cron to repeat until success
...
...
playbook/roles/ors/tasks/main.yml
View file @
48788f43
...
@@ -3,20 +3,6 @@
...
@@ -3,20 +3,6 @@
-
name
:
Create /opt/upgrader where some logs will be stored
-
name
:
Create /opt/upgrader where some logs will be stored
file
:
path=/opt/upgrader state=directory mode=0755
file
:
path=/opt/upgrader state=directory mode=0755
# Needed for ORS upgrading from older playbooks
-
name
:
Check if anacron is installed
shell
:
'
which
anacron'
register
:
anacron_present
ignore_errors
:
yes
-
name
:
Run ORS playbook in case anacron is not installed
shell
:
ansible-playbook ors.yml -i hosts 2>> /opt/upgrader/latest_ors.log >> /opt/upgrader/latest_ors.log
ignore_errors
:
yes
when
:
lteenb_cap.rc !=
0
args
:
chdir
:
/opt/upgrader/playbook-tmp/
# SSD image backports
# SSD image backports
-
stat
:
path=/opt/upgrader/last-backport
-
stat
:
path=/opt/upgrader/last-backport
...
...
playbook/sha256sum
View file @
48788f43
a9064532e0ffbb2cae77dfca4554b4d83b8267a36781297fc1b3d8972829adef
-
bc63e494fbfcc644fa19d6665f3448f024e7721f6d93600e5765a7eabdb6cda8
-
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