我正在尝试使用带有现有盐公式的盐来配置 vagrant VM。我已按照此演示文稿访问gitfs_remotes:https ://github.com/borgstrom/salt-vagrant-saltconf2014/blob/master/presentation.md 。
盐/奴才
master: 127.0.0.1
state_verbose: False
盐/大师:
# listen on the loopback in open mode
interface: 127.0.0.1
auto_accept: True
# use both the local roots as well as gitfs remotes
fileserver_backend:
- roots
- git
# map our project specific files to the local roots
file_roots:
base:
- /vagrant/salt/roots
pillar_roots:
base:
- /vagrant/salt/pillar
# setup our salt formulas as gitfs remotes
gitfs_remotes:
- https://github.com/saltstack-formulas/mysql-formula
流浪文件(部分):
config.vm.synced_folder "salt/roots/", "/srv/salt/"
config.vm.synced_folder "salt/pillar", "/srv/pillar/"
config.vm.provision :salt do |salt|
salt.minion_config = "salt/minion"
salt.master_config = "salt/master"
salt.bootstrap_options = "-F -c /tmp/ -P"
salt.run_highstate = true
end
/salt/roots/top.sls:
base:
'*':
- mysql
但我得到了错误:
[信息] SaltReqTimeoutError:60 秒后。(尝试 7 次,共 7 次)尝试向 salt master 进行身份验证失败