【发布时间】:2014-08-20 13:00:31
【问题描述】:
我是 saltstack 的新手,我想使用 saltstack 公式安装 postgres 或 apache 或其他任何东西。
我用 git 从 git 下载了 repo
git clone https://github.com/saltstack-formulas/apache-formula.git
和
git clone https://github.com/saltstack-formulas/postgres.git
到我的 /srv/salt 目录。
然后我添加了行
file_roots:
base:
- /srv/salt
- /srv/formulas/apache-formula
- /srv/formulas/postgres
在 /etc/salt/master 文件中。
然后我在文件夹 /srv/salt 中创建了一个文件 top.sls,内容如下:
include:
- apache
使用
运行此即时消息salt '*' state.highstate
我得到的只是错误消息:
xxx.yyyyyyy.com:
----------
ID: states
Function: no.None
Result: False
Comment: No Top file or external nodes data matches found
Changes:
Summary
------------
Succeeded: 0
Failed: 1
------------
Total: 1
我做错了什么? 我在http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html 上阅读了手册,但是这本手册一点帮助都没有!
【问题讨论】:
标签: salt-stack