On Fri, Feb 5, 2016 at 4:30 AM, Stéphane Klein <[email protected]> wrote:
> NM_CONTROLLED=no in /etc/sysconfig/network-scripts/ifcfg-eth0 Hello, You can have a shell provisioner that run always. And does something like this. grep 'NM_CONTROLLED=no' /etc/sysconfig/network-scripts/ifcfg-eth0 || sed -i -e 's/NM_CONTROLLED=no/NM_CONTROLLED=yes/' /etc/sysconfig/network-scripts/ifcfg-eth0 And in vagrant: config.vm.provision "shell", run: "always", inline: "grep 'NM_CONTROLLED=no' /etc/sysconfig/network-scripts/ifcfg-eth0 && true || sed -i -e 's/NM_CONTROLLED=no/NM_CONTROLLED=yes/' /etc/sysconfig/network-scripts/ifcfg-eth0" Alvaro. -- 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 "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0exh-7ZUu3kA7FdvgpmrzB-2XV4Roa0hoGQdo84FyCNkEw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
