Puppet Class: mediawiki

Defined in:
manifests/init.pp

Overview

Class: mediawiki

Full description of class mediawiki here.

Parameters


Document parameters here.

  • ‘sample parameter`

Explanation of what this parameter affects and what it defaults to. e.g. “Specify one or more upstream ntp servers as an array.”

Variables


Here you should define a list of variables that this module would require.

  • ‘sample variable`

Explanation of how this variable affects the function of this class and if
it has a default. e.g. "The parameter enc_ntp_servers must be set by the
External Node Classifier as a comma separated list of hostnames." (Note,
global variables should be avoided in favor of class parameters as
of Puppet 2.6.)

Examples


Authors


Author Name <author@domain.com>

Copyright


Copyright 2019 Your name here, unless otherwise noted.

Examples:

class { 'mediawiki':
  servers => [ 'pool.ntp.org', 'ntp.local.company.com' ],
}


45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'manifests/init.pp', line 45

class mediawiki {

 $phpmysql = $osfamily ? {
	
	'redhat' => 'php-mysql',
	'ubuntu' => 'php5-mysql',
	default => 'php-mysql',
 }


 package { $phpmysql :
	ensure => 'present',
 }

 if $osfamily == 'redhat'{

    package {'php-xml':
	ensure => 'present',
    }
 }




 class { '::apache':

	docroot => '/var/www/html',
	mpm_module => 'prefork',
	subscribe => Package[$phpmysql],
 } 


 class {'::apache::mod::php':}



 vcsrepo { '/var/www/html':
	ensure => 'present',
	provider => 'git',
	source => "https://github.com/wikimedia/mediawiki.git",
	revision => "REL1_23",
 }

 file { '/var/www/html/index.html':
		ensure => 'absent',
 }


 File['/var/www/html/index.html'] -> Vcsrepo['/var/www/html']


 class { '::mysql::server':
	
	root_password => 'training',
 }


 class {'::firewall':}


 firewall { '000 allow http access':
	port => '80',
	proto => 'tcp',
	action => 'accept',
 }

}