Skip to content

Commit

Permalink
Ensure target service is running when using lioadm
Browse files Browse the repository at this point in the history
Change-Id: I279c981364d2099ded9c969e5d868051e0682753
Closes-Bug: rhbz#1109861
(cherry picked from commit 01d23fe)
  • Loading branch information
xbezdick committed Jul 18, 2014
1 parent be74bc6 commit 037cace
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions manifests/backend/iscsi.pp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
}

'lioadm': {
service { 'target':
ensure => running,
enable => true,
require => Package['targetcli'],
}

package { 'targetcli':
ensure => present,
name => $::cinder::params::lio_package_name,
Expand Down
5 changes: 5 additions & 0 deletions spec/classes/cinder_volume_iscsi_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@
end

it { should contain_package('targetcli').with_ensure('present')}
it { should contain_service('target').with(
:ensure => 'running',
:enable => 'true',
:require => 'Package[targetcli]'
) }

end

Expand Down

0 comments on commit 037cace

Please sign in to comment.