thank you so much, the Stackoverflow link did the trick, it's so easy when
you know the solution :)
have a nice day
On Tuesday, October 18, 2016 at 7:42:21 PM UTC+2, Torben Knerr wrote:
> Hi Eric,
> if you don't mind installing an extra plugin, then vagrant-triggers might
> be your friend:
> If it's only for that simple case (i.e. detecting "up", but no other state
> transitition depedencies), then parsing the commandline args via ARGV
> might be good enough:
> On Tue, Oct 18, 2016 at 4:26 PM, Eric Keller <kelle...@gmail.com
>> Hi everyone,
>> Vagrant version
>> Vagrant 1.8.4
>> *Host operating system*
>> VERSION="16.04.1 LTS (Xenial Xerus)"
>> PRETTY_NAME="Ubuntu 16.04.1 LTS"
>> *Guest operating system*
>> jessie libvirt
>> # automatically restart dnsmasq in the right order
>> # this is a hack until libvirt do not mess-up with dnsmasq.service!
>> system('./restart_dns.sh --force')
>> normal multi-box vagrantfile
>> I would like to reset the dns only when calling vagrant up therefore I
>> would like to know if I can detect the parameter with wich vagrant is
>> for example:
>> vagrant *up* => in the Vagrantfile I would like to get the "*up*" as a
>> variable I can put some condition on.
>> Best Regards
>> This mailing list is governed under the HashiCorp Community Guidelines -
>> https://www.hashicorp.com/community-guidelines.html. Behavior in
>> violation of those guidelines may result in your removal from this mailing
>> GitHub Issues: https://github.com/mitchellh/vagrant/issues
>> IRC: #vagrant on Freenode
>> You received this message because you are subscribed to the Google Groups
>> "Vagrant" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> To view this discussion on the web visit
>> For more options, visit https://groups.google.com/d/optout.
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.