SHARE
TWEET

jairo-mediawiki_init.pp

a guest May 9th, 2018 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class mediawiki {
  2.   $phpmysql = $osfamily ? {
  3.     'redhat'  => 'php-mysql',
  4.     'debian'  => 'php5-mysql',
  5.     default   => 'php-mysql',
  6.   }
  7.  
  8.   package { $phpmysql:
  9.     ensure  => 'present',
  10.   }
  11.  
  12.  
  13. if $osfamily == 'redhat' {
  14.   package { 'php-xml':
  15.     ensure => 'present',
  16.     }
  17.   }
  18.  
  19.  
  20.  
  21.  
  22.   class { '::apache':
  23.     docroot    => '/var/www/html',
  24.     mpm_module => 'prefork',
  25.     subscribe  => Package[$phpmysql],
  26.   }
  27.  
  28.   class { '::apache::mod::php': }
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top