项目作者: lfzyx

项目描述 :
/srv/salt/
高级语言: SaltStack
项目地址: git://github.com/lfzyx/hello-SaltStack.git
创建时间: 2016-12-29T11:38:21Z
项目社区:https://github.com/lfzyx/hello-SaltStack

开源协议:

下载


hello-SaltStack

My SaltStack states configure

include:

  • nginx
  • python
  • redis
  • nfs-server
  • nfs-client
  • tomcat

Before apply nfs-server or nfs-client , you should perform the following steps

  1. Add the following to the pillar file
    1. > mine_functions:
    2. > network.ip_addrs:
    3. > - eth0
  2. Signal the minion to refresh the pillar data: salt '*' saltutil.refresh_pillar
  3. Verify the pillar data: salt '*' pillar.get mine_functions
  4. Execute the configured functions and send the data back up to the master: salt '*' mine.update
  5. Verify data from the mine: salt-run mine.get '*' network.ip_addrs