Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,24 @@ sboms:
documents:
- '${artifact}.spdx.json'

nfpms:
- package_name: pgedge-control-plane
vendor: pgEdge
homepage: https://www.pgedge.com
maintainer: pgEdge Support <support@pgedge.com>
description: pgEdge Control Plane
license: PostgreSQL License
formats:
- rpm
bindir: /usr/sbin
contents:
- src: packaging/pgedge-control-plane.service
dst: /usr/lib/systemd/system/pgedge-control-plane.service
type: config
- src: packaging/config.json
dst: /etc/pgedge-control-plane/config.json
type: config|noreplace

release:
github:
owner: pgEdge
Expand Down
4 changes: 4 additions & 0 deletions packaging/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"orchestrator": "systemd",
"data_dir": "/var/lib/pgedge-control-plane"
}
16 changes: 16 additions & 0 deletions packaging/pgedge-control-plane.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[Unit]
Description=pgEdge Control Plane
Documentation=https://docs.pgedge.com
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
ExecStart=/usr/sbin/pgedge-control-plane run --config-path /etc/pgedge-control-plane/config.json
Restart=on-failure
RestartSec=5s
StateDirectory=pgedge-control-plane
ConfigurationDirectory=pgedge-control-plane

[Install]
WantedBy=multi-user.target