Generate ceph types through cross-type loads and title_patterns locals #16

Merged
benvin merged 1 commits from benvin/gentypes-ceph into main 2026-11-09 22:56:26 +11:00
Member

openstack-ceph builds ceph_config on a provider of another type (Puppet::Type.type(:ini_setting).provider(:ruby)) and its title patterns from locals interpolated into regexes, so all three ceph types skip today.

  • load a type Puppet::Type.type(:x) names from its module file with all its providers, and return a provider class from .provider(:n)
  • treat a nil or false parent: as Puppet::Provider
  • evaluate local assignments and Regexp.new in title_patterns
  • vendor the ceph fixtures and bump gentypes.Version to 10
openstack-ceph builds ceph_config on a provider of another type (`Puppet::Type.type(:ini_setting).provider(:ruby)`) and its title patterns from locals interpolated into regexes, so all three ceph types skip today. - load a type `Puppet::Type.type(:x)` names from its module file with all its providers, and return a provider class from `.provider(:n)` - treat a nil or false `parent:` as Puppet::Provider - evaluate local assignments and `Regexp.new` in `title_patterns` - vendor the ceph fixtures and bump gentypes.Version to 10
benvin changed target branch from benvin/gentypes-zpool to main 2026-11-09 22:53:54 +11:00
benvin added 1 commit 2026-11-09 22:53:54 +11:00
Load types through Puppet::Type.type and evaluate title_patterns locals
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
c8fba92811
Puppet::Type.type(:x) loads x's module type file with its providers, whose
classes .provider(:n) returns as a parent; a nil parent is Puppet::Provider.
title_patterns binds locals, including Regexp.new copies. Generates ceph_config,
ceph_fs and ceph_pool.
benvin merged commit fd0460eedc into main 2026-11-09 22:56:26 +11:00
benvin deleted branch benvin/gentypes-ceph 2026-11-09 22:56:26 +11:00
This repo is archived. You cannot comment on pull requests.