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

extract_local without creates does nothing #58

Open
habelson opened this issue Oct 9, 2018 · 3 comments
Open

extract_local without creates does nothing #58

habelson opened this issue Oct 9, 2018 · 3 comments

Comments

@habelson
Copy link

habelson commented Oct 9, 2018

Cookbook version

2.2.0

Chef-client version

12.14.60

Platform Details

Amazon Linux 2018.03 - AWS

Scenario:

I would like to use extract_local to extract a tarball without the "creates" property. Since the tar cookbook does not yet support true idempotence for extracted resources, In my particular case, I wish the extract to occur with every run. This way if the source tarball is changed, the new resources will be unpacked. However, omitting the 'creates' property causes the extract_local action to do nothing.

Steps to Reproduce:

Have a tar.gz file on the local filesystem, i.e. /tmp/test/tar/gz
use the tar_extract resource with the extract_local action, without a creates property

Expected Result:

tar_extract executed the extraction on every chef run

Actual Result:

tar_extract does nothing

@gr33ngiant112
Copy link

Anyone find a workaround on this?

@ericsnap
Copy link

ericsnap commented Feb 4, 2019

@gr33ngiant112 the way I work around it is to simply have a create property of something I know for sure is not in the package (like a ignore_me file or something). That way, the test always fails and the archive is always exploded.

@gr33ngiant112
Copy link

ah..gotcha. I just figured it out, same solution you had. Thanks!

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

3 participants