inspec/lib
Steven Danna c71f5cdb30 Improve detection of postgresql conf dir and data dir
Redhat conf_dir detection was regressed in 57d7275 which inadvertently
removed the setting of @conf_dir. Any attempt to use the postgres
resource on RHEL would rain an exception:

    inspec> postgres.data_dir
    TypeError: no implicit conversion of nil into String

Further, the redhat detection code appears to assume that RHEL always
uses versioned data directories. This however, does not appear to be the
case:

    $ cat /etc/redhat-release
    CentOS release 6.7 (Final)
    $ sudo ls /var/lib/pgsql/
    backups  data  pgstartup.log

The code now can handle both versioned and un-versioned directory
formats on RHEL. Further, it provides diagnostic warnings about
uncertainty in the discovered data directories and configuration
directories.

Signed-off-by: Steven Danna <steve@chef.io>
2016-08-10 18:44:15 +02:00
..
bundles update readme for bundles 2016-06-29 08:14:36 +02:00
fetchers fix compliance plugin 2016-04-29 00:39:25 +02:00
inspec Add readline ignore markers to color escape codes in the shell 2016-08-10 14:26:56 +02:00
matchers add boolean support for cmp matcher 2016-06-18 20:33:08 +02:00
resources Improve detection of postgresql conf dir and data dir 2016-08-10 18:44:15 +02:00
source_readers migrate load-path hooking for legacy modes 2016-02-22 12:06:42 +01:00
utils move base_cli to lib/inspec 2016-07-26 20:11:25 +02:00
inspec.rb move base_cli to lib/inspec 2016-07-26 20:11:25 +02:00