Puppet Class: profile::dumps::generation::worker::common
- Defined in:
- modules/profile/manifests/dumps/generation/worker/common.pp
Overview
SPDX-License-Identifier: Apache-2.0
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 |
# File 'modules/profile/manifests/dumps/generation/worker/common.pp', line 2
class profile::dumps::generation::worker::common(
$dumps_nfs_server = lookup('dumps_nfs_server'),
$cron_nfs_server = lookup('dumps_cron_nfs_server'),
$managed_subdirs = lookup('dumps_managed_subdirs'),
$datadir_mount_type = lookup('dumps_datadir_mount_type'),
$extra_mountopts = lookup('profile::dumps::generation::worker::common::nfs_extra_mountopts'),
$php = lookup('profile::dumps::generation::worker::common::php'),
$dumps_misc_cronrunner = lookup('profile::dumps::generation::worker::common::dumps_misc_cronrunner'),
) {
# mw packages and dependencies
require profile::mediawiki::scap_proxy
require profile::mediawiki::common
class { 'profile::mediawiki::mcrouter_wancache':
prometheus_exporter => false
}
require profile::services_proxy::envoy
$xmldumpsmount = '/mnt/dumpsdata'
class { '::dumpsuser': }
if ($dumps_misc_cronrunner) {
$nfs_server = $cron_nfs_server
}
else {
$nfs_server = $dumps_nfs_server
}
snapshot::dumps::datamount { 'dumpsdatamount':
mountpoint => $xmldumpsmount,
mount_type => $datadir_mount_type,
extra_mountopts => $extra_mountopts,
server => $nfs_server,
managed_subdirs => $managed_subdirs,
user => 'dumpsgen',
group => 'dumpsgen',
}
# dataset server config files,
# stages files, dblists, html templates
class { '::snapshot::dumps::dirs':
user => 'dumpsgen',
xmldumpsmount => $xmldumpsmount,
xmldumpspublicdir => "${xmldumpsmount}/xmldatadumps/public",
xmldumpsprivatedir => "${xmldumpsmount}/xmldatadumps/private",
dumpstempdir => "${xmldumpsmount}/xmldatadumps/temp",
systemdjobsdir => "${xmldumpsmount}/otherdumps",
apachedir => '/srv/mediawiki',
}
class { '::snapshot::dumps': php => $php}
# scap3 deployment of dump scripts
scap::target { 'dumps/dumps':
deploy_user => 'dumpsgen',
manage_user => false,
key_name => 'dumpsdeploy',
}
ssh::userkey { 'dumpsgen':
content => secret('keyholder/dumpsdeploy.pub'),
}
}
|