inspec/lib/resources
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
..
apache.rb Update inspec for os[:family] change in Train 2016-08-04 13:32:35 +01:00
apache_conf.rb descope calls to global File 2016-03-09 10:48:54 +01:00
apt.rb Placing all resources in the Inspec::Resources namespace 2016-03-08 13:40:16 -05:00
audit_policy.rb Placing all resources in the Inspec::Resources namespace 2016-03-08 13:40:16 -05:00
auditd_conf.rb Placing all resources in the Inspec::Resources namespace 2016-03-08 13:40:16 -05:00
auditd_rules.rb Update inspec for os[:family] change in Train 2016-08-04 13:32:35 +01:00
bash.rb remodel bash and shell wrappers 2016-04-18 11:48:42 -04:00
bond.rb rename internal File -> FileResource 2016-03-09 10:48:48 +01:00
bridge.rb Placing all resources in the Inspec::Resources namespace 2016-03-08 13:40:16 -05:00
command.rb Update inspec for os[:family] change in Train 2016-08-04 13:32:35 +01:00
csv.rb Placing all resources in the Inspec::Resources namespace 2016-03-08 13:40:16 -05:00
directory.rb rename internal File -> FileResource 2016-03-09 10:48:48 +01:00
etc_group.rb Placing all resources in the Inspec::Resources namespace 2016-03-08 13:40:16 -05:00
file.rb add suid sgid and sticky support for file resource 2016-07-10 23:08:42 +02:00
gem.rb Placing all resources in the Inspec::Resources namespace 2016-03-08 13:40:16 -05:00
group.rb Placing all resources in the Inspec::Resources namespace 2016-03-08 13:40:16 -05:00
grub_conf.rb Update inspec for os[:family] change in Train 2016-08-04 13:32:35 +01:00
host.rb Use only strings in resource examples, docs and tests 2016-05-03 23:27:18 +01:00
inetd_conf.rb Placing all resources in the Inspec::Resources namespace 2016-03-08 13:40:16 -05:00
ini.rb Placing all resources in the Inspec::Resources namespace 2016-03-08 13:40:16 -05:00
interface.rb Use only strings in resource examples, docs and tests 2016-05-03 23:27:18 +01:00
iptables.rb Placing all resources in the Inspec::Resources namespace 2016-03-08 13:40:16 -05:00
json.rb update documentation for json resource 2016-04-16 20:16:32 -04:00
kernel_module.rb Update inspec for os[:family] change in Train 2016-08-04 13:32:35 +01:00
kernel_parameter.rb Use only strings in resource examples, docs and tests 2016-05-03 23:27:18 +01:00
limits_conf.rb Placing all resources in the Inspec::Resources namespace 2016-03-08 13:40:16 -05:00
login_def.rb Placing all resources in the Inspec::Resources namespace 2016-03-08 13:40:16 -05:00
mount.rb update mount example with include 2016-05-06 14:27:42 +01:00
mssql_session.rb fixing rubocop error 2016-07-17 14:22:04 -04:00
mysql.rb Update inspec for os[:family] change in Train 2016-08-04 13:32:35 +01:00
mysql_conf.rb descope calls to global File 2016-03-09 10:48:54 +01:00
mysql_session.rb Use only strings in resource examples, docs and tests 2016-05-03 23:27:18 +01:00
npm.rb Placing all resources in the Inspec::Resources namespace 2016-03-08 13:40:16 -05:00
ntp_conf.rb Placing all resources in the Inspec::Resources namespace 2016-03-08 13:40:16 -05:00
oneget.rb Update inspec for os[:family] change in Train 2016-08-04 13:32:35 +01:00
os.rb add helper methods for os resource 2016-05-31 00:01:26 +02:00
os_env.rb Update inspec for os[:family] change in Train 2016-08-04 13:32:35 +01:00
package.rb Update inspec for os[:family] change in Train 2016-08-04 13:32:35 +01:00
parse_config.rb improve code style for parse_config thanks @stevendanna 2016-08-05 12:29:34 +02:00
passwd.rb expose deprecated fields in passwd 2016-05-04 15:27:58 +02:00
pip.rb Update inspec for os[:family] change in Train 2016-08-04 13:32:35 +01:00
port.rb Allow port to be specified as a string 2016-08-05 14:01:08 +02:00
postgres.rb Improve detection of postgresql conf dir and data dir 2016-08-10 18:44:15 +02:00
postgres_conf.rb descope calls to global File 2016-03-09 10:48:54 +01:00
postgres_session.rb Placing all resources in the Inspec::Resources namespace 2016-03-08 13:40:16 -05:00
powershell.rb eases the removal of leading and trailing whitespace for powershell and vbscript 2016-03-26 22:25:53 +01:00
processes.rb use struct for processes list 2016-05-13 11:22:56 +02:00
registry_key.rb rename script to powershell 2016-03-18 15:41:54 +01:00
security_policy.rb Placing all resources in the Inspec::Resources namespace 2016-03-08 13:40:16 -05:00
service.rb Update inspec for os[:family] change in Train 2016-08-04 13:32:35 +01:00
shadow.rb fix the shadow password example now that cmp can handle arrays 2016-04-20 11:57:34 -04:00
ssh_conf.rb Placing all resources in the Inspec::Resources namespace 2016-03-08 13:40:16 -05:00
user.rb Use only strings in resource examples, docs and tests 2016-05-03 23:27:18 +01:00
vbscript.rb remove comments from ps script and remove tmp vb script after execution 2016-03-19 19:04:31 +01:00
windows_feature.rb Update inspec for os[:family] change in Train 2016-08-04 13:32:35 +01:00
wmi.rb improve wmi resource 2016-06-19 23:40:45 +02:00
xinetd.rb add #entries to filter table + remodel configuration 2016-04-28 22:46:39 +02:00
yaml.rb Placing all resources in the Inspec::Resources namespace 2016-03-08 13:40:16 -05:00
yum.rb Placing all resources in the Inspec::Resources namespace 2016-03-08 13:40:16 -05:00