Awight has uploaded a new change for review.
https://gerrit.wikimedia.org/r/207037
Change subject: Split out DonationInterface settings
......................................................................
Split out DonationInterface settings
Change-Id: Ifb201606d8155bb529e4357252a2f17989a1fea3
---
A puppet/modules/payments/manifests/donation_interface.pp
M puppet/modules/payments/manifests/init.pp
2 files changed, 68 insertions(+), 63 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/vagrant
refs/changes/37/207037/1
diff --git a/puppet/modules/payments/manifests/donation_interface.pp
b/puppet/modules/payments/manifests/donation_interface.pp
new file mode 100644
index 0000000..c9b1280
--- /dev/null
+++ b/puppet/modules/payments/manifests/donation_interface.pp
@@ -0,0 +1,67 @@
+# == Class: payments::donation_interface
+# Configure the DonationInterface extension
+#
+class payments::donation_interface {
+ mediawiki::extension { 'payments:ContributionTracking':
+ needs_update => true,
+ }
+
+ # FIXME: Use relative paths to load forms.
+ $DI = "${::payments::dir}/extensions/DonationInterface"
+
+ mediawiki::extension { 'payments:DonationInterface':
+ settings => {
+ wgDonationInterfaceEnableAdyen => true,
+ wgDonationInterfaceEnableAmazon => true,
+ wgDonationInterfaceEnableFormChooser => true,
+ wgDonationInterfaceEnableGlobalCollect => true,
+ wgDonationInterfaceEnablePaypal => true,
+ wgDonationInterfaceEnableQueue => true,
+ wgDonationInterfaceEnableStomp => true,
+ wgDonationInterfaceTestMode => true,
+
+ # TODO: the following cruft is brought to u by a forward reference snafu.
+ # Better if DonationInterfaceFormSettings would use relative paths?
+ wgAdyenGatewayHtmlFormDir =>
"${DI}/adyen_gateway/forms/html",
+ wgAmazonGatewayHtmlFormDir =>
"${DI}/amazon_gateway/forms/html",
+ wgGlobalCollectGatewayHtmlFormDir =>
"${DI}/globalcollect_gateway/forms/html",
+ wgPayflowProGatewayHtmlFormDir =>
"${DI}/payflowpro_gateway/forms/html",
+ wgPaypalGatewayHtmlFormDir =>
"${DI}/paypal_gateway/forms/html",
+
+ wgAdyenGatewayAccountInfo => {
+ 'test' => {
+ 'AccountName' => 'test',
+ 'SkinCode' => 'test',
+ 'SharedSecret' => 'test',
+ 'PublicKey' => 'test',
+ },
+ },
+ wgDonationInterfaceAdyenPublicKey =>
'10001|9C916360EC9BD4530A9BCF8367069EDD88E48E0569310B8653452723372B1635035E3DE63D1EF882D17918E0E6EA73D8248815C2D95E8D2EAE6F65A0D8359E903AB84024A3230F6A05797C9116FA0264FCD00E5ED3A2BC0FA897E74DAA4496337318507659EF5D03974D92204C9464C197B1E11FA7814442751EA069EFC2E470A9E82A8E621D899A02C4173B4019F74F16A59B22336421639BAC1513644EEE47298CCBAA681C1E8F0B00B0BC18638BA7FEA22FC394972ACE4BD7038E866CF3FFBF20FB860669137083EE73DD53DE5934ADC6378B9',
+
+ wgGlobalCollectGatewayAccountInfo => {
+ 'test' => {
+ 'MerchantID' => 'test'
+ }
+ },
+
+ wgPaypalGatewayURL =>
'https://www.sandbox.paypal.com/cgi-bin/webscr',
+
+ wgStompServer => 'tcp://localhost:61613',
+
+ wgDonationInterfaceUseSyslog => true,
+ },
+ needs_update => true,
+ require => [
+ Mediawiki::Extension[
+ 'payments:ContributionTracking',
+ 'payments:FundraisingEmailUnsubscribe',
+ 'payments:ParserFunctions'
+ ],
+ ],
+ }
+
+ mediawiki::settings { 'payments:DonationInterfaceFormSettings':
+ values => {},
+ footer => "require_once(
'${::payments::dir}/DonationInterfaceFormSettings.php' );"
+ }
+}
diff --git a/puppet/modules/payments/manifests/init.pp
b/puppet/modules/payments/manifests/init.pp
index 892a2c6..8c99ef7 100644
--- a/puppet/modules/payments/manifests/init.pp
+++ b/puppet/modules/payments/manifests/init.pp
@@ -22,6 +22,7 @@
$dir,
) {
require ::role::mediawiki
+ include ::payments::donation_interface
git::clone { 'mediawiki-core-fr':
remote => 'https://gerrit.wikimedia.org/r/p/mediawiki/core.git',
@@ -37,73 +38,10 @@
]
}
- mediawiki::extension { 'payments:ContributionTracking':
- needs_update => true,
- }
-
mediawiki::extension { 'payments:FundraisingEmailUnsubscribe':
entrypoint => 'FundraiserUnsubscribe.php',
# FIXME: don't require: wgTwigPath => "${::twig::dir}/current/lib/Twig",
}
mediawiki::extension { 'payments:ParserFunctions': }
-
- # FIXME: Use relative paths to load forms.
- $DI = "${dir}/extensions/DonationInterface"
-
- mediawiki::extension { 'payments:DonationInterface':
- settings => {
- wgDonationInterfaceEnableAdyen => true,
- wgDonationInterfaceEnableAmazon => true,
- wgDonationInterfaceEnableFormChooser => true,
- wgDonationInterfaceEnableGlobalCollect => true,
- wgDonationInterfaceEnablePaypal => true,
- wgDonationInterfaceEnableQueue => true,
- wgDonationInterfaceEnableStomp => true,
- wgDonationInterfaceTestMode => true,
-
- # TODO: the following cruft is brought to u by a forward reference snafu.
- # Better if DonationInterfaceFormSettings would use relative paths?
- wgAdyenGatewayHtmlFormDir =>
"${DI}/adyen_gateway/forms/html",
- wgAmazonGatewayHtmlFormDir =>
"${DI}/amazon_gateway/forms/html",
- wgGlobalCollectGatewayHtmlFormDir =>
"${DI}/globalcollect_gateway/forms/html",
- wgPayflowProGatewayHtmlFormDir =>
"${DI}/payflowpro_gateway/forms/html",
- wgPaypalGatewayHtmlFormDir =>
"${DI}/paypal_gateway/forms/html",
-
- wgAdyenGatewayAccountInfo => {
- 'test' => {
- 'AccountName' => 'test',
- 'SkinCode' => 'test',
- 'SharedSecret' => 'test',
- 'PublicKey' => 'test',
- },
- },
- wgDonationInterfaceAdyenPublicKey =>
'10001|9C916360EC9BD4530A9BCF8367069EDD88E48E0569310B8653452723372B1635035E3DE63D1EF882D17918E0E6EA73D8248815C2D95E8D2EAE6F65A0D8359E903AB84024A3230F6A05797C9116FA0264FCD00E5ED3A2BC0FA897E74DAA4496337318507659EF5D03974D92204C9464C197B1E11FA7814442751EA069EFC2E470A9E82A8E621D899A02C4173B4019F74F16A59B22336421639BAC1513644EEE47298CCBAA681C1E8F0B00B0BC18638BA7FEA22FC394972ACE4BD7038E866CF3FFBF20FB860669137083EE73DD53DE5934ADC6378B9',
-
- wgGlobalCollectGatewayAccountInfo => {
- 'test' => {
- 'MerchantID' => 'test'
- }
- },
-
- wgPaypalGatewayURL =>
'https://www.sandbox.paypal.com/cgi-bin/webscr',
-
- wgStompServer => 'tcp://localhost:61613',
-
- wgDonationInterfaceUseSyslog => true,
- },
- needs_update => true,
- require => [
- Mediawiki::Extension[
- 'payments:ContributionTracking',
- 'payments:FundraisingEmailUnsubscribe',
- 'payments:ParserFunctions'
- ],
- ],
- }
-
- mediawiki::settings { 'payments:DonationInterfaceFormSettings':
- values => {},
- footer => "require_once( '${dir}/DonationInterfaceFormSettings.php' );"
- }
}
--
To view, visit https://gerrit.wikimedia.org/r/207037
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifb201606d8155bb529e4357252a2f17989a1fea3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/vagrant
Gerrit-Branch: master
Gerrit-Owner: Awight <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits