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

Adding option to not install the uchiwa package #58

Merged
merged 2 commits into from
Dec 23, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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://repos.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 @@ -104,6 +109,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 @@ -116,6 +122,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 = '8911D8FF37778F24B4E726A218609E3D7580C77F'
$repo_key_source = 'http://repos.sensuapp.org/apt/pubkey.gpg'
$manage_services = true
$manage_package = true
$manage_user = true

$sensu_api_endpoints = [
Expand Down