Wez Furlong
278bc81aa0
move shaping -> policy-extras/shaping, and deploy with package
...
The assets/policy-extras dir is now deployed to
`/opt/kumomta/share/policy-extras` and added to the require path,
so you can do:
```lua
local shaping = require 'policy-extras.shaping'
```
to pull it into your policy.
2023-04-26 14:51:52 -07:00
Wez Furlong
b66d33b268
shaping: detect and error out when ambiguous rollups are detected
...
If multiple domains resolve to the same site name, capture the
list and report it, then generate an error.
The operator needs to fix conflicting rollups in order for the
system to behave sanely.
Fix merging in default values
2023-04-25 15:58:17 -07:00
Wez Furlong
1e628778d7
shaping: layer all of them in a reasonable order
2023-04-25 15:04:57 -07:00
Wez Furlong
767ccef87f
shaping.lua: swap precedence of domain vs. site
2023-04-25 14:59:05 -07:00
Wez Furlong
8f0e60f397
shaping.lua: make mx_rollup default to true
2023-04-25 14:50:36 -07:00
Wez Furlong
b974f37a15
shaping: resolve ambiguity with prohibited_hosts, add default entry
2023-04-25 14:21:16 -07:00
Wez Furlong
4b9fe008a9
add shaping.lua
...
This is not its final home; this is here while we play with it
and eventually move it to the right place and package it up.
2023-04-25 13:46:13 -07:00
Wez Furlong
3d38fb45c5
add tailer to rpm
2023-04-21 09:41:13 -07:00
Wez Furlong
dfeae5ad4f
postinstall: copy minimal-init.lua -> init.lua
...
If they don't already have a policy defined, copy the basic
one into place so that the service can start and they have
a starting point which they can customize
2023-04-13 09:53:12 -07:00
Wez Furlong
09dcd59473
move minimal init.lua to assets dir, include that in docs
2023-04-13 09:44:07 -07:00
Wez Furlong
73a658ac3d
update centos7 repo URLs, enable stable
2023-03-31 12:37:04 -07:00
Wez Furlong
35271e0a47
normalize centos 7 rpm repo name
...
This brings it in alignment with the other repos
2023-03-31 12:09:47 -07:00
Wez Furlong
3148934d94
enable stable rpm repo for rocky
2023-03-31 11:14:26 -07:00
Wez Furlong
d71e0070a6
ci: update centos7 and ubuntu for tagging
2023-03-30 07:52:20 -07:00
Wez Furlong
2764149669
Add script for cutting a release tag
2023-03-30 07:48:49 -07:00
Wez Furlong
f35d208bd6
ci: maybe publish the right bits to the right place on tag
2023-03-30 07:15:49 -07:00
Wez Furlong
0d431d1f8c
Take another run at rpm systemd stuff
...
Not all platforms have the rpmbuild macros, let's just try
inlining the equivalent steps.
This may require manually reloading and registering systemd
on older systems (centos7).
2023-03-29 17:28:03 -07:00
Wez Furlong
29145124d7
maybe fixup rocky rpm systemd bits
2023-03-29 16:59:31 -07:00
Wez Furlong
6db2cb5730
maybe fixup centos7 rpm build
2023-03-29 10:43:25 -07:00
Wez Furlong
a029b44d1c
add systemd service to .deb
2023-03-29 09:23:45 -07:00
Wez Furlong
b199db75c8
don't actually need systemd to build the rpm
2023-03-29 09:19:45 -07:00
Wez Furlong
10a5c7c37f
add systemd service to the rpm
2023-03-29 07:03:16 -07:00
Wez Furlong
8f320babeb
update for org rename
2023-03-28 16:47:50 -07:00
Wez Furlong
308b581a83
fixup etc dir permissions in packaging
2023-03-24 11:52:14 -07:00
Wez Furlong
74e868883b
make similar adjustment to rpm version number
2023-03-22 11:53:17 -07:00
Wez Furlong
21f50d79fd
adjust deb version number some more
...
allows multiple versions per day to disambiguated
2023-03-22 11:51:21 -07:00
Wez Furlong
8f9f8201d7
fixup deb package version number
2023-03-22 11:39:01 -07:00
Wez Furlong
e1704da369
fix deb preinst script
2023-03-22 11:25:14 -07:00
Wez Furlong
0e8b353ea1
pre-create some etc dirs as well
2023-03-21 13:33:22 -07:00
Wez Furlong
17a3e664dc
create spool and log directories during install
2023-03-20 14:13:22 -07:00
Wez Furlong
2d5fe38aba
create kumod user during rpm and deb install
...
I haven't tested the deb stuff explicitly, will see what
happens when it makes it through CI
2023-03-20 13:45:57 -07:00
Wez Furlong
7486e4a949
fix enabled=0 line in .repo files
...
It doesn't like the comment on the same line, it seems
2023-03-14 15:22:13 -07:00
Wez Furlong
bddc80c395
fixup build-deb.sh
2023-03-14 13:54:35 -07:00
Wez Furlong
7db130102a
rpm/deb: install to /opt/kumomta, include bounce classifications
2023-03-14 13:08:22 -07:00
Wez Furlong
7ee9e43be2
upload-package: remove --fail-with-body
...
the version of curl on ubuntu 20.04 doesn't recognize it
2023-03-14 10:24:02 -07:00
Wez Furlong
2e00292771
simply deb install very slightly
2023-03-13 23:47:29 -07:00
Wez Furlong
ad978adddc
simplify rpm repo install info
2023-03-13 23:23:19 -07:00
Wez Furlong
4ede25329c
docs: use public URLs for repo definitions
...
add ubuntu sources.list files to the git repo, and publish to openrepo.
Now all our binary install instructions should work without requiring a github login while the repo is still private.
2023-03-13 23:02:02 -07:00
Wez Furlong
cc4f1521bd
ci: refine upload-package.sh
2023-03-13 22:50:17 -07:00
Wez Furlong
ad4943d3fe
ci: publish repo defs to the repo server
2023-03-13 22:41:02 -07:00
Wez Furlong
f5fffc6b1b
ci: add rocky linux 8 and 9
2023-03-13 20:45:54 -07:00
Wez Furlong
b4f9280757
upload-packages: remove stray --help
2023-03-13 13:17:50 -07:00
Wez Furlong
6555afe0bf
upload-package: remove stray echo
...
whoops, I'd turned this off while testing locally
2023-03-13 12:51:19 -07:00
Wez Furlong
962abc751f
build-deb: maybe fixup version info
2023-03-13 12:50:29 -07:00
Wez Furlong
ade456f401
build-deb: fixup package build
2023-03-13 11:26:41 -07:00
Wez Furlong
269bcae487
build-deb: we don't have postinst, prerm
2023-03-13 10:54:08 -07:00
Wez Furlong
3620b4d91a
ci: drop ubuntu 18, factor out signing and uploading
...
ubuntu 18's git is too old. We can revisit if there is demand.
2023-03-13 09:01:12 -07:00
Wez Furlong
5c547a94f8
ci: maybe spit out .debs in ubuntu builds
2023-03-13 08:18:57 -07:00
Wez Furlong
d14b39d86f
docs: add centos7 rpm install to getting started
...
This uses the content tabs feature to group instructions by OS
2023-03-13 06:07:04 -07:00
Wez Furlong
0279dd9f0c
add repo file for centos7
2023-03-10 17:37:39 -07:00