免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1407 | 回复: 0
打印 上一主题 下一主题

[服务应用] saltstack state.sls file.copy 问题 [复制链接]

论坛徽章:
1
操作系统版块每日发帖之星
日期:2016-03-21 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2017-06-17 01:05 |只看该作者 |倒序浏览
  1. copy tomcat zip:
  2.   file.copy:
  3.     - name: /home/xxx/tomcat.zip
  4.     - source: /srv/salt/zip/tomcat.zip
复制代码


报错图:


  1. ID: copy tomcat zip
  2.     Function: file.copy
  3.         Name: /home/xxx/tomcat.zip
  4.       Result: False
  5.      Comment: Source file "/srv/salt/zip/tomcat.zip" is not present
  6.      Started: 01:01:29.757736
  7.     Duration: 0.5 ms
  8.      Changes:  
复制代码

source 路径没问题的,有文件存在的。
我看官网说不让用salt://这种形式。

  1. Note
  2. The copy function accepts paths that are local to the Salt minion. This function does not support salt://, http://, or the other additional file paths that are supported by states.file.managed and states.file.recurse.
复制代码



问题出在哪里?奇怪了......



您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP