SHARE
TWEET

Untitled

a guest May 9th, 2018 119 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.   class { '::apache':
  21.     docroot => '/var/www/html',
  22.     mpm_module => 'prefork',
  23.     subscribe => Package[$phpmysql],
  24.   }
  25.  
  26.   class { '::apache::mod::php': }
  27.  
  28.  
  29. class { '::mysql::server':
  30.   root_password           => 'training',
  31.   remove_default_accounts => true,
  32.   override_options        => $override_options
  33. }
  34.  
  35. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top