Skip to content

Commit

Permalink
update shipyard config to support rockylinux
Browse files Browse the repository at this point in the history
  • Loading branch information
shipyard committed Sep 25, 2023
1 parent ae7e38e commit 257febe
Showing 1 changed file with 130 additions and 0 deletions.
130 changes: 130 additions & 0 deletions .shipyard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,136 @@ package:
- /usr/lib/systemd/system/kazoo-haproxy.service
url: 'http://www.2600hz.org'
vendor: 2600Hz
rockylinux8:
name: kazoo-configs-haproxy
group: Productivity/Telephony
license: MPL1.1
build_arch: noarch
build_requires:
- rpm-build
summary: 'Kazoo specific configuration for HAProxy'
description: |
The Kazoo platform uses HAProxy primarily to proxy connetcions
to the database servers to ensure they are always reachable as
well as load balance. It is also used to proxy API, websockets
and other services into Kazoo. This package is the minimal
configuration to ensure there are no single points of failure.
If you need help you can contact us via the dev mailing
list or on IRC at #2600hz on FreeNode.
dist: .el8
requires:
sudo: { }
source: '%{_build_tar}'
prep: '%setup -q'
install: |
mkdir -p %{buildroot}/etc/kazoo
cp -r haproxy %{buildroot}/etc/kazoo
cp CHANGELOG VERSION %{buildroot}/etc/kazoo/haproxy
mkdir -p %{buildroot}/usr/sbin
cp -r system/sbin/* %{buildroot}/usr/sbin
chmod +x %{buildroot}/usr/sbin/*
mkdir -p %{buildroot}/etc/rsyslog.d
rm -rf system/rsyslog.d/1-default-config-override.conf
rm -rf system/rsyslog.d/5-rate-limits.conf
cp -r system/rsyslog.d/*.conf %{buildroot}/etc/rsyslog.d
mkdir -p %{buildroot}/etc/logrotate.d
cp -r system/logrotate.d/*.conf %{buildroot}/etc/logrotate.d
mkdir -p %{buildroot}/etc/security/limits.d
cp -r system/security/limits.d/*.conf %{buildroot}/etc/security/limits.d
mkdir -p %{buildroot}/usr/lib/systemd/system
cp system/systemd/* %{buildroot}/usr/lib/systemd/system
files:
doc:
- CHANGELOG
- VERSION
config:
-
mode: noreplace
path: /etc/kazoo/haproxy
-
mode: noreplace
path: '/etc/rsyslog.d/*haproxy*'
-
mode: noreplace
path: '/etc/logrotate.d/*haproxy*'
-
mode: noreplace
path: '/etc/security/limits.d/*haproxy*'
path:
- /usr/sbin/kazoo-haproxy
- /usr/lib/systemd/system/kazoo-haproxy.service
url: 'http://www.2600hz.org'
vendor: 2600Hz
rockylinux9:
name: kazoo-configs-haproxy
group: Productivity/Telephony
license: MPL1.1
build_arch: noarch
build_requires:
- rpm-build
summary: 'Kazoo specific configuration for HAProxy'
description: |
The Kazoo platform uses HAProxy primarily to proxy connetcions
to the database servers to ensure they are always reachable as
well as load balance. It is also used to proxy API, websockets
and other services into Kazoo. This package is the minimal
configuration to ensure there are no single points of failure.
If you need help you can contact us via the dev mailing
list or on IRC at #2600hz on FreeNode.
dist: .el9
requires:
sudo: { }
source: '%{_build_tar}'
prep: '%setup -q'
install: |
mkdir -p %{buildroot}/etc/kazoo
cp -r haproxy %{buildroot}/etc/kazoo
cp CHANGELOG VERSION %{buildroot}/etc/kazoo/haproxy
mkdir -p %{buildroot}/usr/sbin
cp -r system/sbin/* %{buildroot}/usr/sbin
chmod +x %{buildroot}/usr/sbin/*
mkdir -p %{buildroot}/etc/rsyslog.d
rm -rf system/rsyslog.d/1-default-config-override.conf
rm -rf system/rsyslog.d/5-rate-limits.conf
cp -r system/rsyslog.d/*.conf %{buildroot}/etc/rsyslog.d
mkdir -p %{buildroot}/etc/logrotate.d
cp -r system/logrotate.d/*.conf %{buildroot}/etc/logrotate.d
mkdir -p %{buildroot}/etc/security/limits.d
cp -r system/security/limits.d/*.conf %{buildroot}/etc/security/limits.d
mkdir -p %{buildroot}/usr/lib/systemd/system
cp system/systemd/* %{buildroot}/usr/lib/systemd/system
files:
doc:
- CHANGELOG
- VERSION
config:
-
mode: noreplace
path: /etc/kazoo/haproxy
-
mode: noreplace
path: '/etc/rsyslog.d/*haproxy*'
-
mode: noreplace
path: '/etc/logrotate.d/*haproxy*'
-
mode: noreplace
path: '/etc/security/limits.d/*haproxy*'
path:
- /usr/sbin/kazoo-haproxy
- /usr/lib/systemd/system/kazoo-haproxy.service
url: 'http://www.2600hz.org'
vendor: 2600Hz
metapackage:
-
name: meta-kazoo-haproxy
Expand Down

0 comments on commit 257febe

Please sign in to comment.