Mercurial > repos > other > Puppet
comparison modules/apache/manifests/mod/fastcgi.pp @ 275:d9352a684e62
Mass update of modules to remove deprecation warnings
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 26 Jan 2020 11:36:07 +0000 |
parents | 675c1cc61eaf |
children |
comparison
equal
deleted
inserted
replaced
274:b2571c28fc27 | 275:d9352a684e62 |
---|---|
1 # @summary | |
2 # Installs `mod_fastcgi`. | |
3 # | |
4 # @see https://github.com/FastCGI-Archives/mod_fastcgi for additional documentation. | |
5 # | |
1 class apache::mod::fastcgi { | 6 class apache::mod::fastcgi { |
2 include ::apache | 7 include ::apache |
3 | 8 if ($::osfamily == 'Redhat' and versioncmp($::operatingsystemrelease, '7.0') >= 0) { |
9 fail('mod_fastcgi is no longer supported on el7 and above.') | |
10 } | |
11 if ($facts['os']['name'] == 'Ubuntu' and versioncmp($facts['os']['release']['major'], '18.04') >= 0) { | |
12 fail('mod_fastcgi is no longer supported on Ubuntu 18.04 and above. Please use mod_proxy_fcgi') | |
13 } | |
4 # Debian specifies it's fastcgi lib path, but RedHat uses the default value | 14 # Debian specifies it's fastcgi lib path, but RedHat uses the default value |
5 # with no config file | 15 # with no config file |
6 $fastcgi_lib_path = $::apache::params::fastcgi_lib_path | 16 $fastcgi_lib_path = $::apache::params::fastcgi_lib_path |
7 | 17 |
8 ::apache::mod { 'fastcgi': } | 18 ::apache::mod { 'fastcgi': } |