From 01f7cd59403a0390d92cf7e426c13aaf051d5eab Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Sat, 25 Mar 2017 20:54:10 -0400 Subject: [PATCH] Add support for installing with nginx webserver Install nginx and php5-fpm or php7.0-fpm before installing aegir packge. --- manifests/hostmaster.pp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/manifests/hostmaster.pp b/manifests/hostmaster.pp index e0b45ac..2a1fb81 100644 --- a/manifests/hostmaster.pp +++ b/manifests/hostmaster.pp @@ -52,6 +52,21 @@ class aegir::hostmaster ( ensure => 'file', 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': ensure => 'installed', name => $package_name,