SaltStack\u67b6\u6784<\/strong><\/div>\n\u5728SaltsStack\u67b6\u6784\u4e2d\u670d\u52a1\u7aef\u53eb\u4f5cMaster\uff0c\u5ba2\u6237\u7aef\u53eb\u4f5cMinion\uff0c\u90fd\u662f\u4ee5\u5b88\u62a4\u8fdb\u7a0b\u7684\u6a21\u5f0f\u8fd0\u884c\uff0c\u4e00\u76f4\u76d1\u542c\u914d\u7f6e\u6587\u4ef6\u4e2d\u5b9a\u4e49\u7684ret_port\uff08saltstack\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u7aef\u901a\u4fe1\u7684\u7aef\u53e3\uff0c\u8d1f\u8d23\u63a5\u6536\u5ba2\u6237\u7aef\u53d1\u9001\u8fc7\u6765\u7684\u7ed3\u679c\uff0c\u9ed8\u8ba44506\u7aef\u53e3\uff09\u548cpublish_port\uff08saltstack\u7684\u6d88\u606f\u53d1\u5e03\u7cfb\u7edf\uff0c\u9ed8\u8ba44505\u7aef\u53e3\uff09\u7684\u7aef\u53e3\u3002\u5f53Minion\u8fd0\u884c\u65f6\u4f1a\u81ea\u52a8\u8fde\u63a5\u5230\u914d\u7f6e\u6587\u4ef6\u4e2d\u5b9a\u4e49\u7684Master\u5730\u5740ret_port\u7aef\u53e3\u8fdb\u884c\u8fde\u63a5\u8ba4\u8bc1\u3002<\/p>\n
<\/div>\n
\n
\n- Master\uff1a\u63a7\u5236\u4e2d\u5fc3,salt\u547d\u4ee4\u8fd0\u884c\u548c\u8d44\u6e90\u72b6\u6001\u7ba1\u7406<\/li>\n
- Minion\u00a0:\u00a0\u9700\u8981\u7ba1\u7406\u7684\u5ba2\u6237\u7aef\u673a\u5668,\u4f1a\u4e3b\u52a8\u53bb\u8fde\u63a5Mater\u7aef,\u5e76\u4eceMaster\u7aef\u5f97\u5230\u8d44\u6e90\u72b6\u6001<\/li>\n
- \u4fe1\u606f,\u540c\u6b65\u8d44\u6e90\u7ba1\u7406\u4fe1\u606f<\/li>\n
- States\uff1a\u914d\u7f6e\u7ba1\u7406\u7684\u6307\u4ee4\u96c6<\/li>\n
- Modules\uff1a\u5728\u547d\u4ee4\u884c\u4e2d\u548c\u914d\u7f6e\u6587\u4ef6\u4e2d\u4f7f\u7528\u7684\u6307\u4ee4\u6a21\u5757,\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c<\/li>\n
- Grains\uff1aminion\u7aef\u7684\u53d8\u91cf,\u9759\u6001\u7684<\/li>\n
- Pillar\uff1aminion\u7aef\u7684\u53d8\u91cf,\u52a8\u6001\u7684\u6bd4\u8f83\u79c1\u5bc6\u7684\u53d8\u91cf,\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u5b9e\u73b0\u540c\u6b65minions\u5b9a\u4e49<\/li>\n
- highstate\uff1a\u4e3aminion\u7aef\u4e0b\u53d1\u6c38\u4e45\u6dfb\u52a0\u72b6\u6001,\u4ecesls\u914d\u7f6e\u6587\u4ef6\u8bfb\u53d6.\u5373\u540c\u6b65\u72b6\u6001\u914d\u7f6e<\/li>\n
- salt_schedule\uff1a\u4f1a\u81ea\u52a8\u4fdd\u6301\u5ba2\u6237\u7aef\u914d\u7f6e<\/li>\n<\/ol>\n<\/div>\n
SaltStack\u5b89\u88c5\u914d\u7f6e<\/strong><\/div>\n\u9ed8\u8ba4\u4ee5CentOS6\u4e3a\u4f8b\uff0c\u91c7\u7528yum\u5b89\u88c5\uff0c\u8fd8\u6709\u5176\u5b83\u5b89\u88c5\u65b9\u5f0f\uff0c\u5982pip\u3001\u6e90\u7801\u3001salt-bootstrap<\/p>\n
EPEL\u6e90\u914d\u7f6e<\/strong><\/span><\/div>\nrpm\u00a0-ivh\u00a0https:\/\/mirrors.tuna.tsinghua.edu.cn\/epel\/epel-release-latest-6.noarch.rpm\r\n<\/pre>\n\u5b89\u88c5\u3001\u914d\u7f6e\u7ba1\u7406\u7aef(master)<\/strong><\/span><\/div>\nyum\u00a0-y\u00a0install\u00a0salt-master\r\nservice\u00a0salt-master\u00a0start\r\n<\/pre>\n\u6ce8\uff1a\u9700\u8981iptables\u5f00\u542fmaster\u7aef4505\u30014506\u7aef\u53e3<\/p>\n
\u5b89\u88c5\u88ab\u7ba1\u7406\u7aef<\/strong><\/span><\/div>\nyum\u00a0-y\u00a0install\u00a0salt-minion\r\nsed\u00a0-i\u00a0's@