diff --git a/manifests/gunicorn.pp b/manifests/gunicorn.pp index b943e332..cd4a9c86 100644 --- a/manifests/gunicorn.pp +++ b/manifests/gunicorn.pp @@ -96,6 +96,8 @@ validate_re($log_level, 'debug|info|warning|error|critical', "Invalid \$log_level value ${log_level}") + ensure_resource('file', '/etc/gunicorn.d', {'ensure' => 'directory'}) + file { "/etc/gunicorn.d/${name}": ensure => $ensure, mode => '0644', diff --git a/manifests/install.pp b/manifests/install.pp index 72da81de..5205bdfb 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -51,7 +51,7 @@ name => $python, } - package { 'virtualenv': + package { 'python-virtualenv': ensure => $venv_ensure, require => Package['python'], } @@ -121,7 +121,7 @@ # ensure => $venv_ensure, # require => Package['scl-utils'], # } - package { "${python}-scldevel": + package { "${python}-python-devel": ensure => $dev_ensure, require => Package['scl-utils'], } @@ -195,7 +195,7 @@ if ($venv_ensure != 'absent') and ($::operatingsystemrelease =~ /^6/) { if $python::use_epel == true { include 'epel' - Class['epel'] -> Package['virtualenv'] + Class['epel'] -> Package['python-virtualenv'] } } @@ -242,7 +242,7 @@ default => $python::gunicorn, } - package { 'gunicorn': + package { 'python-gunicorn': ensure => $gunicorn_ensure, name => $python::gunicorn_package_name, }