summaryrefslogtreecommitdiffstats
path: root/testing/puppet-fdio/manifests/vpp/install.pp
diff options
context:
space:
mode:
Diffstat (limited to 'testing/puppet-fdio/manifests/vpp/install.pp')
-rw-r--r--testing/puppet-fdio/manifests/vpp/install.pp18
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/puppet-fdio/manifests/vpp/install.pp b/testing/puppet-fdio/manifests/vpp/install.pp
new file mode 100644
index 0000000..3ae4f87
--- /dev/null
+++ b/testing/puppet-fdio/manifests/vpp/install.pp
@@ -0,0 +1,18 @@
+# == Class fdio::vpp::install
+#
+# Manages the installation of vpp.
+#
+class fdio::vpp::install (
+ $install_method = $::fdio::params::install_method,
+) inherits fdio::install {
+ if $install_method == 'rpm' {
+ # Install the VPP RPM
+ package { 'vpp':
+ ensure => present,
+ require => Yumrepo['fdio-master'],
+ }
+ }
+ else {
+ fail("Unknown install method: ${fdio::install_method}")
+ }
+}