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

inspec-archive should create a zip with version string #1350

Closed
jaxxstorm opened this issue Dec 8, 2016 · 2 comments
Closed

inspec-archive should create a zip with version string #1350

jaxxstorm opened this issue Dec 8, 2016 · 2 comments

Comments

@jaxxstorm
Copy link

Description

When packaging up a profile using inspec archive the tarball/zip that gets created is simple <profilename.tar.gz>

This makes it difficult to do custom downloads without chef compliance server and other distribution methods, as versioning them becomes difficult.

InSpec and Platform Version

inspec 1.7.1
train 0.22.0

Replication Case

Simple create a profile and run inspec archive <path>

Possible Solutions

It seems reasonably easy to have the created tarball be <profilename>-<version>.tar.gz

Stacktrace

inspec archive inspec-pcs --diagnose                                                                                                                                                   
InSpec version: 1.7.1
Train version: 0.22.0
Command line configuration:
{"zip"=>false,
 "tar"=>false,
 "overwrite"=>false,
 "ignore_errors"=>false,
 "diagnose"=>true}
JSON configuration file:
{}
Merged configuration:
{"zip"=>false,
 "tar"=>false,
 "overwrite"=>false,
 "ignore_errors"=>false,
 "diagnose"=>true}

I, [2016-12-08T14:17:06.725656 #67115]  INFO -- : Checking profile in inspec-pcs
I, [2016-12-08T14:17:06.725725 #67115]  INFO -- : Metadata OK.
I, [2016-12-08T14:17:06.787953 #67115]  INFO -- : Found 5 controls.
W, [2016-12-08T14:17:06.788011 #67115]  WARN -- : Control pcs cluster status has no description
W, [2016-12-08T14:17:06.788040 #67115]  WARN -- : Control pcs links has no description
W, [2016-12-08T14:17:06.788053 #67115]  WARN -- : Control PCS License Status has no description
W, [2016-12-08T14:17:06.788063 #67115]  WARN -- : Control pcs mounts has no description
W, [2016-12-08T14:17:06.788074 #67115]  WARN -- : Control pcs services has no description
I, [2016-12-08T14:17:06.788272 #67115]  INFO -- : Archive /Users/Lee/git/pcs.tar.gz exists already. Use --overwrite.
@arlimus
Copy link
Contributor

arlimus commented Dec 14, 2016

Love it, great suggestion @jaxxstorm !!

@chris-rock
Copy link
Contributor

@jaxxstorm I full agree with that. Not sure why this hasn't been brought up before 👍

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