-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUILD/MEDIUM: goreleaser: Build apk, rpm and deb packages
Use nFPM to build APK (Alpine), RPM (RHEL/CentOS/Rocky/Alma etc.) and DEB (Ubuntu/Debian) packages. Additionally generate automatic Changelog and provide a sample config for binary archives and packages.
- Loading branch information
Showing
8 changed files
with
71 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[Unit] | ||
Description=HAProxy Data Plane API | ||
After=syslog.target network-online.target | ||
|
||
[Service] | ||
Environment="PIDFILE=/run/dataplaneapi.pid" | ||
EnvironmentFile=/etc/default/dataplaneapi | ||
ExecStart=/usr/sbin/dataplaneapi $SYSD_OPTIONS | ||
ExecReload=/bin/kill -s SIGUSR1 $MAINPID | ||
Type=simple | ||
PIDFile= | ||
GuessMainPID=1 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
dataplaneapi: | ||
host: 0.0.0.0 | ||
port: 5555 | ||
userlist: | ||
userlist: dataplaneapi | ||
resources: | ||
maps_dir: /etc/haproxy/maps | ||
ssl_certs_dir: /etc/haproxy/ssl | ||
general_storage_dir: /etc/haproxy/general | ||
spoe_dir: /etc/haproxy/spoe | ||
transaction: | ||
transaction_dir: /var/lib/dataplaneapi/transactions | ||
backups_number: 10 | ||
backups_dir: /var/lib/dataplaneapi/backups | ||
haproxy: | ||
config_file: /etc/haproxy/haproxy.cfg | ||
haproxy_bin: /usr/sbin/haproxy | ||
reload: | ||
reload_delay: 5 | ||
service_name: haproxy | ||
reload_strategy: systemd | ||
log_targets: | ||
- log_to: file | ||
log_file: /var/log/dataplaneapi.log | ||
log_level: info | ||
log_types: | ||
- access | ||
- app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Options for dataplaneapi | ||
|
||
SYSD_OPTIONS='-f /etc/dataplaneapi/dataplaneapi.yml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/var/log/dataplaneapi.log { | ||
missingok | ||
compress | ||
notifempty | ||
copytruncate | ||
daily | ||
rotate 7 | ||
create 0640 root root | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
|
||
systemctl --system daemon-reload || true | ||
systemctl enable dataplaneapi || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
systemctl --system daemon-reload || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
|
||
systemctl stop dataplaneapi || true | ||
systemctl disable dataplaneapi || true |