我正在努力学习 Salt。证明很麻烦。甚至无法绕过主配置。下面的行有什么问题?
#/etc/salt/master
file_roots:
base:
- /home/ubuntu/workspace/salt/states/base
salt-key -L
[ERROR ] Error parsing configuration file: /etc/salt/master - expected '<document start>', but found '<block mapping start>'
in "<string>", line 298, column 1:
file_roots:
^
##### File Server settings #####
##########################################
# Salt runs a lightweight file server written in zeromq to deliver files to
# minions. This file server is built into the master daemon and does not
# require a dedicated port.
# The file server works on environments passed to the master, each environment
# can have multiple root directories, the subdirectories in the multiple file
# roots cannot match, otherwise the downloaded files will not be able to be
# reliably ensured. A base environment is required to house the top file.
# Example:
file_roots:
base:
- /home/ubuntu/workspace/salt/states/base
# development:
# - /home/ubuntu/workspace/salt/states/dev
# dev:
# - /srv/salt/dev/services
# - /srv/salt/dev/states
# prod:
# - /srv/salt/prod/services
# - /srv/salt/prod/states
#file_roots:
# base:
# - /srv/salt