Skip to content

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

Open
theurw101 wants to merge 1 commit into
voxpupuli:masterfrom
theurw101:migrate-from-params-to-hiera
Open

theurw101 wants to merge 1 commit into
voxpupuli:masterfrom
theurw101:migrate-from-params-to-hiera

Conversation

@theurw101

Copy link
Copy Markdown

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

Update spec for params.pp to Hiera conversion
Comment thread data/os/RedHat/7.yaml

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.

EL7 is unsupported, you can delete this.

Comment thread data/common.yaml

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.

Data in common should instead be class parameter defaults in init.pp, and then you can replace the lookup() calls with the variable, e.g., $python::pip_lookup_path.

Comment thread manifests/init.pp
Comment on lines +66 to +69
unless $facts['os']['family'] in ['AIX', 'Debian', 'FreeBSD', 'Gentoo', 'RedHat', 'Suse', 'Archlinux'] {
fail("Module is not compatible with ${facts['os']['name']}")
}

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.

There is no need for this check. It just makes the module difficult to use on platforms that aren't officially supported.

This branch has not been deployed

No deployments
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