diff --git a/manifests/init.pp b/manifests/init.pp index 7157b9e..5277872 100755 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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 @@ -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, @@ -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) diff --git a/manifests/install.pp b/manifests/install.pp index 9821160..7548baf 100755 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -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'], + } } } diff --git a/manifests/params.pp b/manifests/params.pp index 197dac7..f978951 100755 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -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 = [