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

packer validate breaks with unknown configuration key #51

Closed
dominikborkowski opened this issue Apr 9, 2021 · 3 comments
Closed

packer validate breaks with unknown configuration key #51

dominikborkowski opened this issue Apr 9, 2021 · 3 comments

Comments

@dominikborkowski
Copy link

Hello,

I'm trying to move from packer-provisioner-goss 1.4.0 to 3.0.3, and packer 1.6.x to 1.7.2. It seems that there are two config options that do not pass packer's validate function:

2 errors occurred:
	* unknown configuration key: '"downloadPath"'
	* unknown configuration key: '"skipInstall"'

To see if anything else causes issues, I used the sample config, and the above two options seem to be the only ones. The errors above are a result of using this in packer.json:

         {
            "type": "goss",
            "format": "tap",
            "tests": [
                "{{ template_dir }}/goss/build.yml"
            ],
	    "arch": "amd64",
    	    "downloadPath": "/tmp/goss-VERSION-linux-ARCH",
    	    "inspect": "{{user `inspect_mode`}}",
	    "password": "",
	    "skipInstall": false,
	    "url":"https://github.com/aelsabbahy/goss/releases/download/vVERSION/goss-linux-ARCH",
	    "username": "",
	    "version": "0.3.2",
            "goss_file": "build.yml"
        },

Am I missing something by any chance? Thanks!

@kkeshavamurthy
Copy link

I'm running into this error too.

@kkeshavamurthy
Copy link

I think the keys to use in the newer version are

download_path
skip_install

@dominikborkowski
Copy link
Author

@kkeshavamurthy : thanks! Changing the option names fixed it.

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

2 participants