Skip to content

Releases: tjhop/mango

v0.16.0

10 Aug 05:25
Compare
Choose a tag to compare

Changelog

New Features And Changes

  • 490cc41 feat(metrics): start module run durations buckets at 0.25s instead of 1s

Fixes

  • 573e969 fix(metrics)!: make timestamp metrics have _timestamp_seconds suffix
  • e32ac9f fix(metrics)!: rename inventory item count metrics
  • 1faab44 fix(metrics): always increment module run metric for test runs
  • b0c2dec fix(metrics): convert duration to seconds for histogram value
  • 954c863 fix(metrics): use promauto for histogram so it auto registers

Other Changes

  • e0c98e0 build(deps): go get -u ./... && go mod tidy
  • 5ad969b build(deps): go get -u ./... && go mod tidy
  • fcdb234 build: adopt chainguard busybox image as base for mango container
  • eefcbc5 chore: go mod tidy
  • 1ae59d5 chore: add normalizeStringFlag helper func, improve flag handling
  • f898f92 chore: improve logging around unset log level flags
  • bb4bc6b chore: remove old logrus init stub, been using slog for a while now
  • 6304d43 ref(inv): split metric declarations to their own file
  • d7bc17f ref(metrics)!: use same switch handling for apply as is done for tests
  • b287c01 ref(tmpl): avoid redundantly parsing IP in isIPv6()
  • 5ddfe49 ref(tmpl): use humanize funcs directly in func map, no need to alias
  • eb0e624 ref: make IsIPv4()/IsIPv6() public func in utils pkg
  • d6278b6 ref: simplify runtime metric label setting
  • e6e27bc test: add testbox hostname as promtail label
  • 257358b test: fix host template name for testbox-ubuntu
  • 9042d9a test: still do static IPv6 template checks if host doesn't have ipv6

v0.15.1

28 Jul 18:58
Compare
Choose a tag to compare

Changelog

Fixes

  • 1176a5c fix: stop spamming error logs for disks without block dev queue stats

Other Changes

  • 715b46e test: add paccache clean step to arch testbox

v0.15.0

16 Jul 12:57
Compare
Choose a tag to compare

Changelog

New Features And Changes

  • bb008a3 feat(inv): add GetTemplatesForHost and self to inventory.Store interface
  • 9edb34a feat(inv): add support for user defined templates to host, role, group
  • f2db514 feat(manager): add support for host/group/role template files

Fixes

  • 131237e fix(logging): don't duplicate manager group key

Other Changes

  • efd7930 chore: explicitly init group on inventory creation
  • 0deea8e chore: remove blank commented line

v0.14.2

27 Jun 04:55
Compare
Choose a tag to compare

Changelog

Fixes

  • 08c89eb fix(build): fix env var usage in packaged systemd unit file
  • b9df464 fix: use SplitN when working with vars, unbreak vars with = in them

v0.14.1

22 Jun 05:04
Compare
Choose a tag to compare

Changelog

Fixes

  • 60dc660 fix(manager): don't shadow module test script exit code

Other Changes

  • f7f4100 build: convert provided unit file to use environment for cmdline args

v0.14.0

21 Jun 03:59
Compare
Choose a tag to compare

Changelog

New Features And Changes

  • 7512840 feat(manager): log script exit status
  • 28ea223 feat: add flag to skip apply script if test script succeeds

Fixes

  • 987581a fix!: properly check script exit codes, properly fail scripts if != 0

Other Changes

  • c743d95 build(deps): bump actions/checkout from 3 to 4 (#2)
  • bcdfd62 build(deps): bump actions/setup-go from 3 to 5 (#3)
  • 599af9e build(deps): bump golangci/golangci-lint-action from 3 to 6 (#1)
  • 4790b6f build(deps): bump goreleaser/goreleaser-action from 5 to 6
  • 4f63420 build(deps): update deps
  • ffc977d chore: go mod tidy
  • 7476e5c ci: update goreleaser config format to v2

v0.13.0

10 Jun 03:48
Compare
Choose a tag to compare

Changelog

New Features And Changes

  • 7084930 feat(modules): allow loading user template files from templates/*.tpl

Other Changes

v0.12.0

23 May 06:03
Compare
Choose a tag to compare

Changelog

New Features And Changes

  • 93fc103 feat: log the template-rendered script content for debugging
  • ad06da9 feat: migrate from sprig -> sprout for updated template func lib
  • 7b78868 feat: stop namespacing different template library funcs

Other Changes

  • 9659418 build: update packaged systemd service to set --inventory.reload-interval 5m
  • dd62baa chore: go get -u ./...

v0.11.1

18 May 16:35
Compare
Choose a tag to compare

Changelog

Fixes

  • 59476bd fix: remove dupe mod IDs in log line

Other Changes

  • 24d9f1a build: update to go1.22.3
  • decc020 chore: go mod tidy
  • 30d582e ci(goreleaser): fix tarball formatting that was preventing it from running
  • 2220b5b ci: add systemd service file to archive (tarball) in releases
  • 9257a7c ci: enable package builds for archlinux :archbtw:
  • f2ee4f7 ci: enable verifiable builds with goreleaser
  • 7f6a0ef ci: lots of updates/upgrades for release action

v0.11.0

17 May 05:15
Compare
Choose a tag to compare

Changelog

New Features And Changes

  • 72e5e2a feat(inv): add GetGroupsFor{Host,Self}() to Store interface
  • 32f70fe feat(inv): add IsHostEnrolled method to Store interface
  • 6b9f766 feat: incorporate sprig template funcs, under the sprig_ namespace

Fixes

  • d802fee fix(inv): get modules assigned to groups in GetModulesForHost()
  • afd9f03 fix(inv): only get modules from roles valid for host in GetModulesForHost()
  • 2d90d91 fix(inv): update interface sig for GetVariablesForHost
  • b7e89d2 fix(template): block device queue stats path update + error checking
  • d19882f fix: don't use GetHost() as form of enrollment check
  • d6399a5 fix: ensure host is enrolled in group before collecting group vars
  • 8cbf358 fix: roles also allow variables, support parsing them in inventory

Other Changes

  • 6520654 chore: go get -u ./...
  • 47196a9 chore: remove commented out dead code
  • 8855c3c ref(inv): GetVariablesForHost() also get valid group/role variables
  • 4c923fd ref: GetRolesFor{Host,Self}() support group roles in both, standardize
  • 1fb9bba test: update loki config schema, fix testing loki
  • 5610f85 test: update template module to use template more (for file name)