摘要: file.managed模块的使用示例: 1.在/etc/salt/master中编辑 file_roots: base: - /srv/salt dev: - /srv/salt/dev test: - /srv/salt/test prod: - /srv/salt/prod 2.在/srv/s 阅读全文
posted @ 2016-05-11 17:34 Alex0425 阅读(798) 评论(0) 推荐(0) 编辑
摘要: def match(pattern, string, flags=0): """Try to apply the pattern at the start of the string, returning a match object, or None if no match was found." 阅读全文
posted @ 2016-05-11 01:43 Alex0425 阅读(167) 评论(0) 推荐(0) 编辑