Skip to content

Commit

Permalink
Added repo documentation and defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
jamtur01 committed Feb 25, 2013
1 parent 0e4a7b9 commit 36ea816
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
11 changes: 9 additions & 2 deletions manifests/repo/apt.pp
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
11 changes: 9 additions & 2 deletions manifests/repo/yum.pp
Original file line number Diff line number Diff line change
@@ -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 ? {
Expand Down

0 comments on commit 36ea816

Please sign in to comment.