dianagudu / motley_cue

A service for mapping OIDC identities to local identities, with local user management
https://motley-cue.readthedocs.io/
MIT License
8 stars 3 forks source link

add opensuse-15.2 and opensuse_tumbleweed #19

Closed marcvs closed 3 years ago

marcvs commented 3 years ago

:)

marcvs commented 3 years ago

Now I should be done here.

dianagudu commented 3 years ago

So far, tested on:

marcvs commented 3 years ago

So far, tested on:

* opensuse 15.2: works (after updating running requirements in [cbe02bf](https://github.com/dianagudu/motley_cue/commit/cbe02bfa21b078af2cb838109f339fbad3a49440))

* opensuse tumbleweed: python links not fully adjusted:

  * on install: `Package was packed for python3.8 adjusting symlinks for installed python3.7`
  * lib folder link adjusted: `/usr/lib/motley-cue/lib/python3.7 -> /usr/lib/motley-cue/lib/python3.8`
  * however, python executable still points to different version not present on the system:
    ` /usr/lib/motley-cue/bin/python -> /usr/bin/python3.8`

Strange. This is how it looks for me:

root@susetw:~# rpm -i motley-cue-0.1.1-1.x86_64.rpm 
For loop: PYTHONDIR: python3.8
PKG_PYTHONDIR: python3.8
/var/tmp/rpm-tmp.nqqr2h: line 35: semodule: command not found
/var/tmp/rpm-tmp.nqqr2h: line 36: semodule: command not found
/var/tmp/rpm-tmp.nqqr2h: line 37: semodule: command not found
/var/tmp/rpm-tmp.nqqr2h: line 38: setsebool: command not found
Created symlink /etc/systemd/system/multi-user.target.wants/motley-cue.service → /lib/systemd/system/motley-cue.service.
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /usr/lib/systemd/system/nginx.service.
root@susetw:~# cd /usr/lib/motley-cue/lib
root@susetw:/usr/lib/motley-cue/lib# ls
python3.8/
root@susetw:/usr/lib/motley-cue/lib# cd ../bin/
root@susetw:/usr/lib/motley-cue/bin# ls -l python*
lrwxrwxrwx 1 root root 18 May 12 13:57 python -> /usr/bin/python3.8*
lrwxrwxrwx 1 root root  6 May 12 13:57 python3 -> python*
lrwxrwxrwx 1 root root  6 May 12 13:57 python3.8 -> python*

I.e. I'll have to remove the selinux commands and then should be fine.

marcvs commented 3 years ago

Please retry with this rpm: http://marcus.hardt-it.de/motley-cue-0.1.1-1.x86_64.rpm

dianagudu commented 3 years ago

It works now. It was actually an issue with the image I used for the VM and not properly updating via zypper dup, so my python version was 3.7.

marcvs commented 3 years ago

Ok; So this one can be merged.

I got comments on pam-ssh-oidc that I'll fix.

RPM build will see fundamental changes, but I'll develop them on pam-ssh-oidc first