aboutsummaryrefslogtreecommitdiffstats
path: root/manifests/profile
diff options
context:
space:
mode:
authorEmilien Macchi <emilien@redhat.com>2016-06-17 12:10:57 -0400
committerEmilien Macchi <emilien@redhat.com>2016-06-29 15:38:58 +0000
commitd8602d28c76ca63af3bbe358047b3d3d8624b356 (patch)
treef8abc4cf735f61bee5ce2624f1e1743b5e3cdce0 /manifests/profile
parentae821d82bc5031998c1d5c4b07094d603cb8b208 (diff)
profile/nova/compute: add iscsi bits
Add iscsi bits allowing live migration. Change-Id: I495a7af4220f0b35e9fd0a6cfc146610d8f46d10
Diffstat (limited to 'manifests/profile')
-rw-r--r--manifests/profile/base/nova/compute.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/profile/base/nova/compute.pp b/manifests/profile/base/nova/compute.pp
index 579b474..4297031 100644
--- a/manifests/profile/base/nova/compute.pp
+++ b/manifests/profile/base/nova/compute.pp
@@ -36,6 +36,17 @@ class tripleo::profile::base::nova::compute (
# deploy bits to connect nova compute to neutron
include ::nova::network::neutron
+
+ # When utilising images for deployment, we need to reset the iSCSI initiator name to make it unique
+ # https://bugzilla.redhat.com/show_bug.cgi?id=1244328
+ exec { 'reset-iscsi-initiator-name':
+ command => '/bin/echo InitiatorName=$(/usr/sbin/iscsi-iname) > /etc/iscsi/initiatorname.iscsi',
+ onlyif => '/usr/bin/test ! -f /etc/iscsi/.initiator_reset',
+ before => File['/etc/iscsi/.initiator_reset'],
+ }
+ file { '/etc/iscsi/.initiator_reset':
+ ensure => present,
+ }
}
}