{"id":349,"date":"2018-03-14T09:46:55","date_gmt":"2018-03-14T01:46:55","guid":{"rendered":"http:\/\/www.max-shu.com\/blog\/?p=349"},"modified":"2018-03-14T09:46:55","modified_gmt":"2018-03-14T01:46:55","slug":"%e4%bd%bf%e7%94%a8redhat-func%e6%9d%a5%e7%ae%a1%e7%90%86%e9%9b%86%e7%be%a4","status":"publish","type":"post","link":"http:\/\/www.max-shu.com\/blog\/?p=349","title":{"rendered":"\u4f7f\u7528redhat func\u6765\u7ba1\u7406\u96c6\u7fa4"},"content":{"rendered":"<div><b>\u5728master\u548cslave\u4e0a<\/b>\u5148\u5b89\u88c5\u597dpython\uff0c\u63a5\u7740\u5b89\u88c5certmaster\uff1a<br \/>\n# yum install pyOpenSSL<br \/>\n# tar -zxvf certmaster-0.28.tar.gz<br \/>\n# cd certmaster-0.28\/<br \/>\n# python setup.py install<\/p>\n<p>\u5b89\u88c5func\uff1a<br \/>\n# tar -zxvf func-0.28.tar.gz<br \/>\n# cd func-0.28\/<br \/>\n# python setup.py install<\/p>\n<p><b>\u5728Master\u673a\u5668<\/b>10.24.1.47\u4e0a\u4fee\u6539\u914d\u7f6e\u5e76\u542f\u52a8certmaster\uff1a<br \/>\n# vi \/etc\/certmaster\/certmaster.conf<br \/>\nautosign = yes<\/p>\n<p># lokkit -p 51235:tcp<br \/>\n# chkconfig certmaster on<br \/>\n# service certmaster start<\/p>\n<p><b>\u5728Slaves\u673a\u5668\u4e0a<\/b>\u4fee\u6539\u914d\u7f6e\u540e\u542f\u52a8func\uff1a<br \/>\n# vi \/etc\/certmaster\/minion.conf<br \/>\n[main]<br \/>\ncertmaster = 10.24.1.47<\/p>\n<p>\u542f\u52a8\uff1a<br \/>\n# lokkit -p 51234:tcp<br \/>\n# chkconfig funcd on<br \/>\n# service funcd start<\/p>\n<p><b>\u5728Master\u4e3b\u673a\u4e0a\u67e5\u770b\uff1a<\/b><br \/>\n# certmaster-ca &#8211;list-signed<br \/>\n# certmaster-ca &#8211;list<br \/>\n\u5982\u679c\u6709\u6ca1\u6709\u7b7e\u540d\u7684\uff0c\u5219\u7528\u5982\u4e0b\u547d\u4ee4\u7b7e\u540d\uff1a<br \/>\n# certmaster-ca &#8211;sign hostname<\/p>\n<p>\u5728Master\u673a\u5668\u4e0a\u6267\u884c\u547d\u4ee4\u5373\u53ef\uff0c\u53ef\u652f\u6301\u201c\u5f15\u53f7\u201d\u4e0b\u7684\u901a\u914d\u7b26\uff1a<br \/>\n#\u00a0<b>func hostname call cpu usage<\/b><br \/>\n#\u00a0<b>func &#8220;*&#8221; call cpu usage<\/b><br \/>\n# func &#8220;com*&#8221; call cpu usage<br \/>\n#\u00a0<b><span style=\"color: #ff0000;\">func &#8220;*&#8221; call command run &#8220;ls -lrt &#8220;<\/span><\/b><\/div>\n<p>\u8fd9\u73a9\u610f\u513f\u5e76\u4e0d\u597d\u7528\uff0c\u4e0d\u5982c3 tools \u4e4b\u7c7b\u7684\u7b80\u5355\u76f4\u89c2\uff0c\u901f\u5ea6\u4e5f\u4e0d\u5feb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728master\u548cslave\u4e0a\u5148\u5b89\u88c5\u597dpython\uff0c\u63a5\u7740\u5b89\u88c5certmaster\uff1a # yum install  &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[268,267,266,270,269],"class_list":["post-349","post","type-post","status-publish","format-standard","hentry","category-linuxandroid","tag-certmaster","tag-func","tag-redhat","tag-270","tag-269"],"views":1578,"_links":{"self":[{"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/349","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=349"}],"version-history":[{"count":1,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/349\/revisions"}],"predecessor-version":[{"id":350,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/349\/revisions\/350"}],"wp:attachment":[{"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=349"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.max-shu.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}