Skip to content
This repository was archived by the owner on Mar 28, 2019. It is now read-only.

Commit 2a5756b

Browse files
committed
Merge pull request #132 from danieldreier/move_reports_dir_to_params
Move logic about where reports dir is
2 parents 4b6df81 + fabdf07 commit 2a5756b

File tree

6 files changed

+6
-15
lines changed

6 files changed

+6
-15
lines changed

manifests/params.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,6 @@
135135
'OpenBSD' => '_puppet',
136136
default => 'puppet',
137137
}
138+
139+
$report_dir = '/usr/lib/ruby/vendor_ruby/puppet/reports'
138140
}

manifests/reports.pp

Lines changed: 0 additions & 6 deletions
This file was deleted.

manifests/reports/graphite.pp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
#
44
class puppet::reports::graphite($server, $port, $prefix) {
55

6-
include puppet::reports
7-
86
# This is a little bit dirty, as it just throws it straight in the
97
# rubylib, but it's better than messing with libdir on the master.
108
# See https://projects.puppetlabs.com/issues/4345 for mild
119
# discussion.
1210
file{
13-
"/${puppet::reports::report_dir}/graphite.rb":
11+
"/${puppet::server::report_dir}/graphite.rb":
1412
ensure => present,
1513
owner => 'root',
1614
group => 'root',

manifests/reports/irccat.pp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@
99
'httparty':;
1010
}
1111

12-
require puppet::reports
13-
1412
# This is a little bit dirty, as it just throws it straight in the
1513
# rubylib, but it's better than messing with libdir on the master.
1614
# See https://projects.puppetlabs.com/issues/4345 for mild
1715
# discussion.
1816
file{
19-
"${puppet::reports::report_dir}/irccat.rb":
17+
"${puppet::server::report_dir}/irccat.rb":
2018
ensure => present,
2119
owner => 'root',
2220
group => 'root',

manifests/reports/xmpp.pp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@
1212
'httparty':;
1313
}
1414

15-
include puppet::reports
16-
1715
# This is a little bit dirty, as it just throws it straight in the
1816
# rubylib, but it's better than messing with libdir on the master.
1917
# See https://projects.puppetlabs.com/issues/4345 for mild
2018
# discussion.
2119
file{
22-
"${puppet::reports::report_dir}/xmpp.rb":
20+
"${puppet::server::report_dir}/xmpp.rb":
2321
ensure => present,
2422
owner => 'root',
2523
group => 'root',

manifests/server.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
$parser = undef,
4545
$manage_puppetdb = undef,
4646
$report = true,
47+
$report_dir = $puppet::params::report_dir,
4748
$reportfrom = undef,
4849
$reports = ['store', 'https'],
4950
$reporturl = "http://${::fqdn}/reports",

0 commit comments

Comments
 (0)