Issue with Vagrant

@augerp without seeing the updated Vagrantfile it might be tricky to know exactly what’s wrong, but my guess from looking at the error is you might of defined something like:

	config.trigger.after [:up, :resume, :reload] do |trigger|
		trigger.validate = "hostile set #{ip_address} #{domain_name}"
	end

in which case, validate isn’t a valid option: Vagrant Triggers Configuration | Vagrant by HashiCorp.

If that’s not the case then please share again! Thanks.

hello
why try what is sugested and we still have issue

MicrosoftTeams-image (15) Vagrantfile.txt (3.6 KB)

This line right here isn’t a valid option:

	config.trigger.after [:up, :resume, :reload] do |trigger|
		trigger.validate = "hostile set #{ip_address} #{domain_name}"
	end

It should probably be trigger.run?

hello
before it was ask to put Validate we did change this to trigger.run and the result is the same
its not working

Hey @augerp -You might of misread my comment, I was guessing as to what your error was based on the message validiate. Either way, it should be run. So once you change it to run, can you share the Vagrantfile and error message? Thanks.

hello here you go the latest messageVagrantfile-3.txt (3.6 KB)

and the file
Thanks helping

Ahhh huh @augerp. I see the issue now. I was misremembering how to define a run option for triggers, so apologies for misleading you. It should look like this:

config.trigger.after :up do |trigger|
  trigger.info = "More information"
  trigger.run = {inline: "bash -c 'bash script goes here'"}
end

You’ll want to do something like:

trigger.run = {inline: "bash -c 'hostile set #{ip_address} #{domain_name}'"}

Sorry for the misdirection on my part! Hopefully that works.

Brian
the issue is it was working before and the user that did this is gone and nobody know what we have to do to make it work , now we are changing so many stuff we are getting confuse
can you give me some direction ?

we dont know where to change the line you are telling me to do

Thanks

@augerp Yes, sorry. Here’s your Vagrantfile for what I am suggesting:

Vagrantfile.txt (3.7 KB)

hello Brian
now we have this
Thanks
MicrosoftTeams-image (16)

@augerp - This error is saying that you’ve upgraded your VMWare Workstation license, but not the Vagrant VMWare plugin license. You’ll want to do that if you wish to use a newer version of workstation.

Hello Brian
good news we make it work the only thing is the bash-c was not needed
after we remove it it work
so a big THANK YOU

Glad to hear that it’s working now!