Skip to content

Commit 6824e0f

Browse files
authored
Merge pull request #648 from bastelfreak/foo
move static data from params.pp to init.pp
2 parents 57266bc + 80adc63 commit 6824e0f

File tree

2 files changed

+12
-26
lines changed

2 files changed

+12
-26
lines changed

manifests/init.pp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,27 +37,27 @@
3737
# }
3838
#
3939
class python (
40-
Python::Package::Ensure $ensure = $python::params::ensure,
40+
Python::Package::Ensure $ensure = 'present',
4141
Python::Version $version = $facts['os']['family'] ? { 'Archlinux' => 'system', default => '3' },
42-
Python::Package::Ensure $pip = $python::params::pip,
43-
Python::Package::Ensure $dev = $python::params::dev,
44-
Python::Package::Ensure $venv = $python::params::venv,
45-
Python::Package::Ensure $gunicorn = $python::params::gunicorn,
46-
Boolean $manage_gunicorn = $python::params::manage_gunicorn,
47-
Boolean $manage_python_package = $python::params::manage_python_package,
42+
Python::Package::Ensure $pip = 'present',
43+
Python::Package::Ensure $dev = 'absent',
44+
Python::Package::Ensure $venv = 'absent',
45+
Python::Package::Ensure $gunicorn = 'absent',
46+
Boolean $manage_gunicorn = true,
47+
Boolean $manage_python_package = true,
4848
Boolean $manage_venv_package = $python::params::manage_venv_package,
4949
Boolean $manage_pip_package = $python::params::manage_pip_package,
5050
String[1] $gunicorn_package_name = $python::params::gunicorn_package_name,
51-
Optional[Python::Provider] $provider = $python::params::provider,
51+
Optional[Python::Provider] $provider = undef,
5252
Hash $python_pips = {},
5353
Hash $python_pyvenvs = {},
5454
Hash $python_requirements = {},
5555
Hash $python_dotfiles = {},
5656
Boolean $use_epel = $python::params::use_epel,
57-
Boolean $rhscl_use_public_repository = $python::params::rhscl_use_public_repository,
58-
Stdlib::Httpurl $anaconda_installer_url = $python::params::anaconda_installer_url,
59-
Stdlib::Absolutepath $anaconda_install_path = $python::params::anaconda_install_path,
60-
Boolean $manage_scl = $python::params::manage_scl,
57+
Boolean $rhscl_use_public_repository = true,
58+
Stdlib::Httpurl $anaconda_installer_url = 'https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh',
59+
Stdlib::Absolutepath $anaconda_install_path = '/opt/python',
60+
Boolean $manage_scl = true,
6161
Optional[Python::Umask] $umask = undef,
6262
) inherits python::params {
6363
$exec_prefix = $provider ? {

manifests/params.pp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,6 @@
99
fail("Module is not compatible with ${facts['os']['name']}")
1010
}
1111

12-
$ensure = 'present'
13-
$pip = 'present'
14-
$dev = 'absent'
15-
$venv = 'absent'
16-
$gunicorn = 'absent'
17-
$manage_gunicorn = true
18-
$manage_python_package = true
19-
$provider = undef
20-
$valid_versions = undef
21-
$manage_scl = true
22-
$rhscl_use_public_repository = true
23-
$anaconda_installer_url = 'https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh'
24-
$anaconda_install_path = '/opt/python'
25-
2612
if $facts['os']['family'] == 'RedHat' and $facts['os']['name'] != 'Fedora' {
2713
$use_epel = true
2814
} else {

0 commit comments

Comments
 (0)