Include openstacklib defaults manifest.

This provides a mechanism for setting default across all modules.

Change-Id: Icf6689a120324c9c933bbd77d6309a208e47db55
Related-Bug: 1599113
This commit is contained in:
Sofer Athlan-Guyot 2016-07-07 12:01:26 +02:00
parent 78032ea0b7
commit a4b436b1aa
2 changed files with 51 additions and 40 deletions

View File

@ -1,6 +1,7 @@
# vswitch params
#
class vswitch::params {
include ::openstacklib::defaults
case $::osfamily {
'Redhat': {
$ovs_package_name = 'openvswitch'

View File

@ -107,9 +107,10 @@ describe 'vswitch::ovs' do
let :params do default_params end
let :facts do
{:osfamily => 'Redhat',
:ovs_version => '1.4.2',
}
OSDefaults.get_facts({
:osfamily => 'Redhat',
:ovs_version => '1.4.2',
})
end
let :platform_params do redhat_platform_params end
@ -126,9 +127,10 @@ describe 'vswitch::ovs' do
end
let :facts do
{:osfamily => 'Redhat',
:ovs_version => '1.4.2',
}
OSDefaults.get_facts({
:osfamily => 'Redhat',
:ovs_version => '1.4.2',
})
end
let :platform_params do redhat_platform_params end
@ -140,10 +142,11 @@ describe 'vswitch::ovs' do
let :params do default_params end
let :facts do
{:osfamily => 'Debian',
:operatingsystem => 'Debian',
:ovs_version => '1.4.2',
}
OSDefaults.get_facts({
:operatingsystem => 'Debian',
:osfamily => 'Debian',
:ovs_version => '1.4.2',
})
end
let :platform_params do debian_platform_params end
@ -159,10 +162,11 @@ describe 'vswitch::ovs' do
end
let :facts do
{:osfamily => 'Debian',
:operatingsystem => 'Debian',
:ovs_version => '1.4.2',
}
OSDefaults.get_facts({
:operatingsystem => 'Debian',
:osfamily => 'Debian',
:ovs_version => '1.4.2',
})
end
let :platform_params do debian_platform_params end
@ -174,11 +178,12 @@ describe 'vswitch::ovs' do
let :params do default_params end
let :facts do
{:osfamily => 'Debian',
:operatingsystem => 'Ubuntu',
:operatingsystemmajrelease => '14',
:ovs_version => '1.4.2',
}
OSDefaults.get_facts({
:operatingsystem => 'Ubuntu',
:operatingsystemmajrelease => '14',
:osfamily => 'Debian',
:ovs_version => '1.4.2',
})
end
let :platform_params do ubuntu_platform_params end
@ -194,11 +199,12 @@ describe 'vswitch::ovs' do
end
let :facts do
{:osfamily => 'Debian',
:operatingsystem => 'Ubuntu',
:operatingsystemmajrelease => '14',
:ovs_version => '1.4.2',
}
OSDefaults.get_facts({
:operatingsystem => 'Ubuntu',
:operatingsystemmajrelease => '14',
:osfamily => 'Debian',
:ovs_version => '1.4.2',
})
end
let :platform_params do ubuntu_platform_params end
@ -210,10 +216,11 @@ describe 'vswitch::ovs' do
let :params do default_params end
let :facts do
{:osfamily => 'FreeBSD',
:operatingsystem => 'FreeBSD',
:ovs_version => '1.4.2',
}
OSDefaults.get_facts({
:osfamily => 'FreeBSD',
:operatingsystem => 'FreeBSD',
:ovs_version => '1.4.2',
})
end
let :platform_params do freebsd_platform_params end
@ -238,10 +245,11 @@ describe 'vswitch::ovs' do
end
let :facts do
{:osfamily => 'FreeBSD',
:operatingsystem => 'FreeBSD',
:ovs_version => '1.4.2',
}
OSDefaults.get_facts({
:osfamily => 'FreeBSD',
:operatingsystem => 'FreeBSD',
:ovs_version => '1.4.2',
})
end
let :platform_params do freebsd_platform_params end
@ -267,10 +275,11 @@ describe 'vswitch::ovs' do
let :params do default_params end
let :facts do
{:osfamily => 'Solaris',
:operatingsystem => 'Solaris',
:ovs_version => '2.3.1',
}
OSDefaults.get_facts({
:osfamily => 'Solaris',
:operatingsystem => 'Solaris',
:ovs_version => '2.3.1',
})
end
let :platform_params do solaris_platform_params end
@ -295,10 +304,11 @@ describe 'vswitch::ovs' do
end
let :facts do
{:osfamily => 'Solaris',
:operatingsystem => 'Solaris',
:ovs_version => '2.3.1',
}
OSDefaults.get_facts({
:osfamily => 'Solaris',
:operatingsystem => 'Solaris',
:ovs_version => '2.3.1',
})
end
let :platform_params do solaris_platform_params end