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

Shell provisioner: The following settings shouldn't exist: id #3424

Closed
ArtyomStetsenko opened this issue Apr 10, 2014 · 1 comment
Closed

Comments

@ArtyomStetsenko
Copy link

I am trying to follow the documentation of overriding provisioner settings. I followed the example there and came up with the following configuration in my Vagrantfile where I try to override the global config in one VM:

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  # ...
  config.vm.provision "shell", inline: "sudo apt-get install -y openjdk-7-jdk", id: "type"

  config.vm.define "mongodb" do |mongodb|
    # ...
    mongodb.vm.provision "shell", inline: "sudo apt-get install -y mongodb", id: "type"
  end

However, when I try to provision this setup, I get the following output:

There are errors in the configuration of this machine. Please fix
the following errors and try again:

shell provisioner:
* The following settings shouldn't exist: id

I am using the latest Vagrant 1.5.2. I also tried uninstalling it and installing 1.5.0 instead, but had the same issue.

@mitchellh
Copy link
Contributor

Thanks, fixed.

@ghost ghost locked and limited conversation to collaborators Apr 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants