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:
parent
7e91d20732
commit
01f7cd5940
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue