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

Move logic about where reports dir is #132

Merged

Conversation

danieldreier
Copy link
Contributor

Makes more sense in params.pp than as the only thing in reports.pp
Doesn't need to be a conditional anymore if we're dropping 2.x support
(also highlights that it's probably wrong on *BSD)

@igalic
Copy link
Contributor

igalic commented Nov 24, 2014

why not keep it as puppet::reports_dir, and overwriteable via init.pp?

Makes more sense in params.pp than as the only thing in reports.pp
Doesn't need to be a conditional anymore if we're dropping 2.x support
(also highlights that it's probably wrong on *BSD)
@danieldreier
Copy link
Contributor Author

@igalic I've reorganized it into puppet::server::report_dir with defaults provided from puppet::params::report_dir because I believe we'll want to provide different report dirs for different operating systems. I'm not sure where those reports live on *BSD but I'll bet it's not the same place as they do in the Linux distros.

I'm also hoping to add support for managing Puppet Enterprise, which locates everything in /opt. My thinking is that putting defaults in params will make sense for that, but having puppet::server::report_dir makes it easy to override if you want.

Does that work for you? I'm totally open to other solutions, not quite sure what the best way to handle this is.

@igalic
Copy link
Contributor

igalic commented Nov 25, 2014

yup. my thinking was just to drive everything from init, but that doesn't make entirely sense in this case.

@danieldreier
Copy link
Contributor Author

is this blocking on anything / controversial? I can certainly change the approach (or drop the idea entirely) but would like to know if I'm proposing something problematic or poorly advised.

@igalic
Copy link
Contributor

igalic commented Nov 29, 2014

nope, i think you're on the right track, sorry for the confusion here.

zachfi added a commit that referenced this pull request Dec 3, 2014
@zachfi zachfi merged commit 2a5756b into puppetlabs-operations:master Dec 3, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants