saltstack 运维中的一些错误处理记录
Q1: [WARNING ] Key 'file_ignore_glob' with value None has an invalid type of NoneType, a list is
required for this value
解决方法:
/etc/salt/master的配置文件中,将file_ignore_glob的注释全部打开,重启master即可。
service salt-master restart
Q2:[WARNING ] Key 'nodegroups' with value group1:'salt-syndic01' group2:'salt-syndic02' has an invalid type of str, a dict is required for this value
列表配置错误
Q3:Comment: Unable to render top file: Unable to render top file. No targets found.
top.sls 文件格式内容不当
需要空格
Q4:comment: parent directory not present
出现这个的原因是Minion上没有name参数定义的目录. 在minion上定义对应的目录就可以了
Q5:ERROR executing 'file.copy': Cannot copy overwriting a directory without recurse flag set to true!
salt "salt-syndic*" file.copy /data/ld_fabu_salt/update/ /data/ld_fabu_salt/update/ recurse=True remove_existing=True
salt "salt-syndic*" file.copy /data/ld_fabu_salt/update/ /data/ld_fabu_salt/update recurse=True
标签:fabu,ld,运维中,value,file,saltstack,错误处理,copy,salt From: https://blog.csdn.net/lisanmengmeng/article/details/143279791