Skip to content

Replace params.pp with module data in Hiera - #762

Merged
kenyon merged 1 commit into
voxpupuli:masterfrom
theurw101:migrate-from-params-to-hiera
Oct 26, 2026
Merged

kenyon merged 1 commit into
voxpupuli:masterfrom
theurw101:migrate-from-params-to-hiera

Conversation

@theurw101

Copy link
Copy Markdown
Contributor

Pull Request (PR) description

This PR moves the OS-dependent defaults from python::params into data in
modules and removes the private python::params class and the obsolete params.pp (see #712 )

This Pull Request (PR) fixes the following issues

Fixes #712

Comment thread data/os/RedHat/7.yaml Outdated
Comment thread data/common.yaml
Comment thread manifests/init.pp Outdated
@theurw101
theurw101 force-pushed the migrate-from-params-to-hiera branch from 8c9db67 to de08427 Compare October 26, 2026 19:39
@theurw101

Copy link
Copy Markdown
Contributor Author

@kenyon Thanks for the feedback. I have implemented the changes you requested. In pip_spec.rb I added the line let(:pre_condition) { 'include python' } because the new $python::group default reads a class-scoped variable, so the class must be declared in the spec catalog, or else the spec would fail.

@theurw101
theurw101 requested a review from kenyon October 26, 2026 19:48

@kenyon kenyon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add final newlines to those new YAML files, otherwise this looks good to me.

Update spec for params.pp to Hiera conversion

Remove EL7, remove facts check, replace lookup with variable calls

Add pre_condition to spec

Add missing newlines
@theurw101
theurw101 force-pushed the migrate-from-params-to-hiera branch from de08427 to bba0433 Compare October 26, 2026 21:01
@theurw101
theurw101 requested a review from kenyon October 26, 2026 21:10
@kenyon
kenyon merged commit b8a263a into voxpupuli:master Oct 26, 2026
36 of 38 checks passed
@theurw101
theurw101 deleted the migrate-from-params-to-hiera branch October 26, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate from params.pp to hiera

2 participants