Add coala support and fix/lint files
[integration/packaging/puppet-opendaylight.git] / manifests / params.pp
index efbcce44132b42018a1e41a5b30a9c4e72167a17..405475a225372141ea53e4b7d042e89508fd4950 100644 (file)
@@ -1,14 +1,26 @@
 # == Class opendaylight::params
 #
-# This class is meant to be called from opendaylight.
-# It sets variables according to platform.
+# This class manages the default params for the ODL class.
 #
 class opendaylight::params {
-  if $::osfamily == 'RedHat' {
-    $package_name = 'opendaylight'
-    $service_name = 'opendaylight'
-  }
-  else {
-    fail("Unsupported OS family: ${::osfamily}")
-  }
+  # NB: If you update the default values here, you'll also need to update:
+  #   spec/spec_helper_acceptance.rb's install_odl helper fn
+  #   spec/classes/opendaylight_spec.rb tests that use default Karaf features
+  # Else, both the Beaker and RSpec tests will fail
+  # TODO: Remove this possible source of bugs^^
+  $default_features = ['config', 'standard', 'region', 'package', 'kar', 'ssh', 'management']
+  $extra_features = []
+  $odl_rest_port = '8080'
+  $odl_bind_ip = '0.0.0.0'
+  $install_method = 'rpm'
+  $rpm_repo = 'opendaylight-5-testing'
+  $tarball_url = ''
+  $unitfile_url = 'https://github.com/dfarrell07/opendaylight-systemd/archive/master/opendaylight-unitfile.tar.gz'
+  $odl_rest_port = '8080'
+  $enable_l3 = 'no'
+  $log_levels = {}
+  $enable_ha = false
+  $ha_node_ips = []
+  $ha_node_index = ''
+  $security_group_mode = 'stateful'
 }