Fix package dependency to be on title instead of name
The service in generic_service should require the related package by title and not by name. Change-Id: If4aacb10800b274810845b5656c3c6e0be1fd255
This commit is contained in:
parent
a0d934b6e2
commit
47c741f8b4
@ -56,7 +56,7 @@ define nova::generic_service(
|
|||||||
name => $service_name,
|
name => $service_name,
|
||||||
enable => $enabled,
|
enable => $enabled,
|
||||||
hasstatus => true,
|
hasstatus => true,
|
||||||
require => [Package['nova-common'], Package[$package_name]],
|
require => [Package['nova-common'], Package[$nova_title]],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -80,6 +80,8 @@ describe 'nova::vncproxy' do
|
|||||||
:ensure => 'present'
|
:ensure => 'present'
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
it { is_expected.to compile.with_all_deps }
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -26,7 +26,7 @@ describe 'nova::generic_service' do
|
|||||||
'name' => 'food',
|
'name' => 'food',
|
||||||
'ensure' => 'running',
|
'ensure' => 'running',
|
||||||
'enable' => true,
|
'enable' => true,
|
||||||
'require' => ['Package[nova-common]', 'Package[foo]']
|
'require' => ['Package[nova-common]', 'Package[nova-foo]']
|
||||||
)}
|
)}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user