choria-io/go-choria

Add support for openSUSE

ananace opened this issue · 2 comments

Since it seems like RedHat is steadily teetering towards a deep dark hole, getting support for openSUSE (and therefore also SLES) would be much appreciated.

As a note, the EL8 RPM can be installed and used on an openSUSE Leap 15.5 system without any issues.

suse-test:/ # lsb_release -a
LSB Version:    n/a
Distributor ID: openSUSE
Description:    openSUSE Leap 15.5
Release:        15.5
Codename:       n/a
suse-test:/ # zypper info choria
Loading repository data...
Reading installed packages...


Information for package choria:
-------------------------------
Repository     : @System
Name           : choria
Version        : 0.27.0-1.el8
Arch           : x86_64
Vendor         : 
Installed Size : 44.6 MiB
Installed      : Yes
Status         : up-to-date
Source package : choria-0.27.0-1.el8.src
Upstream URL   : https://choria.io
Summary        : The Choria Orchestrator Server
Description    : 
    The Choria Orchestrator Server and Broker

    Please visit https://choria.io for more information

suse-test:/ # choria --version
0.27.0

Agree that would be great but not sure it’s something I can do given time constraints happy to help a community member contribute that though.

It’s probably largely a copy/paste effort to add a packager (choria-io/packager) for it and once that is built packaging scripts (packager directory in this repo) along with the needed GitHub actions.

I can have a look at it later, but until then it seems perfectly possible to just use the EL8 repo on openSUSE as a stop-gap measure;

suse-test:/etc/zypp/repos.d # cat choria-release.repo 
[choria-release]
name=Choria Orchestrator Releases
enabled=True
gpgcheck=True
repo_gpgcheck=True
gpgkey=https://choria.io/RELEASE-GPG-KEY
metadata_expire=300
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
sslverify=True
mirrorlist=http://mirrorlists.choria.io/yum/release/el/8/x86_64.txt
suse-test:/etc/zypp/repos.d # zypper install choria
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
  choria

1 new package to install.
Overall download size: 12.9 MiB. Already cached: 0 B. After the operation, additional 44.6 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): 
Retrieving: choria-0.27.0-1.el8.x86_64 (Choria Orchestrator Releases)                                                                                                                                                                                                                                                                                   (1/1),  12.9 MiB    
Retrieving: choria-0.27.0-1.el8.x86_64.rpm ...[done (411.1 KiB/s)]

Checking for file conflicts: ...[done]
(1/1) Installing: choria-0.27.0-1.el8.x86_64 ...[done]
suse-test:/etc/zypp/repos.d # choria --version
0.27.0