Andrew Bogott has submitted this change and it was merged.

Change subject: Mount /dev/md1 on /var/lib/nova/instances for compute nodes.
......................................................................


Mount /dev/md1 on /var/lib/nova/instances for compute nodes.

Also added virt1004 to the set of live compute nodes so I can
test this.

Change-Id: Ibc14396df81c29e9a1ed5404c56905ea1ac40220
---
M manifests/role/nova.pp
M manifests/site.pp
2 files changed, 11 insertions(+), 2 deletions(-)

Approvals:
  Andrew Bogott: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/manifests/role/nova.pp b/manifests/role/nova.pp
index 2dd4fde..9e66e85 100644
--- a/manifests/role/nova.pp
+++ b/manifests/role/nova.pp
@@ -379,4 +379,13 @@
                include role::nova::api,
                        role::nova::network
        }
+
+       if $realm == 'production' {
+               mount { '/var/lib/nova/instances':
+                       ensure => mounted,
+                       device => '/dev/md1',
+                       fstype => 'xfs',
+                       options => 'defaults',
+               }
+       }
 }
diff --git a/manifests/site.pp b/manifests/site.pp
index b183b0c..7c421e0 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -2624,7 +2624,7 @@
     sudo_user { "mhoover": privileges => ['ALL = NOPASSWD: ALL'] }
 }
 
-node /virt100[1-3].eqiad.wmnet/ {
+node /virt100[1-4].eqiad.wmnet/ {
     $cluster = "virt"
 
     $openstack_version = "havana"
@@ -2633,7 +2633,7 @@
         role::nova::compute
 }
 
-node /virt100[4-9].eqiad.wmnet/ {
+node /virt100[5-9].eqiad.wmnet/ {
     $cluster = "virt"
     # full root for mhoover, Labs migration contractor
     include admins::labs

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibc14396df81c29e9a1ed5404c56905ea1ac40220
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Andrew Bogott <[email protected]>
Gerrit-Reviewer: Andrew Bogott <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to