this post was submitted on 12 Jun 2023
2 points (100.0% liked)

Linux

48136 readers
613 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Hey all, this might be a simple one but I have around 8 LXC Alpine Linux containers running various services. I like to keep my servers up to date but as you can imagine, sshing into 8 servers and running the update and upgrade commands can be cumbersome as well as each machine has to redownload the same packages again and again over and over.

So I guess my questions are:

  1. What is the best way to update and upgrade all 8 servers at the same time?

  2. Is there any way I can run a package cache server so I can point all 8 servers to a single server so I only need to download the packages once?

top 2 comments
sorted by: hot top controversial new old
[–] pixelblut@feddit.de 1 points 1 year ago

For the updating procedure you can use Ansible. https://docs.ansible.com/ansible/latest/collections/community/general/apk_module.html And for caching packages you could set up a local mirror, cache the via squid, etc.

[–] jlh@lemmy.jlh.name 1 points 1 year ago* (last edited 1 year ago)
  1. Yes, Ansible would work for this. See the apk module. https://docs.ansible.com/ansible/latest/collections/community/general/apk_module.html

  2. Yes, you could run a caching HTTP proxy, or your own mirror and set your VMs to use it.

I would recommend looking into docker and/or Kubernetes, though. It would solve these problems in a much more automated way.

load more comments
view more: next ›