Re: [中国SaltStack用户组] saltstack-users-cn@googlegroups.com 的摘要 - “1个主题”有 2个更新

39 views
Skip to first unread message

KeYuan Zhang

unread,
Sep 21, 2015, 11:24:02 AM9/21/15
to saltstack...@googlegroups.com
top文件的入口是不是设置的问题

Steven 张克元

上海驻云信息科技有限公司
电话:  18621632491
地址:上海市浦东新区晨晖路88号2号楼405-407 | 201203

2015-09-21 8:51 GMT+08:00 <saltstack...@googlegroups.com>:
hunterD <poorg...@gmail.com>: Sep 20 05:15AM -0700

初学salt,使用了 state.highstate ,但是出现了报错。
报错如下:
[root@nginx01 states]# salt '*' state.highstate -v
Executing job with jid 20150920150122678450
-------------------------------------------
 
minion.saltstack.com:
----------
ID: states
Function: no.None
Result: False
Comment: No Top file or external nodes data matches found
Started:
Duration:
Changes:
 
Summary
------------
Succeeded: 0
Failed: 1
------------
Total states run: 1
ERROR: Minions returned with non-zero exit code
 
以下为我配置的文件
[root@nginx01 states]# ll init/
total 12
drwxr-xr-x 2 root root 4096 Sep 20 12:59 files
-rw-r--r-- 1 root root 168 Sep 20 13:04 limit.sls
-rw-r--r-- 1 root root 79 Sep 19 19:03 pkg.sls
[root@nginx01 states]# cat top.sls
base:
'minion.slatstack.com':
- init.pkg
- init.limit
[root@nginx01 states]# cat init/pkg.sls
pkg.init:
pkg.installed:
- names:
- lrzsz
- mtr
- nmap
[root@nginx01 states]# cat init/limit.sls
limit-conf-config:
file.managed:
- name: /etc/security/limits.conf
- source: salt://init/files/limits.conf
- user: root
- group: root
- mode: 644
[root@nginx01 states]# ll init/files/
total 4
-rw-r--r-- 1 root root 1876 Sep 20 12:59 limits.conf
 
salt master里我配置的file_roots
 
file_roots:
base:
- /etc/salt/states
prod:
- /etc/salt/states/prod
 
salt master版本号: salt-master 2015.5.5 (Lithium)
salt minion版本号: salt-minion 2015.5.5 (Lithium)
 
求组为什么出现如上错误,求解。
hunterD <poorg...@gmail.com>: Sep 20 05:22AM -0700

salt '*' state.sls init.limit 通过这个方式执行是OK的。但是 salt '*' state.highstate
是不可以的。求组。。。
 
在 2015年9月20日星期日 UTC+8下午8:15:40,hunterD写道:
您收到此摘要邮件是因为您订阅了此群组的最新动态。您可以在群组成员资格页面上更改设置。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到 saltstack-users...@googlegroups.com

FPs

unread,
Sep 21, 2015, 10:12:29 PM9/21/15
to saltstack...@googlegroups.com

在 2015年9月21日 下午11:24,KeYuan Zhang <zky....@gmail.com>写道:
jiagouyun.com


请不要这样直接回复摘要吧。
Reply all
Reply to author
Forward
0 new messages