Andrew Bogott has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/258193

Change subject: Replace use of $::is_virtual with $::virtual == kvm
......................................................................

Replace use of $::is_virtual with $::virtual == kvm

Why doesn't the former work?  It does on the commandline but not
for puppet.

Change-Id: Id6fa54b0337a95595cc6b2c8ef039c83082dbf1e
---
M modules/role/manifests/labs/instance.pp
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/93/258193/1

diff --git a/modules/role/manifests/labs/instance.pp 
b/modules/role/manifests/labs/instance.pp
index 0857531..760a07c 100644
--- a/modules/role/manifests/labs/instance.pp
+++ b/modules/role/manifests/labs/instance.pp
@@ -33,7 +33,7 @@
     }
 
     # No NFS on labs metal for now.
-    if $::is_virtual {
+    if $::virtual == 'kvm' {
         # This script will block until the NFS volume is available
         file { '/usr/local/sbin/block-for-export':
             ensure => present,

-- 
To view, visit https://gerrit.wikimedia.org/r/258193
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id6fa54b0337a95595cc6b2c8ef039c83082dbf1e
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Andrew Bogott <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to