Repository navigation
Replace params.pp with module data in Hiera
#762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,6 @@ | ||
| python::group: root | ||
| python::pip_lookup_path: | ||
| - /bin | ||
| - /usr/bin | ||
| - /usr/local/bin | ||
| python::default_system_version: "3.11" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| python::group: system | ||
| python::pip_lookup_path: | ||
| - /bin | ||
| - /usr/bin | ||
| - /usr/local/bin | ||
| - /opt/freeware/bin/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| python::default_system_version: "3.13" | ||
| python::manage_pip_package: false | ||
| python::manage_venv_package: false |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| python::use_epel: false |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| python::group: wheel | ||
| python::default_system_version: "3.11" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| python::gunicorn_package_name: python3-gunicorn | ||
| python::use_epel: true |
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. EL7 is unsupported, you can delete this. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| python::gunicorn_package_name: python-gunicorn |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,20 +49,24 @@ | |
| Boolean $manage_gunicorn = true, | ||
| Boolean $manage_python_package = true, | ||
| Boolean $manage_dev_package = true, | ||
| Boolean $manage_venv_package = $python::params::manage_venv_package, | ||
| Boolean $manage_pip_package = $python::params::manage_pip_package, | ||
| String[1] $gunicorn_package_name = $python::params::gunicorn_package_name, | ||
| Boolean $manage_venv_package = true, | ||
| Boolean $manage_pip_package = true, | ||
| String[1] $gunicorn_package_name = 'gunicorn', | ||
| Optional[Python::Provider] $provider = undef, | ||
| Hash $python_pips = {}, | ||
| Hash $python_pyvenvs = {}, | ||
| Hash $python_requirements = {}, | ||
| Hash $python_dotfiles = {}, | ||
| Boolean $use_epel = $python::params::use_epel, | ||
| Boolean $use_epel = false, | ||
| Boolean $rhscl_use_public_repository = true, | ||
| Stdlib::Httpurl $anaconda_installer_url = 'https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh', | ||
| Stdlib::Absolutepath $anaconda_install_path = '/opt/python', | ||
| Boolean $manage_scl = true, | ||
| ) inherits python::params { | ||
| ) { | ||
| unless $facts['os']['family'] in ['AIX', 'Debian', 'FreeBSD', 'Gentoo', 'RedHat', 'Suse', 'Archlinux'] { | ||
| fail("Module is not compatible with ${facts['os']['name']}") | ||
| } | ||
|
|
||
|
Comment on lines
+66
to
+69
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| $exec_prefix = $provider ? { | ||
| 'scl' => "/usr/bin/scl enable ${version} -- ", | ||
| 'rhscl' => "/usr/bin/scl enable ${version} -- ", | ||
|
|
||
This file was deleted.
There was a problem hiding this comment.
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 thelookup()calls with the variable, e.g.,$python::pip_lookup_path.