{"rsdb":{"rid":"353002","subhead":"","postdate":"0","aid":"250461","fid":"103","uid":"1","topic":"1","content":"
\n

\u4e00 \uff1aansible\u7b80\u5355\u4ecb\u7ecd<\/span><\/h1> \n

\u6b64\u540d\u53d6\u81ea Ansible \u4f5c\u8005\u6700\u559c\u7231\u7684\u300a\u5b89\u5fb7\u7684\u6e38\u620f\u300b \u5c0f\u8bf4\uff0c\u800c\u8fd9\u90e8\u5c0f\u8bf4\u66f4\u88ab\u540e\u4eba\u6539\u7f16\u6210\u7535\u5f71 \uff0d\u300a\u6218\u4e89\u6e38\u620f\u300b\u3002<\/p> \n

\u5b98\u7f51\u5730\u5740\uff1ahttps:\/\/www.ansible.com\/<\/p> \n

\u3000\u3000Ansible\u662f\u4e00\u4e2a\u90e8\u7f72\u4e00\u7fa4\u8fdc\u7a0b\u4e3b\u673a\u7684\u5de5\u5177\uff0c\u670d\u52a1\u7aef\u88ab\u79f0\u4f5c\u4e3a\u4e3b\u63a7\u5236\u7aef\uff0c\u901a\u8fc7SSH\u534f\u8bae\u5b9e\u73b0\u88ab\u63a7\u5236\u7aef\u4e4b\u95f4\u7684\u901a\u4fe1\u3002\u6211\u8ba4\u4e3a\u53ea\u8981\u7ba1\u7406\u5458\u80fd\u901a\u8fc7ssh\u767b\u5f55\u5230\u53e6\u5916\u4e00\u53f0\u4efb\u4f55\u8fdc\u7a0b\u4e3b\u673a\u4e0a\u80fd\u505a\u7684\u64cd\u4f5c\uff0cAnsible\u90fd\u53ef\u4ee5\u8f7b\u677e\u57fa\u4e8e\u6a21\u5757\u5316\u505a\u5230\u4f60\u60f3\u505a\u7684\u4efb\u52a1\uff0c\u4f8b\u5982 copy\uff0cfile\uff0cshell\uff0c\u7b49\u7b49\u4f17\u591a\u6a21\u5757\uff0c\u76ee\u524d\u652f\u6301\u7684\u6a21\u5757\u5927\u69822\u5343\u5de6\u53f3\uff0c\u540e\u7eed\u53ef\u80fd\u4f1a\u66f4\u591a\uff0c\u5b83\u4e5f\u662fpython<\/a>\u5f00\u53d1\u7684\u4e00\u6b3e\u8f6f\u4ef6,\u9700\u8981\u4f9d\u8d56\u4e00\u4e9bpython<\/a>\u5e93\u548c\u7ec4\u4ef6,\u5982:paramiko\uff0cPyYaml\u548cjinja\u4e09\u4e2a\u5173\u952e\u7ec4\u4ef6\uff0c\u76ee\u524d\u5df2\u7ecf\u88abRedhat\u6536\u8d2d\uff0c\uff08\u53ef\u559c\u53ef\u8d3a\uff09\uff01<\/p> \n

\u4e8c\uff1a\u5e38\u7528\u7684\u8fd0\u7ef4\u81ea\u52a8\u5316\u5de5\u5177<\/span><\/h1> \n

Ansible\uff1a\u57fa\u4e8epython\u7814\u53d1\uff0c\u4e2d\u5c0f\u578b\u5e94\u7528\u73af\u5883\uff0c\u6211\u5b9e\u9645\u73af\u5883\u5927\u7ea62000\u53f0\u5de6\u53f3\uff0c\u6267\u884c\u7684\u65f6\u5019\u4f1a\u6bd4\u8f83\u6162\uff0c\u540e\u7eed\u6709\u4f18\u5316\u7684\u65b9\u6cd5\u3002<\/p> \n

Saltstack\uff1apython\uff0c\u4e00\u822c\u9700\u90e8\u7f72agent\uff0c\u6267\u884c\u6548\u7387\u66f4\u9ad8\uff0c\u5927\u578b\u73af\u5883\u51e0\u5343\u53f0\u7684\u4e91\u4e3b\u673a\u8fd8\u662f\u5f88\u4e0d\u9519\uff0c\u56e0\u4e3a\u6709anget\uff0c\u6240\u4ee5\u5b83\u7684\u6548\u7387\u4f1a\u66f4\u9ad8\uff0c\u7531\u4e8eansible\u7684\u7b80\u5355\u76db\u884c\uff0c\u73b0\u5728\u7684\u6211\u57fa\u672c\u5f88\u5c11\u7528\u4e86\u3002<\/p> \n

Puppet\uff1aruby\u5f00\u53d1\uff0c\u529f\u80fd\u5f3a\u5927\uff0c\u914d\u7f6e\u590d\u6742\uff0c\u91cd\u578b\uff0c\u89c9\u5f97\u4e00\u822c\u90fd\u662f\u5927\u516c\u53f8\u90fd\u5728\u7528\u5427\uff0c\u5f88\u725b\u7684\u4e00\u6b3e\u5de5\u5177<\/p> \n

\u5176\u4ed6\u7684\u4e5f\u6709\u4f46\u662f\u6ca1\u600e\u4e48\u7528\u8fc7\uff0c\u5c31\u4e0d\u505a\u63a2\u8ba8\u4e86\u3002<\/p> \n

\u4e09\uff1a\u4e3a\u4ec0\u4e48\u8981\u7528ansible<\/span><\/h1> \n
    \n
  1. \u65e2\u7136\u627e\u5230\u8fd9\u91cc\u5c31\u8bf4\u660e\u4f60\u5df2\u7ecf\u77e5\u9053\u8fd9\u4e2a\u5de5\u5177\u7684\u91cd\u8981\u6027\u3002<\/li> \n
  2. \u7b80\u5355\uff0c\u6279\u91cf\uff0c\u6613\u5b66\uff0c\u64cd\u4f5c\u65b9\u4fbf\uff0c\u4e0d\u9700\u8981C\/s\u67b6\u6784\uff0c\u540c\u65f6 ansible\u662f\u65b0\u51fa\u73b0\u7684\u81ea\u52a8\u5316\u8fd0\u7ef4\u5de5\u5177\uff0c\u57fa\u4e8ePython\u5f00\u53d1\u3002<\/li> \n
  3. \u96c6\u5408\u4e86\u4f17\u591a\u8fd0\u7ef4\u5de5\u5177\u7684\u4f18\u70b9\uff0c\u5b9e\u73b0\u4e86\u6279\u91cf\u7cfb\u7edf\u914d\u7f6e\u3001\u6279\u91cf\u7a0b\u5e8f\u90e8\u7f72\u3002<\/li> \n
  4. \u6700\u4e3b\u8981\u7684\u6211\u8ba4\u4e3a\u662f\u57fa\u4e8eSSH\u8ba4\u8bc1\uff0c\u7701\u53bb\u4e86agent\u6bd4\u8f83\u65b9\u4fbf\u3002 \u90a3\u4e3a\u4ec0\u4e48\u4e0d\u7528Saltstack \uff1f\u54c8\u54c8\uff0c\u6211\u662f\u89c9\u5f97\u70e6\u7410\uff0c\u9700\u8981\u90e8\u7f72agent\u3002<\/li> \n <\/ol> \n

    \u56db\uff1a\u4f18\u70b9\u7684\u7279\u6027<\/span><\/h1> \n
      \n
    1. \u6a21\u5757\u5316\uff1a\u4f7f\u7528\u7279\u5b9a\u7684\u6a21\u5757\uff0c\u5b8c\u6210\u6a21\u5757\u4efb\u52a1\uff0c<\/span>\u6709Paramiko,PyYAML,Jinja2\uff08\u6a21\u677f\u8bed\u8a00\uff09\u4e09\u4e2a\u5173\u952e\u7ec4\u4ef6<\/li> \n
    2. \u652f\u6301\u81ea\u5b9a\u4e49\u6a21\u5757<\/li> \n
    3. \u57fa\u4e8ePython\u8bed\u8a00\u5b9e\u73b0<\/li> \n
    4. \u90e8\u7f72\u7b80\u5355<\/span>\uff0c\u57fa\u4e8epython\u548cSSH\uff08\u9ed8\u8ba4\u5df2\u5b89\u88c5\uff09\uff0cagentless<\/li> \n
    5. \u5b89\u5168\uff0c\u57fa\u4e8eOpenSSH<\/li> \n
    6. \u652f\u6301playbook\u7f16\u6392\u4efb\u52a1<\/li> \n
    7. \u5e42\u7b49\u6027\uff1a\u4e00\u4e2a\u4efb\u52a1\u6267\u884c1\u904d\u548c\u6267\u884cn\u904d\u6548\u679c\u4e00\u6837\uff0c\u4e0d\u56e0\u91cd\u590d\u6267\u884c\u5e26\u6765\u610f\u5916\u60c5\u51b5<\/span><\/li> \n
    8. \u65e0\u9700\u4ee3\u7406\u4e0d\u4f9d\u8d56PKI\uff08\u65e0\u9700ssl\uff09<\/li> \n
    9. \u53ef\u4f7f\u7528\u4efb\u4f55\u7f16\u7a0b\u8bed\u8a00\u5199\u6a21\u5757<\/li> \n
    10. YAML\u683c\u5f0f\uff0c\u7f16\u6392\u4efb\u52a1\uff0c\u652f\u6301\u4e30\u5bcc\u7684\u6570\u636e\u7ed3\u6784<\/li> \n
    11. \u8f83\u5f3a\u5927\u7684\u591a\u5c42\u89e3\u51b3\u65b9\u6848<\/li> \n <\/ol> \n

      \u4e94\uff1a\u91cd\u8981\u7ec4\u6210\u90e8\u5206<\/span><\/h1> \n