Skip to content

Commit

Permalink
fix: support for different python version on rhel8
Browse files Browse the repository at this point in the history
fix: linter
  • Loading branch information
teluq-pbrideau committed Oct 13, 2022
1 parent 8d425f8 commit b05fe37
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions manifests/apache/conf.pp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@
package_name => 'libapache2-mod-wsgi-py3',
mod_path => '/usr/lib/apache2/modules/mod_wsgi.so',
},
'RedHat' => $facts['os']['release']['major'] ? {
'8' => {
package_name => $puppetboard::python_version ? {
'3.6' => 'python3-mod_wsgi',
'3.8' => 'python38-mod_wsgi',
'3.9' => 'python39-mod_wsgi',
default => fail('python version not supported'),
},
mod_path => 'modules/mod_wsgi_python3.so',
},
default => {},
},
default => {},
}
class { 'apache::mod::wsgi':
Expand Down
12 changes: 12 additions & 0 deletions manifests/apache/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@
package_name => 'libapache2-mod-wsgi-py3',
mod_path => '/usr/lib/apache2/modules/mod_wsgi.so',
},
'RedHat' => $facts['os']['release']['major'] ? {
'8' => {
package_name => $puppetboard::python_version ? {
'3.6' => 'python3-mod_wsgi',
'3.8' => 'python38-mod_wsgi',
'3.9' => 'python39-mod_wsgi',
default => fail('python version not supported'),
},
mod_path => 'modules/mod_wsgi_python3.so',
},
default => {},
},
default => {},
}
class { 'apache::mod::wsgi':
Expand Down

0 comments on commit b05fe37

Please sign in to comment.