Add support for installing with nginx webserver

Install nginx and php5-fpm or php7.0-fpm before installing aegir packge.
This commit is contained in:
Kienan Stewart 2017-03-25 20:54:10 -04:00
parent 7e91d20732
commit 01f7cd5940
1 changed files with 15 additions and 0 deletions

View File

@ -52,6 +52,21 @@ class aegir::hostmaster (
ensure => 'file', ensure => 'file',
content => join($debconf_settings, "\n") content => join($debconf_settings, "\n")
} }
if ($server == 'nginx') {
# Install nginx and phpX-fpm before running the aegir install.
$nginx_packages = ['nginx']
case $facts['os']['lsb']['distcodename'] {
'wheezy', 'jessie': { concat($nginx_packages, ['php5-fpm']) }
default: { concat($nginx_packages, ['php7.0-fpm']) }
}
ensure_packages(
$nginx_packages,
{
'ensure' => 'present',
'before' => Package['aegir'],
}
)
}
package { 'aegir': package { 'aegir':
ensure => 'installed', ensure => 'installed',
name => $package_name, name => $package_name,