jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/359807 )
Change subject: striker: add two extra JS fill scripts
......................................................................
striker: add two extra JS fill scripts
Change-Id: Ie5ae17cddb10de586336ac411f3c70e7be96890e
---
M puppet/modules/role/templates/striker/VagrantRoleStriker.wiki.erb
1 file changed, 16 insertions(+), 0 deletions(-)
Approvals:
BryanDavis: Looks good to me, approved
jenkins-bot: Verified
diff --git a/puppet/modules/role/templates/striker/VagrantRoleStriker.wiki.erb
b/puppet/modules/role/templates/striker/VagrantRoleStriker.wiki.erb
index b8cf9c1..1da81c9 100644
--- a/puppet/modules/role/templates/striker/VagrantRoleStriker.wiki.erb
+++ b/puppet/modules/role/templates/striker/VagrantRoleStriker.wiki.erb
@@ -14,6 +14,13 @@
* Create admin user via the [<%= @phabricator_url %> web interface]
** The password you set here won't ever be used.
** You will link this account with the ldapwiki and devwiki Admin accounts
once the LDAP and MediaWiki providers are configured.
+*:<syntaxhighlight lang="javascript">
+Q = function(s){return document.querySelector('[name="' + s + '"]')};
+Q('username').value = "admin";
+Q("realName").value = "Administrator";
+Q("password").value = Q("confirm").value = "Vagrant1";
+Q("email").value = "[email protected]"
+</syntaxhighlight>
* [<%= @phabricator_url %>/auth/config/new/PhabricatorLDAPAuthProvider/
Configure an LDAP auth provider] connected to ldapwiki's LDAP server:
** LDAP Hostname: <kbd>127.0.0.1</kbd>
@@ -41,6 +48,15 @@
** Follow the links and directions given in the Phabricator page
*** Be sure to check the ''Allow consumer to specify a callback in requests
and use "callback" URL above as a required prefix.'' checkbox when registering
the OAuth consumer.
*** Use <kbd><%= @admin_email %></kbd> as the email address for the OAuth
request
+**:<syntaxhighlight lang="javascript>
+Q = function(s){return document.querySelector('[name="' + s + '"]')};
+Q("wpname").value = "Phabricator";
+Q("wpdescription").value = "Phabricator login";
+Q("wpcallbackUrl").value = "<%= @phabricator_url %>";
+Q("wpcallbackIsPrefix").checked = true;
+Q("wpemail").value = "[email protected]";
+Q("wpagreement").checked = true;
+</syntaxhighlight>
* [<%= @phabricator_url %>/auth/link/mediawiki:devwiki/ Connect Phabricator
admin user with devwiki Admin account]
--
To view, visit https://gerrit.wikimedia.org/r/359807
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie5ae17cddb10de586336ac411f3c70e7be96890e
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/vagrant
Gerrit-Branch: master
Gerrit-Owner: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: BryanDavis <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits