Generate augeas types through module features and core mixins #18

Merged
benvin merged 2 commits from benvin/gentypes-augeas into main 2026-11-09 23:49:30 +11:00
Member

augeas_core and augeasproviders_core gate require 'augeas' on Puppet.features.augeas?, include openvox mixins and name an attribute block parameter, so augeas and augeasprovider skip today.

  • evaluate a module feature as openvox does: autoload puppet/feature/<name>.rb, true when every lib loads, gems only when declared in w10k.gems
  • skip openvox's own features, whose results depend on the host
  • run require ... if/unless <cond> modifiers
  • include hook-free openvox mixins (Puppet::Util, ::Diff, ::Package) and honour private :name in module mixins
  • accept a block parameter on attribute blocks
  • vendor the augeas fixtures and bump gentypes.Version to 12
augeas_core and augeasproviders_core gate `require 'augeas'` on `Puppet.features.augeas?`, include openvox mixins and name an attribute block parameter, so augeas and augeasprovider skip today. - evaluate a module feature as openvox does: autoload `puppet/feature/<name>.rb`, true when every lib loads, gems only when declared in `w10k.gems` - skip openvox's own features, whose results depend on the host - run `require ... if/unless <cond>` modifiers - include hook-free openvox mixins (`Puppet::Util`, `::Diff`, `::Package`) and honour `private :name` in module mixins - accept a block parameter on attribute blocks - vendor the augeas fixtures and bump gentypes.Version to 12
benvin changed target branch from benvin/gentypes-openldap to main 2026-11-09 23:01:17 +11:00
benvin added 1 commit 2026-11-09 23:01:17 +11:00
Evaluate module features and core mixins
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
01ecc8f421
Puppet.features.<name>? autoloads the module's puppet/feature file and is true
when each of its libs loads, gems only when declared; openvox's own features
depend on the host and skip. Includes of hook-free openvox modules, private
:name in mixins and block parameters on attribute blocks are accepted.
Generates augeas and augeasprovider.
unkin-agent added 1 commit 2026-11-09 23:11:03 +11:00
Merge remote-tracking branch 'origin/main' into benvin/gentypes-augeas
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
7b692cbbbf
benvin merged commit 24d543417a into main 2026-11-09 23:49:30 +11:00
benvin deleted branch benvin/gentypes-augeas 2026-11-09 23:49:31 +11:00
This repo is archived. You cannot comment on pull requests.