inspec/.kitchen.vagrant.yml
Jerry Aldrich III 3d7244fb07 Add wildcard support to Utils::FindFiles (#2159)
Wildcards are evaluated prior to applying `sudo` permissions. This
means that running `sudo find /some/path/*.conf` will fail if the user
does not have read permissions on `/some/path/` because the wildcard
cannot expand before `sudo` is applied and `*.conf` isn't a file.

The solution for this is to run the command in a subshell that has the
proper permissions (e.g. `sudo sh -c 'find /some/path/*.conf'`).

This modifies `Utils::FindFiles` to use a subshell thus allowing
wildcard support.

This fixes #2157

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2017-09-23 09:17:34 +02:00

45 lines
825 B
YAML

---
driver:
name: vagrant
provisioner:
name: chef_solo
verifier:
name: inspec
sudo: true
platforms:
- name: centos-7.1
- name: centos-6.7
- name: centos-5.11
- name: debian-6.0.10
- name: debian-7.8
- name: debian-8.1
- name: fedora-21
- name: fedora-22
- name: freebsd-9.3
- name: freebsd-10.2
- name: opensuse-13.2-x86_64
- name: ubuntu-14.04
- name: ubuntu-12.04
- name: ubuntu-10.04
- name: mint-17.2-cinnamon
driver_config:
box: artem-sidorenko/mint-17.2-cinnamon
suites:
- name: default
run_list:
- recipe[apt]
- recipe[yum]
- recipe[os_prepare]
attributes:
- name: find_files
run_list:
- recipe[os_prepare::find_files]
verifier:
inspec_tests:
- test/integration/find_files
excludes:
- freebsd-10.2