Generate zpool through type-file classes and user attribute parents #15

Merged
benvin merged 1 commits from benvin/gentypes-zpool into main 2026-11-09 22:53:52 +11:00
Member

zfs_core's zpool type defines its VDev property classes at the top level of the type file, inside a reopened Puppet::Property, and uses them as parent:. w10k rejected any top-level class in a type file, so zpool was skipped.

  • evaluate top-level modules and classes in type files with the library namespace rules
  • resolve a parent: user class chain to its puppet ancestor when the chain runs no class-level code
  • skip safe_insync? defined in a subclass, which Puppet::Property.method_added rejects
  • define the type class at newtype so later reopens of it or its providers skip
  • vendor zfs_core 1.6.1 zpool with puppet's golden; bump Version to 9
zfs_core's zpool type defines its VDev property classes at the top level of the type file, inside a reopened `Puppet::Property`, and uses them as `parent:`. w10k rejected any top-level class in a type file, so zpool was skipped. - evaluate top-level modules and classes in type files with the library namespace rules - resolve a `parent:` user class chain to its puppet ancestor when the chain runs no class-level code - skip `safe_insync?` defined in a subclass, which `Puppet::Property.method_added` rejects - define the type class at `newtype` so later reopens of it or its providers skip - vendor zfs_core 1.6.1 zpool with puppet's golden; bump Version to 9
benvin changed target branch from benvin/gentypes-network to main 2026-11-09 22:50:06 +11:00
benvin added 1 commit 2026-11-09 22:50:06 +11:00
Load type-file classes and user attribute parents as Ruby does
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
ce90a7a3a7
benvin merged commit 7b3f38ece9 into main 2026-11-09 22:53:52 +11:00
benvin deleted branch benvin/gentypes-zpool 2026-11-09 22:53:53 +11:00
This repo is archived. You cannot comment on pull requests.