Bug 281933 - [NEW PORT] sysutils/salt-tower: external pillar for SaltStack for pillar composition
Summary: [NEW PORT] sysutils/salt-tower: external pillar for SaltStack for pillar com...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Dave Cottlehuber
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-07 21:33 UTC by dereckson
Modified: 2025-11-18 19:11 UTC (History)
1 user (show)

See Also:


Attachments
Poudriere log (18.87 KB, text/plain)
2024-10-07 21:33 UTC, dereckson
no flags Details
Patch generated with git format-patch (2.03 KB, patch)
2024-10-07 21:41 UTC, dereckson
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description dereckson 2024-10-07 21:33:50 UTC
Created attachment 254081 [details]
Poudriere log

salt-tower is an external pillar module for SaltStack (sysutils/py-salt) to allow to create layers of pillar.

It allows:
  - to reference a server name to pick a specific file (1)
  - to compose data from several files for easier maintenance (2)

This allows Salt pillar to behave more like Puppet hiera (or to allow what Ansible provides with default values / group_vars / host_vars, but it's a lot more organized in salt-tower and hiera).


[ Package notes ]

Straightforward Python installation through wheel / PEP-517.

I've been using it in production happily since March 2023.


[ Use case ]

Some examples of how salt-tower is used in real world for reference, as the upstream documentation shows mainly theoretical cases:

  (1) https://github.com/nasqueron/operations/blob/main/pillar/tower.sls

  (2) the composition between the different files in https://github.com/nasqueron/operations/tree/main/pillar/paas/docker/docker-002 where the dictionary `docker_containers` is split into several files.
Comment 1 dereckson 2024-10-07 21:41:34 UTC
Created attachment 254082 [details]
Patch generated with git format-patch
Comment 2 commit-hook freebsd_committer freebsd_triage 2025-11-18 19:11:52 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b8ddbb36e7d1afaea12ac5d36b32c32ec6ec8107

commit b8ddbb36e7d1afaea12ac5d36b32c32ec6ec8107
Author:     Sébastien Santoro <dereckson@gmail.com>
AuthorDate: 2025-11-18 19:09:00 +0000
Commit:     Dave Cottlehuber <dch@FreeBSD.org>
CommitDate: 2025-11-18 19:10:09 +0000

    sysutils/py-salt-tower: New Port - external pillar for SaltStack piller composition

    PR:             281933

 sysutils/Makefile                      |  1 +
 sysutils/py-salt-tower/Makefile (new)  | 21 +++++++++++++++++++++
 sysutils/py-salt-tower/distinfo (new)  |  3 +++
 sysutils/py-salt-tower/pkg-descr (new) |  3 +++
 4 files changed, 28 insertions(+)