Open Source alternative to Ansible Tower, Semaphore is a modern UI
for Ansible.
It lets you easily run Ansible playbooks, get notifications about fails,
control access to deployment system.
Reason:
Semaphore has been updated to 2.19.7. Upstream removed BoltDB support in
2.19; the supported dialects are now mysql, postgres and sqlite. If your
configuration still contains "dialect": "bolt", semaphore will refuse to
start after the upgrade.
Migrate the database BEFORE upgrading the port. The migration tool is
part of Semaphore 2.18 and no longer present in 2.19; see also
https://semaphoreui.com/docs/admin-guide/cli/migrations
1) Stop the service and back up the BoltDB file:
service semaphore stop
cp /var/db/semaphore/database.boltdb /var/db/semaphore/database.boltdb.bak
2) Fetch the official 2.18 binary, it is only needed for the migration:
fetch -o /tmp/sem218.tar.gz https://github.com/semaphoreui/semaphore/releases/download/v2.18.29/semaphore_community_2.18.29_freebsd_amd64.tar.gz
tar -xzf /tmp/sem218.tar.gz -C /tmp semaphore
3) Change "dialect" in semaphore_config.json to sqlite (or mysql/postgres)
and add the matching connection settings. A minimal sqlite example is
installed as %%PREFIX%%/etc/semaphore/config.json.sample.
4) Import the data. The BoltDB file is only read, not modified:
/tmp/semaphore migrate --from-boltdb /var/db/semaphore/database.boltdb --config /usr/local/etc/semaphore/semaphore_config.json
5) Upgrade the port, apply the remaining schema migrations and start the
service again:
semaphore migrate --config /usr/local/etc/semaphore/semaphore_config.json
service semaphore start
rm /tmp/semaphore
Note that this update also restores the bundled web interface. Previous
versions of the port installed the API server only, so every UI route
returned 404.
net-mgmt/semaphore: Update to 2.20.23
Keeps the chosen language per user, fixes deleting a user and no longer
submits the CLI argument dialog on Enter.
The vendored modernc.org/sqlite now carries current FreeBSD bindings for
every architecture, so the restriction to aarch64 and amd64 can go.
Changelog:
https://github.com/semaphoreui/semaphore/releases/tag/v2.20.23
Sponsored by: Netzkommune GmbH
net-mgmt/semaphore: Restrict to aarch64 and amd64
The vendored modernc.org/sqlite carries FreeBSD bindings for i386 and arm
that predate the type names its own vtab.go uses, so the build fails there.
Sponsored by: Netzkommune GmbH
net-mgmt/semaphore: Update to 2.19.18
Adds SEMAPHORE_SESSION_INACTIVITY_HOURS, which expires a login session
that stayed unused for that many hours.
Changelog:
https://github.com/semaphoreui/semaphore/releases/tag/v2.19.18
Sponsored by: Netzkommune GmbH
net-mgmt/semaphore: Add CPE information
The NVD lists this software as ansible-semaphore:ansible_semaphore with
136 dictionary entries, so the port can be matched against advisories
once they appear. The cpe.mk defaults would have produced
semaphore:semaphore, which does not exist.
Sponsored by: Netzkommune GmbH
net-mgmt/semaphore: run as a dedicated user
Semaphore runs Ansible playbooks and holds the SSH keys for the hosts it
manages, so it should not run as root. Reserve uid/gid 524 and start the
daemon with daemon(8) -u; semaphore_uname in rc.conf overrides the user.
The data directory changes owner on upgrade, the files in it do not, so
the pkg-message asks for a one-time chown.
PR: 298817
Sponsored by: Netzkommune GmbH
net-mgmt/semaphore: Update to 2.19.16, take maintainership
Bug fixes only since 2.19.7, among them a fix for the SQLite migration.
Runners can now be given a check interval instead of polling the server
every second.
Release notes: https://github.com/semaphoreui/semaphore/releases/tag/v2.19.16
Sponsored by: Netzkommune GmbH
net-mgmt/semaphore: reset maintainer
egypcio@ has not responded to any port issue for over three months. His
last ports commit is from 2026-03-10, and 22 bugs assigned to him are
open, the oldest from 2024-02-25.
Three PRs for this port went without a maintainer reply: 297378, 298453
and 298817.
Sponsored by: Netzkommune GmbH
net-mgmt/semaphore: Write rc script output to a log file
Redirect stdout and stderr of the service to /var/log/semaphore.log.
The path can be changed with semaphore_logfile in rc.conf.
PR: 298453
Approved by: egypcio (maintainer timeout)
Sponsored by: Netzkommune GmbH
net-mgmt/semaphore: fix rc script config path
The rc script defaulted to semaphore_config.json, but the port installs
config.json, so the service did not start on a fresh installation.
Installations that created semaphore_config.json by hand can keep it via
semaphore_config in rc.conf.
Reported by: Niclas Wagner (via private mail)
Approved by: portmgr (runtime fix blanket)
Sponsored by: Netzkommune GmbH
net-mgmt/semaphore: update to 2.19.7, restore web UI
The port was frozen at 2.9.2 and installed only the REST API server; the
bundled web UI was never built, so every UI route returned 404. Update
to
2.19.7 and restore the embedded Vue UI.
Upstream dropped BoltDB support in 2.19; the supported dialects are now
mysql, postgres and sqlite. BoltDB installations must import their data
with a Semaphore 2.18 binary before the upgrade, because 2.19 no longer
ships the import tool. Changing the dialect without importing silently
creates an empty database and all projects, templates, access keys and
the
task history are lost. Add a pkg-install check that warns during
PRE-INSTALL when the configuration still selects the bolt dialect or a
(Only the first 15 lines of the commit message are shown above )
go: Bump go124-dependent ports
Earlier I bumped the default Go to 1.24. Ports that specify a lower
version will still build with those lower version (for now), so they
don't need a bumping. Instead I'm bumping anything that (now) has go124
as a dependency.
net-mgmt/semaphore: fix build on riscv64-freebsd
Bump golang.org/x/sys, go.etcd.io/bbolt dependencies to
versions new enough to support riscv64-freebsd.
Fix pkg-plist while we are at it.
Sponsored by: Berliner Linux User Group e.V.
Approved by: portmgr (build fix blanket)
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
net-mgmt/semaphore: update 2.5.1 to 2.5.2
while here, also:
- switched to build using modules;
- updated all go libs dependencies.
github.com/ansible-semaphore/semaphore/releases/tag/v2.5.2
net-mgmt/semaphore: fix build on aarch64
while here, pet portlint;
- removed blank line from pkg-plist;
- PORTREVISION was appearing 2 times in the Makefile.
PR: 247048
Submitted by: mikael@
Go ports: cleanup, finish transition to USES=go started with r505321 (cat.
misc-shells)
- Remove custom build/install targets left in place after r505321
- Switch to the new GO_TARGET tuple syntax introduced in r512001
- Switch to go:modules when upstream already uses them
Reviewed by: tobik
Approved by: araujo (mentor), portmgr (adamw)
Differential Revision: https://reviews.freebsd.org/D21743
net-mgmt/semaphore: update 2.4.1 to 2.5.1
- Makefile
adopt the port; pet portlint;
add LICENSE;
use USES=go (introducing GO_ENV and GO_BUILDFLAGS);
push vendor tree to 'public/vendor' (upstream change);
offer MYSQL support (defined by upstream).
- files/*
patch-util_config.go -> patch failing 'printVersion' (undef var).
Approved by: rene (mentor)
Differential Revision: https://reviews.freebsd.org/D19045