Setup ReCaptcha in Wiki to Prevent Spam
Plumb wg_recaptchapublickey and wg_recaptchaprivatekey variables through from hiera into the mediawiki module for wiki.openstack.org. Change-Id: I0f184c9bfa2bdaaca2478500d8f3b418c9bf77ae Depends-On: Idfa2c01fb9d31f06643d6c82438c33db1ff33009
This commit is contained in:
parent
65bab038bc
commit
4dca9fde53
@ -379,7 +379,8 @@ node 'wiki.openstack.org' {
|
||||
wg_dbpassword => hiera('wiki_wg_dbpassword'),
|
||||
wg_secretkey => hiera('wiki_wg_secretkey'),
|
||||
wg_upgradekey => hiera('wiki_wg_upgradekey'),
|
||||
wg_captchaquestions => hiera('wiki_wg_captchaquestions'),
|
||||
wg_recaptchapublickey => hiera('wiki_wg_recaptchapublickey'),
|
||||
wg_recaptchaprivatekey => hiera('wiki_wg_recaptchaprivatekey'),
|
||||
wg_googleanalyticsaccount => hiera('wiki_wg_googleanalyticsaccount'),
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,8 @@ class openstack_project::wiki (
|
||||
$wg_dbpassword = undef,
|
||||
$wg_secretkey = undef,
|
||||
$wg_upgradekey = undef,
|
||||
$wg_captchaquestions = {},
|
||||
$wg_recaptchapublickey = undef,
|
||||
$wg_recaptchaprivatekey = undef,
|
||||
$wg_googleanalyticsaccount = undef,
|
||||
) {
|
||||
|
||||
@ -42,7 +43,8 @@ class openstack_project::wiki (
|
||||
wg_dbpassword => $wg_dbpassword,
|
||||
wg_secretkey => $wg_secretkey,
|
||||
wg_upgradekey => $wg_upgradekey,
|
||||
wg_captchaquestions => $wg_captchaquestions,
|
||||
wg_recaptchapublickey => $wg_recaptchapublickey,
|
||||
wg_recaptchaprivatekey => $wg_recaptchaprivatekey,
|
||||
wg_googleanalyticsaccount => $wg_googleanalyticsaccount,
|
||||
}
|
||||
class { 'memcached':
|
||||
|
Loading…
Reference in New Issue
Block a user