Puppet Class: profile::parsoid::testing
- Defined in:
- modules/profile/manifests/parsoid/testing.pp
Overview
SPDX-License-Identifier: Apache-2.0 Parsoid testing rig: repo clone, nginx site, mysql client, firewall holes
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 |
# File 'modules/profile/manifests/parsoid/testing.pp', line 3
class profile::parsoid::testing (
Stdlib::Port $parsoid_port = lookup('parsoid::testing::parsoid_port'),
) {
git::clone { 'mediawiki/services/parsoid':
branch => 'master',
owner => 'root',
group => 'wikidev',
directory => '/srv/parsoid-testing',
shared => true,
}
# mysql client and configuration to provide command line access to
# parsoid testing database
include passwords::testreduce::mysql
$parsoid_cli_password = $passwords::testreduce::mysql::mysql_client_pass
$parsoid_test_db_host = 'localhost'
profile::auto_restarts::service { 'nginx': }
nginx::site { 'nginx-parsoid-testing':
content => template('profile/parsoid/parsoid-testing.nginx.conf.erb'),
notify => Service['nginx'],
}
firewall::service { 'nginx-parsoid-testing':
proto => 'tcp',
port => 8001,
src_sets => ['PRODUCTION_NETWORKS'],
}
# Presented by the @remote links shown on parsoid-rt-tests.wikimedia.org
firewall::service { 'parsoid-testing':
proto => 'tcp',
port => 8142,
src_sets => ['PRODUCTION_NETWORKS'],
}
}
|