summaryrefslogtreecommitdiffstats
path: root/manifests/install.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/install.pp')
-rw-r--r--manifests/install.pp25
1 files changed, 25 insertions, 0 deletions
diff --git a/manifests/install.pp b/manifests/install.pp
new file mode 100644
index 0000000..14577a7
--- /dev/null
+++ b/manifests/install.pp
@@ -0,0 +1,25 @@
+# == Class fdio::install
+#
+# Manages the installation of fdio.
+#
+class fdio::install {
+ $base_url = $fdio::repo_branch ? {
+ 'release' => 'https://nexus.fd.io/content/repositories/fd.io.centos7/',
+ 'master' => 'https://nexus.fd.io/content/repositories/fd.io.master.centos7/',
+ default => "https://nexus.fd.io/content/repositories/fd.io.${fdio::repo_branch}.centos7/",
+ }
+
+ # Add fdio's Yum repository
+ yumrepo { "fdio-${fdio::repo_branch}":
+ baseurl => $base_url,
+ descr => "FD.io ${fdio::repo_branch} packages",
+ enabled => 1,
+ gpgcheck => 0,
+ }
+
+ # Install the VPP RPM
+ package { 'vpp':
+ ensure => present,
+ require => Yumrepo["fdio-${fdio::repo_branch}"],
+ }
+}