Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #58 from jgnagy/master
Browse files Browse the repository at this point in the history
Adding option to not install the uchiwa package
  • Loading branch information
solarkennedy committed Dec 23, 2015
2 parents b3f9ed8 + 8ffdeb8 commit a197642
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
7 changes: 7 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
# Default: http://repositories.sensuapp.org/apt/pubkey.gpg
# GPG key for the repo we're installing
#
# [*manage_package*]
# Boolean
# Default: true
# Should we install the package from the repo?
#
# [*manage_services*]
# Boolean
# Default: true
Expand Down Expand Up @@ -134,6 +139,7 @@
$repo_source = $uchiwa::params::repo_source,
$repo_key_id = $uchiwa::params::repo_key_id,
$repo_key_source = $uchiwa::params::repo_key_source,
$manage_package = $uchiwa::params::manage_package,
$manage_services = $uchiwa::params::manage_services,
$manage_user = $uchiwa::params::manage_user,
$host = $uchiwa::params::host,
Expand All @@ -148,6 +154,7 @@

# validate parameters here
validate_bool($install_repo)
validate_bool($manage_package)
validate_bool($manage_services)
validate_bool($manage_user)
validate_string($package_name)
Expand Down
10 changes: 6 additions & 4 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@
}
}

package { $uchiwa::package_name:
ensure => $uchiwa::version,
require => $repo_require,
notify => Service['uchiwa'],
if ($uchiwa::manage_package) {
package { $uchiwa::package_name:
ensure => $uchiwa::version,
require => $repo_require,
notify => Service['uchiwa'],
}
}

}
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
$repo_key_id = 'EE15CFF6AB6E4E290FDAB681A20F259AEB9C94BB'
$repo_key_source = 'http://repositories.sensuapp.org/apt/pubkey.gpg'
$manage_services = true
$manage_package = true
$manage_user = true

$sensu_api_endpoints = [
Expand Down

0 comments on commit a197642

Please sign in to comment.