diff options
author | Feng Pan <fpan@redhat.com> | 2016-11-07 19:22:21 -0500 |
---|---|---|
committer | Feng Pan <fpan@redhat.com> | 2016-11-21 21:27:09 -0500 |
commit | 9326e4237f4d161f297dc4493ab4928ea6e2bf0f (patch) | |
tree | 25372fa964fe84b160c5bfc58304285902edbefc /manifests/install.pp | |
parent | c70bea9fb9cd5dfb29d7ab8f7aaae7324c31f1e3 (diff) |
Initial Commit.
Change-Id: I212ec4be42357edddd931e9e479e33131ccd4bac
Signed-off-by: Feng Pan <fpan@redhat.com>
Diffstat (limited to 'manifests/install.pp')
-rw-r--r-- | manifests/install.pp | 25 |
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}"], + } +} |