Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jakub Klinkovský
infrastructure
Commits
006cdc04
Verified
Commit
006cdc04
authored
Aug 23, 2021
by
Evangelos Foutras
🐱
Browse files
Document semi-automated server updates
parent
5ff90378
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
006cdc04
...
...
@@ -128,6 +128,23 @@ The following steps should be used to update our managed servers:
*
checkservices
*
reboot
##### Semi-automated server updates (experimental)
For updating a lot of servers in a more unattended manner, the following
playbook can be used:
ansible-playbook playbooks/tasks/upgrade-servers.yml [-l SUBSET]
It runs
`pacman -Syu`
on the targeted hosts in batches and then reboots them.
If any server fails to reboot successfully, the rolling update stops and
further batches are cancelled. To display the packages updated on each host,
you can pass the
`--diff`
option to ansible-playbook.
Using this update method,
`.pacnew`
files are left unmerged which is OK for
most configuration files that are managed by Ansible. However, care must be
taken with updates that require manual intervention (e.g. major PostgreSQL
releases).
## Servers
This section has been moved to
[
docs/servers.md
](
docs/servers.md
)
.
...
...
Write
Preview
Supports
Markdown
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