diff --git a/manifests/params.pp b/manifests/params.pp index 6a06fe0..a21b663 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -19,28 +19,34 @@ $newrelic_php_package = 'newrelic-php5' $newrelic_php_service = 'newrelic-daemon' $newrelic_php_conf_dir = ['/etc/php.d'] - package { 'newrelic-repo-5-3.noarch': - ensure => present, - source => 'http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm', - provider => rpm, - } + $newrelic_enable_repo = true + if $newrelic_enable_repo { + package { 'newrelic-repo-5-3.noarch': + ensure => present, + source => 'http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm', + provider => rpm, + } + } } 'Debian': { $newrelic_package_name = 'newrelic-sysmond' $newrelic_service_name = 'newrelic-sysmond' $newrelic_php_package = 'newrelic-php5' $newrelic_php_service = 'newrelic-daemon' - apt::source { 'newrelic': - location => 'http://apt.newrelic.com/debian/', - repos => 'non-free', - key => { - id => 'B60A3EC9BC013B9C23790EC8B31B29E5548C16BF', - key => 'https://download.newrelic.com/548C16BF.gpg', - }, - include => { - src => false, - }, - release => 'newrelic', + $newrelic_enable_repo = true + if $newrelic_enable_repo { + apt::source { 'newrelic': + location => 'http://apt.newrelic.com/debian/', + repos => 'non-free', + key => { + id => 'B60A3EC9BC013B9C23790EC8B31B29E5548C16BF', + key => 'https://download.newrelic.com/548C16BF.gpg', + }, + include => { + src => false, + }, + release => 'newrelic', + } } case $facts['operatingsystem'] { 'Debian': {