Skip to content

Commit

Permalink
Merge pull request #5 from claranet/russ/make_apm_repo_optional
Browse files Browse the repository at this point in the history
Add support to make the APM yum/apt repo configuration optional
  • Loading branch information
russwhelan authored Aug 11, 2017
2 parents c7e914e + 7efdd7f commit a333b4b
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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': {
Expand Down

0 comments on commit a333b4b

Please sign in to comment.