* Add gerrit configuration
* s/Puppetfile/Gemfile: puppetfile with this content is a mistake
* Fix puppet modulefile (stackforge migration)
* Add puppet-lint configuration like other puppet projects on stackforge
* Add Gemlock file
* And update gitingore
* Solve lint issues, and minors improvments
[lint issues]
* class not documented
* variable not enclosed in {}
* double quoted string containing no variables
* case statement without a default case
* indentation of => is not properly aligned
* soft and hard tabs
[improvments]
* Use a case instead of a if/if
Change-Id: I58614f7995e6b8f3f7f6426269077810962cc682
20 lines
485 B
Puppet
20 lines
485 B
Puppet
# vswitch params
|
|
#
|
|
class vswitch::params {
|
|
case $::osfamily {
|
|
'Redhat': {
|
|
$ovs_package_name = 'openvswitch'
|
|
$ovs_service_name = 'openvswitch'
|
|
$provider = 'ovs_redhat'
|
|
}
|
|
'Debian': {
|
|
$ovs_package_name = ['openvswitch-switch', 'openvswitch-datapath-dkms']
|
|
$ovs_service_name = 'openvswitch-switch'
|
|
$provider = 'ovs'
|
|
}
|
|
default: {
|
|
fail " Osfamily ${::osfamily} not supported yet"
|
|
}
|
|
} # Case $::osfamily
|
|
}
|