From 36ea8161acb12424d6c4e78adedfc37fe78b62e2 Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Mon, 25 Feb 2013 00:26:17 +0000 Subject: [PATCH] Added repo documentation and defaults --- manifests/repo/apt.pp | 11 +++++++++-- manifests/repo/yum.pp | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/manifests/repo/apt.pp b/manifests/repo/apt.pp index d26bfe2c53..f4e9089601 100644 --- a/manifests/repo/apt.pp +++ b/manifests/repo/apt.pp @@ -1,6 +1,13 @@ +# = Class: sensu::repo::apt +# +# Adds Sensu repo to Apt +# +# == Parameters +# + class sensu::repo::apt ( - $ensure, - $repo + $ensure = 'present', + $repo = 'main' ) { if defined(apt::source) and defined(apt::key) { diff --git a/manifests/repo/yum.pp b/manifests/repo/yum.pp index 762b1ced1f..45faef590b 100644 --- a/manifests/repo/yum.pp +++ b/manifests/repo/yum.pp @@ -1,6 +1,13 @@ +# = Class: sensu::repo::yum +# +# Adds Sensu YUM repo support +# +# == Parameters +# + class sensu::repo::yum ( - $ensure, - $repo + $ensure = 'present', + $repo = 'main' ) { $enabled = $ensure ? {