/
packages.pp
181 lines (152 loc) · 4.22 KB
/
packages.pp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
#
# Holds all the packages needed for continuous integration.
#
# FIXME: split this!
#
class contint::packages {
include androidsdk::dependencies
include ::mediawiki::packages
# Disable APC entirely it gets confused when files changes often
file { '/etc/php5/conf.d/apc.ini':
owner => 'root',
group => 'root',
mode => '0444',
source => 'puppet:///modules/contint/disable-apc.ini',
require => Package['php-apc'],
}
# Get several OpenJDK packages including the jdk to build mobile
# applications.
# (openjdk is the default distribution for the java define.
# The java define is found in modules/java/manifests/init.pp )
if ! defined ( Package['openjdk-6-jdk'] ) {
package { 'openjdk-6-jdk': ensure => present }
}
if ! defined ( Package['openjdk-7-jdk'] ) {
package { 'openjdk-7-jdk': ensure => present }
}
package { 'maven2':
ensure => present,
}
# Lint authdns templates & config
include authdns::lint
include subversion::client
# PHP related packages
package { [
'php5-dev', # phpize
'php5-gd',
'php5-parsekit',
'php5-pgsql',
'php5-sqlite',
'php5-tidy',
'php5-xdebug',
]:
ensure => present,
}
# Database related
package { [
'mysql-server',
'sqlite3',
'postgresql',
]:
ensure => present,
}
# Development packages
package { [
'librsvg2-2',
'asciidoc',
'rake',
'ruby1.9.3', # To let us syntax check scripts using 1.9
'pep8',
'pyflakes',
'pylint',
'python-simplejson', # For mw/ext/Translate among others
'luajit',
'libevent-dev', # PoolCounter daemon
'liblua5.1-0-dev',
'g++',
'libthai-dev',
'doxygen',
'python-sphinx', # python documentation
'ruby-jsduck',
]:
ensure => present,
}
if ! defined ( Package['python-requests'] ) {
package { 'python-requests':
ensure => present,
}
}
# Includes packages needed for building
# analytics and statistics related packages.
# these are needed to build libanon and udp-filter
package { ['pkg-config', 'libpcap-dev', 'libdb-dev']:
ensure => 'installed',
}
# Used to build analytics udp-filters
package { ['libcidr0-dev', 'libanon0-dev']:
ensure => 'latest',
}
# Used for mobile device classification in Kraken:
package { [
'libdclass0',
'libdclass0-dev',
'libdclass-jni',
'libdclass-java',
'libdclass-data',
]:
ensure => 'installed',
}
# these packages are used by the tests for wikistats to parse the
# generated reports to see if they are correct
package { [
'libhtml-treebuilder-xpath-perl',
'libjson-xs-perl',
'libnet-patricia-perl',
'libtemplate-perl',
'libweb-scraper-perl',
]:
ensure => 'installed',
}
# need geoip to build udp-filter
include geoip
# Node.js evolves quickly so we want to update it
# automatically.
package { 'nodejs':
ensure => latest,
}
# qunit tests depends on curl
package { [
'curl',
]:
ensure => present,
}
# Colordiff gives us nice coloring in Jenkins console whenever
# it is used instead of the stock diff.
package { 'colordiff':
ensure => present,
}
# Packages to support use of rspec on puppet modules:
package { [
# Packages imported from Debian Sid:
# Most of these would be pulled in via dependencies
# from ruby-rspec but I'm enumerating them here as a note
# that the standard ubuntu versions are insufficient.
'rubygems-integration',
'ruby-metaclass',
'ruby-rspec-mocks',
'ruby-rspec-expectations',
'ruby-mocha',
'ruby-rspec',
'ruby-rspec-core',
# Packages built using gem2deb:
'ruby-rspec-puppet',
'ruby-puppetlabs-spec-helper',
]:
ensure => present;
}
package { [
'ocaml-nox',
]:
ensure => present;
}
}