Merge "Fix behaviour of 'set-secret-value virsh' exec"
This commit is contained in:
@@ -76,8 +76,8 @@ class nova::compute::rbd (
|
|||||||
}
|
}
|
||||||
|
|
||||||
exec { 'set-secret-value virsh':
|
exec { 'set-secret-value virsh':
|
||||||
command => "/usr/bin/virsh secret-set-value --secret $(cat /etc/nova/virsh.secret) --base64 $(ceph auth get-key ${rbd_keyring})",
|
command => "/usr/bin/virsh secret-set-value --secret ${libvirt_rbd_secret_uuid} --base64 $(ceph auth get-key ${rbd_keyring})",
|
||||||
unless => "/usr/bin/virsh secret-list | grep ${libvirt_rbd_secret_uuid}",
|
unless => "/usr/bin/virsh secret-get-value ${libvirt_rbd_secret_uuid}",
|
||||||
require => Exec['get-or-set virsh secret']
|
require => Exec['get-or-set virsh secret']
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -85,7 +85,7 @@ describe 'nova::compute::rbd' do
|
|||||||
:require => 'File[/etc/nova/secret.xml]'
|
:require => 'File[/etc/nova/secret.xml]'
|
||||||
)
|
)
|
||||||
is_expected.to contain_exec('set-secret-value virsh').with(
|
is_expected.to contain_exec('set-secret-value virsh').with(
|
||||||
:command => "/usr/bin/virsh secret-set-value --secret $(cat /etc/nova/virsh.secret) --base64 $(ceph auth get-key client.rbd_test)"
|
:command => "/usr/bin/virsh secret-set-value --secret UUID --base64 $(ceph auth get-key client.rbd_test)"
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user