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

wrong path detection for postgres conf_dir and conf_path #823

Closed
atomic111 opened this issue Jul 12, 2016 · 0 comments
Closed

wrong path detection for postgres conf_dir and conf_path #823

atomic111 opened this issue Jul 12, 2016 · 0 comments

Comments

@atomic111
Copy link
Contributor

Description

I am using postgres.conf_path in my inspec profiles. If i use it for centos 7.2 i get the following

You are currently running on: OS family: centos OS release: 7.2.1511 inspec > postgres.conf_path => "/var/lib/pgsql/data/postgresql.conf"

The path should be /var/lib/pgsql/9.4/data/postgresql.conf

This applies also for oracle.

InSpec and Platform Version

inspec version 0.27.0

Replication Case

I used this centos vm http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-7.2_chef-provisionerless.box

Possible Solutions

add a new section for centos and redhat os family in lib/resources/postgres.rb

arlimus added a commit that referenced this issue Jul 12, 2016
FIX #823 wrong postgres path detection for conf_dir and conf_path
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

1 participant