Merge "Skip docker resource install with UCA packages"
This commit is contained in:
commit
7c0d1977ca
@ -137,14 +137,17 @@ class heat::docker_resource (
|
||||
}
|
||||
}
|
||||
|
||||
if $::osfamily == 'RedHat' {
|
||||
$docker_resource_package_name = 'openstack-heat-docker'
|
||||
} elsif $::osfamily == 'Debian' {
|
||||
$docker_resource_package_name = 'heat-docker'
|
||||
}
|
||||
# TODO(aschultz): ubuntu does not have a heat docker package
|
||||
if !$::os_package_type or $::os_package_type != 'ubuntu' {
|
||||
if $::osfamily == 'RedHat' {
|
||||
$docker_resource_package_name = 'openstack-heat-docker'
|
||||
} elsif $::osfamily == 'Debian' {
|
||||
$docker_resource_package_name = 'heat-docker'
|
||||
}
|
||||
|
||||
class { 'heat::docker_resource' :
|
||||
package_name => $docker_resource_package_name,
|
||||
class { 'heat::docker_resource' :
|
||||
package_name => $docker_resource_package_name,
|
||||
}
|
||||
}
|
||||
|
||||
$haproxy_stats_url = "http://${service_endpoint}:10000/;csv"
|
||||
|
@ -35,10 +35,21 @@ describe manifest do
|
||||
sahara = Noop.hiera_structure('sahara/enabled')
|
||||
|
||||
it 'should install heat-docker package only after heat-engine' do
|
||||
should contain_package('heat-docker').with(
|
||||
'ensure' => 'installed',
|
||||
'require' => 'Package[heat-engine]',
|
||||
)
|
||||
if !facts.has_key?(:os_package_type) or facts[:os_package_type] != 'ubuntu'
|
||||
if facts[:osfamily] == 'RedHat'
|
||||
heat_docker_package_name = 'openstack-heat-docker'
|
||||
elsif facts[:osfamily] == 'Debian'
|
||||
heat_docker_package_name = 'heat-docker'
|
||||
end
|
||||
should contain_package('heat-docker').with(
|
||||
'ensure' => 'installed',
|
||||
'name' => heat_docker_package_name,
|
||||
'require' => 'Package[heat-engine]')
|
||||
else
|
||||
should_not contain_package('heat-docker').with(
|
||||
'ensure' => 'installed',
|
||||
'require' => 'Package[heat-engine]')
|
||||
end
|
||||
end
|
||||
|
||||
it 'should configure default_log_levels' do
|
||||
|
Loading…
Reference in New Issue
Block a user