File tree 8 files changed +71
-4
lines changed
8 files changed +71
-4
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,11 @@ before:
3
3
hooks :
4
4
- go mod download
5
5
- go mod tidy
6
- - make clean
7
- - mkdir build/
8
6
builds :
9
7
-
10
8
id : my-build
11
- main : ./cmd/dataplaneapi/main.go
12
- binary : ./build/ dataplaneapi
9
+ main : ./cmd/dataplaneapi
10
+ binary : dataplaneapi
13
11
ldflags :
14
12
- -s -w -X main.GitRepo={{.GitURL}} -X main.GitTag={{.Tag}} -X main.GitCommit={{.ShortCommit}} -X main.GitDirty= -X main.BuildTime={{.Date}}
15
13
env :
@@ -25,6 +23,9 @@ builds:
25
23
- arm64
26
24
- ppc64le
27
25
- s390x
26
+ changelog :
27
+ sort : asc
28
+ use : git
28
29
archives :
29
30
-
30
31
id : my-archive
Original file line number Diff line number Diff line change
1
+ [Unit]
2
+ Description =HAProxy Data Plane API
3
+ After =syslog.target network-online.target
4
+
5
+ [Service]
6
+ Environment ="PIDFILE=/run/dataplaneapi.pid"
7
+ EnvironmentFile =/etc/default/dataplaneapi
8
+ ExecStart =/usr/sbin/dataplaneapi $SYSD_OPTIONS
9
+ ExecReload =/bin/kill -s SIGUSR1 $MAINPID
10
+ Type =simple
11
+ PIDFile =
12
+ GuessMainPID =1
13
+
14
+ [Install]
15
+ WantedBy =multi-user.target
Original file line number Diff line number Diff line change
1
+ dataplaneapi:
2
+ host: 0.0.0.0
3
+ port: 5555
4
+ userlist:
5
+ userlist: dataplaneapi
6
+ resources:
7
+ maps_dir: /etc/haproxy/maps
8
+ ssl_certs_dir: /etc/haproxy/ssl
9
+ general_storage_dir: /etc/haproxy/general
10
+ spoe_dir: /etc/haproxy/spoe
11
+ transaction:
12
+ transaction_dir: /var/lib/dataplaneapi/transactions
13
+ backups_number: 10
14
+ backups_dir: /var/lib/dataplaneapi/backups
15
+ haproxy:
16
+ config_file: /etc/haproxy/haproxy.cfg
17
+ haproxy_bin: /usr/sbin/haproxy
18
+ reload:
19
+ reload_delay: 5
20
+ service_name: haproxy
21
+ reload_strategy: systemd
22
+ log_targets:
23
+ - log_to: file
24
+ log_file: /var/log/dataplaneapi.log
25
+ log_level: info
26
+ log_types:
27
+ - access
28
+ - app
Original file line number Diff line number Diff line change
1
+ # Options for dataplaneapi
2
+
3
+ SYSD_OPTIONS='-f /etc/dataplaneapi/dataplaneapi.yml'
Original file line number Diff line number Diff line change
1
+ /var/log/dataplaneapi.log {
2
+ missingok
3
+ compress
4
+ notifempty
5
+ copytruncate
6
+ daily
7
+ rotate 7
8
+ create 0640 root root
9
+ }
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ systemctl --system daemon-reload || true
4
+ systemctl enable dataplaneapi || true
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ systemctl --system daemon-reload || true
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ systemctl stop dataplaneapi || true
4
+ systemctl disable dataplaneapi || true
You can’t perform that action at this time.
0 commit comments