Skip to content
This repository was archived by the owner on Jul 14, 2021. It is now read-only.

Kitchen::Provisioner::PolicyfileZero does not respect chefignore #612

Closed
schisamo opened this issue Nov 21, 2015 · 1 comment
Closed

Kitchen::Provisioner::PolicyfileZero does not respect chefignore #612

schisamo opened this issue Nov 21, 2015 · 1 comment
Labels
Type: Bug Doesn't work as expected.

Comments

@schisamo
Copy link
Contributor

Currently when Test Kitchen is enabled to use the policyfile_zero provisioner it transfers ALL files from the cookbook being tested...even those that have been explicitly ignored in the chefignore. This is a real issue when all of the kitchen-vagrant VM files are uploaded into the VM being tested on!

2.1.6p336 in ~/d/c/e/r/c/chef-ingredient on master
➜  cat chefignore | grep kitchen
.kitchen
vagrant@push-server-ubuntu-1204:~$ tree -a /tmp/kitchen/cookbooks/chef-ingredient-56459695676061701.68465901269307089.275982891263740/.kitchen/
/tmp/kitchen/cookbooks/chef-ingredient-56459695676061701.68465901269307089.275982891263740/.kitchen/
└── kitchen-vagrant
    └── kitchen-chef-ingredient-push-server-ubuntu-1204
        └── .vagrant
            └── machines
                └── default
                    └── vmware_fusion
                        └── 3fdfb632-318f-4180-ac32-48701b8c4c14
                            ├── 564df0a8-892b-3c31-c805-e6c13d77a599.vmem
                            ├── 564df0a8-892b-3c31-c805-e6c13d77a599.vmem.lck
                            │   └── M19756.lck
                            ├── disk-s001.vmdk
                            ├── disk-s002.vmdk
                            └── disk-s003.vmdk

8 directories, 5 files

The outcome is kitchen converge's take successfully longer and your workstation hates you.

/cc @danielsdeleo

@danielsdeleo
Copy link
Contributor

@thommay thommay added Type: Bug Doesn't work as expected. and removed Bug labels Feb 1, 2017
@chef-boneyard chef-boneyard locked and limited conversation to collaborators Feb 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Bug Doesn't work as expected.
Development

No branches or pull requests

4 participants