Accepting request 954038 from home:ojkastl_buildservice:Branch_devel_kubic

new package teleport: SSH and kubernetes access and lots of other things (not sure if that fits into devel:kubic?)

OBS-URL: https://build.opensuse.org/request/show/954038
OBS-URL: https://build.opensuse.org/package/show/devel:kubic/teleport?expand=0&rev=1
This commit is contained in:
Richard Brown 2022-02-14 13:29:14 +00:00 committed by Git OBS Bridge
commit 9d577f8a72
10 changed files with 233 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

22
_service Normal file
View File

@ -0,0 +1,22 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="url">https://github.com/gravitational/teleport</param>
<param name="scm">git</param>
<param name="submodules">disable</param>
<param name="exclude">.git</param>
<param name="revision">v6.2.28</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="changesgenerate">enable</param>
<param name="versionrewrite-pattern">v(.*)</param>
</service>
<service name="set_version" mode="disabled">
<param name="basename">teleport</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service name="go_modules" mode="disabled">
<param name="archive">teleport-6.2.28.tar.gz</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/gravitational/teleport</param>
<param name="changesrevision">aecb32b912e7c123a7750c40b125af75689ffe61</param></service></servicedata>

3
teleport-6.2.28.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8b471edc086fb950e8812661a4e84879f514f9b02c5a3200626a1863b74d567d
size 52181315

9
teleport.changes Normal file
View File

@ -0,0 +1,9 @@
-------------------------------------------------------------------
Sat Feb 12 20:48:45 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>
- split up into three packages: teleport aka server/daemon, teleport-tctl and teleport-tsh
-------------------------------------------------------------------
Sat Feb 12 08:10:06 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>
- new package teleport: Teleport is an identity-aware, multi-protocol access proxy which understands SSH, HTTPS, RDP, Kubernetes API, MySQL, MongoDB and PostgreSQL wire protocols.

15
teleport.service Normal file
View File

@ -0,0 +1,15 @@
[Unit]
Description=Teleport SSH Service
After=network.target
[Service]
Type=simple
Restart=on-failure
EnvironmentFile=-/etc/default/teleport
ExecStart=/usr/sbin/teleport start --pid-file=/run/teleport.pid
ExecReload=/bin/kill -HUP $MAINPID
PIDFile=/run/teleport.pid
LimitNOFILE=8192
[Install]
WantedBy=multi-user.target

118
teleport.spec Normal file
View File

@ -0,0 +1,118 @@
#
# spec file for package teleport
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define __arch_install_post export NO_BRP_STRIP_DEBUG=true
Name: teleport
Version: 6.2.28
Release: 0
Summary: Identity-aware, multi-protocol access proxy
License: Apache-2.0
URL: https://github.com/gravitational/teleport
Source: %{name}-%{version}.tar.gz
Source1: vendor.tar.gz
Source2: teleport.service
Source3: teleport.yaml
BuildRequires: go >= 1.17
BuildRequires: systemd-rpm-macros
Requires: teleport-tctl
%description
Teleport is the easiest, most secure way to access all your infrastructure. Teleport is an identity-aware, multi-protocol access proxy which understands SSH, HTTPS, RDP, Kubernetes API, MySQL, MongoDB and PostgreSQL wire protocols.
On the server-side, Teleport is a single binary which enables convenient secure access to behind-NAT resources such as:
* SSH nodes - SSH works in browsers too!
* Kubernetes clusters
* PostgreSQL, MongoDB, CockroachDB and MySQL databases
* Internal Web apps
* Windows Hosts
* Networked servers
%package -n teleport-tctl
Summary: CLI tool for managing a teleport server
License: Apache-2.0
%description -n teleport-tctl
An administrative tool that can configure Teleport Auth Service.
%package -n teleport-tsh
Summary: CLI tool for logging into nodes via Teleport SSH
License: Apache-2.0
%description -n teleport-tsh
A tool that lets end users interact with Teleport nodes. This replaces ssh.
%prep
%setup -q
%setup -q -T -D -a 1
%build
go build \
-mod=vendor \
-buildmode=pie \
-ldflags="-X main.VERSION=%{version}" \
-o bin/tsh ./tool/tsh
go build \
-mod=vendor \
-buildmode=pie \
-ldflags="-X main.VERSION=%{version}" \
-o bin/tctl ./tool/tctl
go build \
-mod=vendor \
-buildmode=pie \
-ldflags="-X main.VERSION=%{version}" \
-o bin/teleport ./tool/teleport
%install
# Install the binary.
install -D -m 0755 bin/tsh "%{buildroot}/%{_bindir}/tsh"
install -D -m 0755 bin/tctl "%{buildroot}/%{_bindir}/tctl"
install -D -m 0755 bin/teleport "%{buildroot}/%{_sbindir}/teleport"
install -D -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/teleport.service
install -D -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/teleport.yaml
%pre -n teleport
%service_add_pre teleport.service
%post -n teleport
%service_add_post teleport.service
%preun -n teleport
%service_del_preun teleport.service
%postun -n teleport
%service_del_postun teleport.service
%files -n teleport
%doc README.md
%license LICENSE
%{_sbindir}/teleport
%{_unitdir}/teleport.service
%config(noreplace) %{_sysconfdir}/teleport.yaml
%files -n teleport-tsh
%doc README.md
%license LICENSE
%{_bindir}/tsh
%files -n teleport-tctl
%doc README.md
%license LICENSE
%{_bindir}/tctl
%changelog

35
teleport.yaml Normal file
View File

@ -0,0 +1,35 @@
# Please check the documentation at
# https://goteleport.com/docs/setup/reference/config/
# Sample Teleport configuration file.
# Creates a single proxy, auth and node server.
#
# Things to update:
# 1. license.pem: You only need a license from https://dashboard.goteleport.com
# if you are an Enterprise customer.
#
teleport:
nodename: your-hostname-goes-here
data_dir: /var/lib/teleport
log:
output: stderr
severity: INFO
format:
output: text
ca_pin: ""
auth_service:
enabled: "yes"
listen_addr: 0.0.0.0:3025
ssh_service:
enabled: "yes"
labels:
env: example
commands:
- name: hostname
command: [hostname]
period: 1m0s
proxy_service:
enabled: "yes"
listen_addr: 0.0.0.0:3023
https_keypairs: []
acme: {}

3
vendor.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0b07ae3054859902dcb1d1509d67107b97bfd9388834ae456d9d0cfc5b1f6b03
size 12350435