Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9124427
init.pp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
init.pp
View Options
# == 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 funtion 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
#
# class { 'mediawiki':
# servers => [ 'pool.ntp.org', 'ntp.local.company.com' ],
# }
#
# === Authors
#
# Author Name <author@domain.com>
#
# === Copyright
#
# Copyright 2016 Your name here, unless otherwise noted.
#
class
mediawiki
{
$packages
=
[
'mediawiki'
,
'imagemagick'
,
'librsvg2-bin'
,
]
package
{
$packages:
ensure
=>
installed
,
}
apt
::
pin
{
'mediawiki'
:
ensure
=>
'absent'
,
}
apt
::
pin
{
'mediawiki-extensions'
:
ensure
=>
'absent'
,
}
$config_meta
=
'/etc/mediawiki/LocalSettings.php'
concat
{
$config_meta:
ensure
=>
present
,
owner
=>
'root'
,
group
=>
'www-data'
,
mode
=>
'0640'
,
require
=>
Package
[
'mediawiki'
],
}
concat
::
fragment
{
'mediawiki_config_meta_header'
:
target
=>
$config_meta,
source
=>
'puppet:///modules/mediawiki/config_meta_header'
,
order
=>
'00'
,
}
concat
::
fragment
{
'mediawiki_config_meta_footer'
:
target
=>
$config_meta,
source
=>
'puppet:///modules/mediawiki/config_meta_footer'
,
order
=>
'99'
,
}
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Jun 21, 7:06 PM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3244151
Attached To
rSPMW Puppet MediaWiki module
Event Timeline
Log In to Comment