2017-05-07から1日間の記事一覧

vagrant-hostmanagerを使ったVagrantfile

Vagrant.configure("2") do |config| config.hostmanager.ip_resolver = proc do |machine| result = "" machine.communicate.execute("ifconfig enp0s8") do |type, data| result << data if type == :stdout end (ip = /inet (\d+\.\d+\.\d+\.\d+)/.match(…