pigsty icon indicating copy to clipboard operation
pigsty copied to clipboard

Ubuntu 22.04 LTS Support

Open zyf2019 opened this issue 4 years ago • 3 comments
trafficstars

zyf2019 avatar Aug 02 '21 01:08 zyf2019

As the document describes: It only support CentOS 7.x and equivalent OS. Supporting other Linux distribution is not our highest priority for now. To support ubuntu, One has to replace all rpm with deb and refactor ansible role repo and node_pkgs contribution for this is always welcome~.

Vonng avatar Aug 12 '21 06:08 Vonng

好,我能做些什么工作:1 所有 rpm 替换为 deb 应该是问题不大,需要您提供下 rpm列表。至于之后需要做什么,我可以边学习边做。

zyf2019 avatar Aug 12 '21 08:08 zyf2019

个人认为改发行版意义不大,甚至可以锁定发行版和版本。既然人工登陆修改配置是不推荐的,那什么发行版环境又有什么关系? In my opinion, changing the distro is of little significance, and we can even lock the distro and version. Since manual login to modify the configuration is not encouraged, what bother changing to a different distro?

inntran avatar Aug 11 '22 20:08 inntran

Is Ubuntu supported yet? If not, I'd like to help. I'm looking to run Pigsty on Oracle Cloud Ampere Servers (arm64) They don't support CentOS. This is a great project. Cheers, Dave

kubeworkz avatar Oct 22 '22 01:10 kubeworkz

Is Ubuntu supported yet? If not, I'd like to help. I'm looking to run Pigsty on Oracle Cloud Ampere Servers (arm64) They don't support CentOS. This is a great project. Cheers, Dave

Pigsty now does not support arm & Debian/ubuntu either. It now works on EL7,8,9 and its compatible release.

Adding arm support to EL series cloud be easier since only repo & RPMs are involved. Debian/Ubuntu supported would be much more difficult since there's quite a huge difference between Debian & EL:

  • Build deb repo, find mirrors, build missing deb
  • Refactor node role to adjust Debian/Ubuntu node into the described status
  • Make infra components grafana,prometheus,consul,etcd work on it.
  • make pgsql,patroni,pgbouncer,haproxy,vip-manager work on debian/ubuntu.

Contributions are always welcome ~. Please let know if you are interested.

Vonng avatar Oct 23 '22 02:10 Vonng

Thanks for the reply. I was wondering if alien might help. It's a Ubuntu tool to convert .rpms to .deb format. Sure, it would be great to maybe try arm64 first. The idea is to take advantage of Oracle Cloud free tier, it's quite generous. 6cpu cores / 24Gb ram. I'm one of the founders of Saasrocks and we're looking for a good postgres backend to run our Saas service. (K8s not required)

kubeworkz avatar Oct 23 '22 02:10 kubeworkz

Isn't Oracle Linux available on Oracle Cloud?

inntran avatar Oct 23 '22 02:10 inntran

I'll see if it's available on Ampere Servers..

update: Yes, Oracle Linux 6.10 / 7.9 / 8 / 9 run on Ampere Servers - will that be OK?

kubeworkz avatar Oct 23 '22 02:10 kubeworkz

Use Oracle Linux 8 should be fine. It's a rebuild from RHEL source.

inntran avatar Oct 23 '22 02:10 inntran

Ah, perfect. Thanks so much! I'll give it a try and let you know how it goes.

kubeworkz avatar Oct 23 '22 02:10 kubeworkz

So all we really need to is setup arm64 support. If you could let me know what needs to be changed I can do it if you like. I've got my instances setup at Oracle Cloud.

quick question: Can I use https?

Cheers, Dave

kubeworkz avatar Oct 23 '22 15:10 kubeworkz

y instances setup at Oracle Cloud.

maybe arm version can be supported as simple as replacing all x86_64 to aarch64. but it require further testing.

SSL for postgres/pgbouncer/patroni/etcd/consul are added in v1.6.0 but not for nginx yet. Since you may have your own idea of applying & managing a real SSL certs rather than using a self-signed CA cert.

Vonng avatar Oct 25 '22 03:10 Vonng

Thanks for the info. I'll be using Letsencrypt to generate certs.

kubeworkz avatar Oct 28 '22 00:10 kubeworkz

Ubuntu/Debian TODO LIST

  • [x] install
    • [x] bootstrap
    • [x] configure
  • [x] API
    • [x] repo_upstream
    • [x] repo_packages
  • [x] node
    • [x] node-id
    • [x] tuned
    • [x] chrony
    • [x] dns
    • [x] haproxy
    • [x] docker
    • [x] etc...
  • [x] infra
    • [x] local apt repo setup
    • [x] nginx
    • [x] dnsmasq
    • [x] grafana
    • [x] loki
    • [x] prometheus stack
  • [x] etcd
  • [x] minio
  • [x] mongo
  • [x] redis
  • [x] pgsql
    • [x] pg16
    • [x] pg15
    • [x] pg misc: patroni, pgbouncer, pgbackrest, pgbadger, pg_exporter, vip-manager2
    • [x] misc extensions

Vonng avatar Sep 29 '23 09:09 Vonng

Ubuntu 20.04 & 22.04 is supported, will be released in v2.5.0

Vonng avatar Oct 17 '23 06:10 Vonng