-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Pascal Arlt <[email protected]>
- Loading branch information
Showing
12 changed files
with
105 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Remove reboot from uptodate state, introduce reboot and rebootifneeded states |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
schema/spacewalk/susemanager-schema.changes.parlt.split-uptodate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Remove reboot from uptodate state, introduce reboot and rebootifneeded states |
14 changes: 14 additions & 0 deletions
14
...pgrade/susemanager-schema-5.0.7-to-susemanager-schema-5.0.8/100-split-updtodate-state.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
INSERT INTO suseInternalState (id, name, label) | ||
SELECT 13, 'reboot', 'Reboot system' | ||
WHERE NOT EXISTS ( | ||
SELECT 1 FROM suseInternalState | ||
WHERE id = 13 | ||
); | ||
|
||
INSERT INTO suseInternalState (id, name, label) | ||
SELECT 14, 'rebootifneeded', 'Reboot system if needed' | ||
WHERE NOT EXISTS ( | ||
SELECT 1 FROM suseInternalState | ||
WHERE id = 14 | ||
); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
mgr_reboot: | ||
cmd.run: | ||
- name: shutdown -r +5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{%- if salt['pillar.get']('mgr_reboot_if_needed', True) and salt['pillar.get']('custom_info:mgr_reboot_if_needed', 'true')|lower in ('true', '1', 'yes', 't') %} | ||
mgr_reboot_if_needed: | ||
cmd.run: | ||
- name: shutdown -r +5 | ||
{%- if grains['os_family'] == 'RedHat' and grains['osmajorrelease'] >= 8 %} | ||
- onlyif: 'dnf -q needs-restarting -r; [ $? -eq 1 ]' | ||
{%- elif grains['os_family'] == 'RedHat' and grains['osmajorrelease'] >= 7 %} | ||
- onlyif: 'needs-restarting -r; [ $? -eq 1 ]' | ||
{%- elif grains['os_family'] == 'Debian' %} | ||
- onlyif: | ||
- test -e /var/run/reboot-required | ||
{%- elif grains['os_family'] == 'Suse' and grains['osmajorrelease'] <= 12 %} | ||
- onlyif: | ||
- test -e /boot/do_purge_kernels | ||
{%- else %} | ||
- onlyif: 'zypper ps -s; [ $? -eq 102 ] || [ {{ patch_need_reboot }} -eq 0 ]' | ||
{%- endif %} | ||
{%- endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
susemanager-utils/susemanager-sls/susemanager-sls.changes.parlt.split-uptodate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Remove reboot from uptodate state, introduce reboot and rebootifneeded states | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Remove reboot from uptodate state, introduce reboot and rebootifneeded states |