salt相关
1.salt学习相关网址
# salt相关命令 ---------目录&文件移动--------- # 移动salt-master /srv/salt/base下面的文件或者目录 salt "master" cp.get_file salt://_modules /test666/hh gzip=5 makedirs=True salt "master" cp.get_dir salt://lmdgh5_server_dev /data gzip=5 makedirs=True ------------debug模式-------------------------------------- salt-minion -l debug -------------刷文件------------ salt "*" saltutil.sync_all salt "*" saltutil.refresh_modules salt '*' saltutil.refresh_pillar -------------查看当前salt-minion有没有任务在运行 salt-call saltutil.running
---------------项目相关------------------------
docker stop gate-527013
salt-call dockercompose.service_remove /data/csjs gate-531002
---------------cmd.run
salt 'master' cmd.run 'mkdir /test/ws'
查看pillar
salt-call pillar.item csjs_cdnop:api_url
-----------------------------------------------------------------------------------------------------------------------------------------