-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathextrapackages.pp
More file actions
251 lines (245 loc) · 5.82 KB
/
extrapackages.pp
File metadata and controls
251 lines (245 loc) · 5.82 KB
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
# Packages to be installed on user-facing machines.
#
# In order to avoid confusing users (and to be as convenient as possible), we
# maintain a common set of packages between "login" servers, desktops, and web
# servers.
#
# Some of these packages don't make sense in some of these environments, but
# the marginal cost of installing useless packages is low, and it's easier to
# maintain this one config (and better for users in at least some cases).
#
# This is in a separate manifest so that it can be included by other modules
# without concerns of redeclaring ocf::packages with different parameters.
class ocf::extrapackages {
# special snowflake packages that require some config
include ocf::packages::chrome
include ocf::packages::emacs
include ocf::packages::kubectl
include ocf::packages::mysql
include ocf::packages::mysql_server
include ocf::packages::nmap
include ocf::packages::matplotlib
# other packages
package {
# misc. packages helpful for users
[
'ack',
'alpine',
'apache2-dev',
'apache2-utils',
'asciinema',
'autoconf',
'autojump',
'automake',
'biber',
'bind9utils',
'bison',
'bogofilter',
'build-essential',
'cabal-install',
'cgdb',
'chicken-bin',
'chktex',
'chrpath',
'cmake',
'cowsay',
'debhelper',
'default-jdk',
'default-libmysqlclient-dev',
'dh-virtualenv',
'elinks',
'elpa-markdown-mode',
'epic5',
'flex',
'fortune-mod',
'gdb',
'gem2deb',
'genisoimage',
'ghc',
'git-buildpackage',
'golang',
'graphicsmagick',
'graphviz',
'haveged',
'icedtea-netx',
'ikiwiki',
'inotify-tools',
'intltool',
'ipython3',
'irssi',
'julia',
'jupyter-console',
'jupyter-core',
'jupyter-notebook',
'keychain',
'kubernetes-deploy',
'latexmk',
'libcrack2-dev',
'libdbi-perl',
'libexpect-perl',
'libfcgi-dev',
'libffi-dev',
'libgdbm-dev',
'libgtk-3-dev',
'libgtk2.0-dev',
'libicu-dev',
'libjpeg-dev',
'liblua5.1-0-dev',
'libmagickwand-dev',
'libncurses5-dev',
'libopencv-dev',
'libpq-dev',
'libreadline-dev',
'libsqlite3-dev',
'libtidy-dev',
'libtool',
'libunicode-map8-perl',
'libwww-mechanize-perl',
'libxml2-dev',
'libxslt1-dev',
'libyaml-dev',
'lolcat',
'lynx',
'maven',
'mercurial',
'mosh',
'mutt',
'nasm',
'neofetch',
'neovim',
'nodeenv',
'nodejs',
'octave',
'pandoc',
'pdfchain',
'php-bcmath',
'php-bz2',
'php-cli',
'php-curl',
'php-gd',
'php-intl',
'php-mbstring',
'php-mysql',
'php-sqlite3',
'php-soap',
'php-xml',
'php-zip',
'pkg-config',
'postgresql-client',
'pssh',
'puppet-lint',
'python3-flake8',
'python3-flask',
'python3-jinja2',
'python3-lxml',
'python3-mock',
'python3-mysqldb',
'python3-nose',
'python3-notebook',
'python3-pandas',
'python3-progressbar',
'python3-pytest',
'python3-pytest-cov',
'python3-requests-oauthlib',
'python3-sleekxmpp',
'python3-stdeb',
'python3-sympy',
'python3-tk',
'qrencode',
'quilt',
'r-base',
'r-cran-data.table',
'r-cran-dplyr',
'r-cran-ggplot2',
'r-cran-jsonlite',
'r-cran-lubridate',
'r-cran-magrittr',
'r-cran-markdown',
'r-cran-tidyr',
'r-cran-xml2',
'r-cran-zoo',
'r10k',
'rails',
'rbenv',
'ripgrep',
'ruby-build',
'ruby-dev',
'ruby-fcgi',
'ruby-mysql2',
'ruby-ronn',
'ruby-sqlite3',
'scala',
'screenfetch',
'shellcheck',
'silversearcher-ag',
'sqlite3',
'subversion',
'texlive',
'texlive-bibtex-extra',
'texlive-extra-utils',
'texlive-humanities',
'texlive-latex-extra',
'texlive-publishers',
'texlive-science',
'tox',
'twine',
'unison',
'units',
'vagrant',
'valgrind',
'weechat',
'zlib1g-dev',
'znc',
]:;
}
if Integer($facts['os['distro']['release']['major']']) >= 11 {
package {
[
'bat',
]:;
}
}
ocf::repackage { 'git-lfs':
backport_on => ['buster', 'stretch'],
}
if $facts['facts['os']['distro']['codename']'] == 'stretch' {
package {
[
# php-mcrypt is deprecated since PHP 7.1 in favor of using openssl
# instead and buster has PHP 7.3:
# http://php.net/manual/en/migration71.deprecated.php
'php-mcrypt',
# This isn't available as php-dba unfortunately (that's just a virtual
# package for this), and with virtual packages puppet will try to
# install them every run, leading to unnecessary noise
'php7.0-dba',
]:;
}
} elsif $facts['facts['os']['distro']['codename']'] == 'buster' {
# This isn't available as php-dba unfortunately (that's just a virtual
# package for this), and with virtual packages puppet will try to install
# them every run, leading to unnecessary noise
package { 'php7.3-dba':; }
} elsif $facts['facts['os']['distro']['codename']'] == 'bullseye' {
# This isn't available as php-dba unfortunately (that's just a virtual
# package for this), and with virtual packages puppet will try to install
# them every run, leading to unnecessary noise
package { 'php7.4-dba':; }
}
# install wp-cli
# TODO: can we debian-package this?
file { '/usr/local/sbin/download-wp-cli':
source => 'puppet:///modules/ocf/packages/download-wp-cli',
mode => '0755';
}
cron { 'download-wp-cli':
command => '/usr/local/sbin/download-wp-cli',
special => 'weekly',
require => File['/usr/local/sbin/download-wp-cli'];
}
exec { 'download-wp-cli':
command => '/usr/local/sbin/download-wp-cli',
creates => '/usr/local/bin/wp',
require => File['/usr/local/sbin/download-wp-cli'];
}
}