r103603 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103602‎ | r103603 | r103604 >
Date:18:21, 18 November 2011
Author:laner
Status:deferred
Tags:
Comment:
Add instancename variable to puppet config, so that the instance name can be used directly.
Modified paths:
  • /trunk/extensions/OpenStackManager/OpenStackNovaHost.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OpenStackManager/OpenStackNovaHost.php
@@ -202,7 +202,7 @@
203203 foreach ( $oldpuppetinfo['puppetvar'] as $variable => $value ) {
204204 $wgAuth->printDebug( "Found $variable", NONSENSITIVE );
205205 if ( $variable == "instancecreator_email" || $variable == "instancecreator_username"
206 - || $variable == "instancecreator_lang" || $variable == "instanceproject" ) {
 206+ || $variable == "instancecreator_lang" || $variable == "instanceproject" || $variable == "instancename" ) {
207207 $hostEntry['puppetvar'][] = $variable . '=' . $value;
208208 }
209209 }
@@ -669,6 +669,7 @@
670670 $hostEntry['puppetvar'][] = 'instancecreator_username=' . $wgUser->getName();
671671 $hostEntry['puppetvar'][] = 'instancecreator_lang=' . $wgLang->getCode();
672672 $hostEntry['puppetvar'][] = 'instanceproject=' . $project;
 673+ $hostEntry['puppetvar'][] = 'instancename=' . $hostname;
673674 }
674675 $dn = 'dc=' . $instanceid . ',dc=' . $domain->getDomainName() . ',' . $wgOpenStackManagerLDAPInstanceBaseDN;
675676

Status & tagging log