Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

etc_dir should be configurable #578

Closed
jaredledvina opened this issue Nov 4, 2016 · 4 comments
Closed

etc_dir should be configurable #578

jaredledvina opened this issue Nov 4, 2016 · 4 comments
Assignees

Comments

@jaredledvina
Copy link
Contributor

Description of problem

We're customizing the configuration directory of sensu and want to be able to set the etc_dir variable to a custom value. Looks like right now it's hard coded based on the OS type.

This is the section I'm looking at: https://github.com/sensu/sensu-puppet/blob/master/manifests/init.pp#L525-L549

Platform and version information

  • Your OS: CentOS 6
  • Your Ruby version:
  • Your version of Puppet: Open Source Puppet 3.8
  • Your version of Sensu: 0.26.5
  • Your version of this module: Latest
@jaxxstorm
Copy link
Contributor

Agreed, a PR would be appreciated!

@Phil-Friderici
Copy link
Collaborator

This is the section jaredledvina was looking at the 4th November 2016:

case $::osfamily {
'Debian','RedHat': {
$etc_dir = '/etc/sensu'
$conf_dir = "${etc_dir}/conf.d"
$user = 'sensu'
$group = 'sensu'
$home_dir = '/opt/sensu'
$shell = '/bin/false'
$dir_mode = '0555'
$file_mode = '0440'
}
'windows': {
$etc_dir = 'C:/opt/sensu'
$conf_dir = "${etc_dir}/conf.d"
$user = 'Sensu'
$group = "Users"
$home_dir = $etc_dir
$shell = undef
$dir_mode = undef
$file_mode = undef
}
default: {}
}

Phil-Friderici added a commit to Phil-Friderici/sensu-puppet that referenced this issue Jul 13, 2017
Phil-Friderici added a commit to Phil-Friderici/sensu-puppet that referenced this issue Jul 13, 2017
Phil-Friderici added a commit to Phil-Friderici/sensu-puppet that referenced this issue Jul 13, 2017
Phil-Friderici added a commit to Phil-Friderici/sensu-puppet that referenced this issue Jul 14, 2017
Phil-Friderici added a commit to Phil-Friderici/sensu-puppet that referenced this issue Jul 17, 2017
Phil-Friderici added a commit to Phil-Friderici/sensu-puppet that referenced this issue Jul 18, 2017
Phil-Friderici added a commit to Phil-Friderici/sensu-puppet that referenced this issue Jul 21, 2017
@Phil-Friderici
Copy link
Collaborator

working on this in PR #741

ghoneycutt added a commit that referenced this issue Jul 25, 2017
(GH-578) etc_dir should be configurable
@ghoneycutt
Copy link
Collaborator

Thanks for all your help!

Released in v2.28.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants