comparison modules/apache/manifests/fastcgi/server.pp @ 437:b8d6ada284dd

Update Apache module to latest version Also converted some params to ints to match
author IBBoard <dev@ibboard.co.uk>
date Sun, 14 Aug 2022 11:30:13 +0100
parents d9352a684e62
children adf6fe9bbc17
comparison
equal deleted inserted replaced
436:6293839019d0 437:b8d6ada284dd
26 # Internally links actions with the FastCGI server. This alias must be unique. 26 # Internally links actions with the FastCGI server. This alias must be unique.
27 # 27 #
28 # @param file_type 28 # @param file_type
29 # Sets the MIME `content-type` of the file to be processed by the FastCGI server. 29 # Sets the MIME `content-type` of the file to be processed by the FastCGI server.
30 # 30 #
31 # @param pass_header
32 # Sets a header for the server
33 #
31 define apache::fastcgi::server ( 34 define apache::fastcgi::server (
32 $host = '127.0.0.1:9000', 35 String $host = '127.0.0.1:9000',
33 $timeout = 15, 36 Integer $timeout = 15,
34 $flush = false, 37 Boolean $flush = false,
35 $faux_path = "/var/www/${name}.fcgi", 38 Stdlib::Absolutepath $faux_path = "/var/www/${name}.fcgi",
36 $fcgi_alias = "/${name}.fcgi", 39 Stdlib::Unixpath $fcgi_alias = "/${name}.fcgi",
37 $file_type = 'application/x-httpd-php', 40 String $file_type = 'application/x-httpd-php',
38 $pass_header = undef, 41 Optional[String] $pass_header = undef,
39 ) { 42 ) {
40 include ::apache::mod::fastcgi 43 include apache::mod::fastcgi
41 44
42 Apache::Mod['fastcgi'] -> Apache::Fastcgi::Server[$title] 45 Apache::Mod['fastcgi'] -> Apache::Fastcgi::Server[$title]
43 46
44 if $host =~ Stdlib::Absolutepath { 47 if $host =~ Stdlib::Absolutepath {
45 $socket = $host 48 $socket = $host
46 } 49 }
47 50
48 file { "fastcgi-pool-${name}.conf": 51 file { "fastcgi-pool-${name}.conf":
49 ensure => file, 52 ensure => file,
50 path => "${::apache::confd_dir}/fastcgi-pool-${name}.conf", 53 path => "${apache::confd_dir}/fastcgi-pool-${name}.conf",
51 owner => 'root', 54 owner => 'root',
52 group => $::apache::params::root_group, 55 group => $apache::params::root_group,
53 mode => $::apache::file_mode, 56 mode => $apache::file_mode,
54 content => template('apache/fastcgi/server.erb'), 57 content => template('apache/fastcgi/server.erb'),
55 require => Exec["mkdir ${::apache::confd_dir}"], 58 require => Exec["mkdir ${apache::confd_dir}"],
56 before => File[$::apache::confd_dir], 59 before => File[$apache::confd_dir],
57 notify => Class['apache::service'], 60 notify => Class['apache::service'],
58 } 61 }
59 } 62 }