r100000 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99999‎ | r100000 | r100001 >
Date:22:41, 16 October 2011
Author:laner
Status:deferred (Comments)
Tags:historical 
Comment:
Puppet fixes
Modified paths:
  • /trunk/extensions/OpenStackManager/OpenStackNovaHost.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OpenStackManager/OpenStackNovaHost.php
@@ -183,7 +183,7 @@
184184 $hostEntry['puppetclass'][] = $class;
185185 }
186186 foreach ( $wgOpenStackManagerPuppetOptions['defaultvariables'] as $variable => $value ) {
187 - $hostEntry['puppetvar'][] = $variable . ' = ' . $value;
 187+ $hostEntry['puppetvar'][] = $variable . '=' . $value;
188188 }
189189 if ( isset( $puppetinfo['classes'] ) ) {
190190 foreach ( $puppetinfo['classes'] as $class ) {
@@ -192,9 +192,20 @@
193193 }
194194 if ( isset( $puppetinfo['variables'] ) ) {
195195 foreach ( $puppetinfo['variables'] as $variable => $value ) {
196 - $hostEntry['puppetvar'][] = $variable . ' = ' . $value;
 196+ $hostEntry['puppetvar'][] = $variable . '=' . $value;
197197 }
198198 }
 199+ $oldpuppetinfo = $this->getPuppetConfiguration();
 200+ if ( isset( $oldpuppetinfo['puppetvar'] ) ) {
 201+ $wgAuth->printDebug( "Checking for preexisting variables", NONSENSITIVE );
 202+ foreach ( $oldpuppetinfo['puppetvar'] as $variable => $value ) {
 203+ $wgAuth->printDebug( "Found $variable", NONSENSITIVE );
 204+ if ( $variable == "instancecreator_email" || $variable == "instancecreator_username"
 205+ || $variable == "instancecreator_lang" || $variable == "instanceproject" ) {
 206+ $hostEntry['puppetvar'][] = $variable . '=' . $value;
 207+ }
 208+ }
 209+ }
199210 if ( $hostEntry ) {
200211 wfSuppressWarnings();
201212 $success = ldap_modify( $wgAuth->ldapconn, $this->hostDN, $hostEntry );

Sign-offs

UserFlagDate
Steviex2tested03:55, 17 October 2011

Comments

#Comment by 😂 (talk | contribs)   22:54, 16 October 2011

Lame.

#Comment by Reedy (talk | contribs)   22:56, 16 October 2011

I know, it was on r99995, then it was over 100,000 :(

#Comment by 😂 (talk | contribs)   22:59, 16 October 2011

We could obliterate :p

#Comment by Ryan lane (talk | contribs)   23:01, 16 October 2011

Not if you want Labs to work ;)

#Comment by P858snake (talk | contribs)   23:01, 16 October 2011

EXTERMINATE!

#Comment by Johnduhart (talk | contribs)   23:05, 16 October 2011

nuke from orbit

#Comment by Ryan lane (talk | contribs)   23:08, 16 October 2011

The best part is I'm on ops. You devs couldn't even get the 100,000th commit. :D

#Comment by 😂 (talk | contribs)   23:38, 16 October 2011

I'm svnadm ;)

#Comment by Meno25 (talk | contribs)   01:00, 17 October 2011

Congratulations everyone. This is a historical day.

#Comment by Jeroen De Dauw (talk | contribs)   05:23, 17 October 2011

No fair - I was asleep!! :<0

#Comment by Platonides (talk | contribs)   14:57, 17 October 2011

Congratulations! We have now reached to revision #32

Status & tagging log