创建vm时,除非你处于详细模式,你的屏幕上有闪烁的啪啪声,否则我不会完全接受盐的任何响应,它并不能代表很好的信息{ {1}}确实。
以下是salt-call
vagrant up web
我的Vagrantfile非常庞大,因为它甚至还有外部配置。相关部分在这里:
192:vagrant-starter holms$ vagrant up web
Bringing machine 'web' up with 'virtualbox' provider...
==> web: Importing base box 'debian80'...
==> web: Matching MAC address for NAT networking...
==> web: Setting the name of the VM: vagrant-starter_web_1410407135596_15907
==> web: Clearing any previously set forwarded ports...
==> web: Clearing any previously set network interfaces...
==> web: Preparing network interfaces based on configuration...
web: Adapter 1: nat
==> web: Forwarding ports...
web: 80 => 9999 (adapter 1)
web: 22 => 2222 (adapter 1)
==> web: Running 'pre-boot' VM customizations...
==> web: Booting VM...
==> web: Waiting for machine to boot. This may take a few minutes...
web: SSH address: 127.0.0.1:2222
web: SSH username: vagrant
web: SSH auth method: private key
web: Warning: Connection timeout. Retrying...
==> web: Machine booted and ready!
==> web: Checking for guest additions in VM...
==> web: Mounting shared folders...
web: /vagrant => /Users/holms/Dropbox/Dev/vagrant-starter
web: /srv/salt => /Users/holms/Dropbox/Dev/vagrant-starter/repo/salt
==> web: Running provisioner: salt...
Copying salt minion config to vm.
Checking if salt-minion is installed
salt-minion was not found.
Checking if salt-call is installed
salt-call was not found.
Bootstrapping Salt... (this may take a while)
Salt successfully configured and installed!
run_overstate set to false. Not running state.overstate.
Calling state.highstate... (this may take a while)
我希望看到的是
我看到的是:
答案 0 :(得分:14)
由于我自己搜索了这个,而且这里没有答案,我会添加它。在Vagrantfile中,您需要添加(或取消注释)
salt.verbose = true
,所以你最终得到这样的东西:
config.vm.provision :salt do |salt|
salt.minion_config = "repo/minion"
salt.run_highstate = true
salt.colorize = true
salt.log_level = "info"
salt.verbose = true
end