| LEFT | RIGHT |
| 1 # Class: spawn_fcgi | 1 # Class: spawn_fcgi |
| 2 # | 2 # |
| 3 # This class manage spawn-fcgi installation and configuration. | 3 # This class manage spawn-fcgi installation and configuration. |
| 4 # | 4 # |
| 5 # Use spawn_fcgi::pool for configuring spawn-fcgi pools | 5 # Use spawn_fcgi::pool for configuring spawn-fcgi pools |
| 6 # Use spawn_fcgi::php-pool to configure a preconfigured php-pool | 6 # Use spawn_fcgi::php-pool to configure a preconfigured php-pool |
| 7 # | 7 # |
| 8 class spawn_fcgi { | 8 class spawn_fcgi { |
| 9 | 9 |
| 10 package { 'spawn-fcgi': ensure => installed } | 10 package { 'spawn-fcgi': ensure => installed } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 require => Package['spawn-fcgi'], | 28 require => Package['spawn-fcgi'], |
| 29 } | 29 } |
| 30 | 30 |
| 31 file { [ | 31 file { [ |
| 32 '/etc/systemd', | 32 '/etc/systemd', |
| 33 '/etc/systemd/system', | 33 '/etc/systemd/system', |
| 34 ]: | 34 ]: |
| 35 ensure => 'directory', | 35 ensure => 'directory', |
| 36 } | 36 } |
| 37 | 37 |
| 38 # #2498: As systemd is not reliably enabling legacy sysvinit scripts, we pro
vide the | 38 # #2498: As systemd is not reliably enabling legacy sysvinit scripts, we |
| 39 # unit file (as generated by systemd when enabling the service manually). | 39 # provide the # unit file (as generated by systemd when enabling the |
| 40 # This workaround can be considered for removal with systemd 220, or when th
e package | 40 # service manually). This workaround can be considered for removal with |
| 41 # ships with its own systemd unit. | 41 # systemd 220, or when the package ships with its own systemd unit. |
| 42 file { '/etc/systemd/system/spawn-fcgi.service': | 42 file { '/etc/systemd/system/spawn-fcgi.service': |
| 43 ensure => present, | 43 ensure => present, |
| 44 owner => root, | 44 owner => root, |
| 45 group => root, | 45 group => root, |
| 46 mode => '0755', | 46 mode => '0755', |
| 47 source => 'puppet:///modules/spawn_fcgi/spawn-fcgi.service', | 47 source => 'puppet:///modules/spawn_fcgi/spawn-fcgi.service', |
| 48 require => [ | 48 require => [ |
| 49 File['/etc/systemd/system'], | 49 File['/etc/systemd/system'], |
| 50 Package['spawn-fcgi'], | 50 Package['spawn-fcgi'], |
| 51 ] | 51 ] |
| 52 } | 52 } |
| 53 | 53 |
| 54 file { '/etc/spawn-fcgi': | 54 file { '/etc/spawn-fcgi': |
| 55 ensure => directory, | 55 ensure => directory, |
| 56 require => Package['spawn-fcgi'], | 56 require => Package['spawn-fcgi'], |
| 57 } | 57 } |
| 58 } | 58 } |
| LEFT | RIGHT |