{"id":474,"date":"2013-07-29T08:55:34","date_gmt":"2013-07-29T00:55:34","guid":{"rendered":"http:\/\/blog.marvelplanet.tk\/?p=474"},"modified":"2013-07-29T08:55:34","modified_gmt":"2013-07-29T00:55:34","slug":"ubuntu-12-04%e4%b8%8a%e5%ae%89%e8%a3%85puppet","status":"publish","type":"post","link":"https:\/\/marvelliu.space\/?p=474","title":{"rendered":"ubuntu 12.04\u4e0a\u5b89\u88c5puppet"},"content":{"rendered":"<p>\u53d1\u73b0<a href=\"http:\/\/docs.puppetlabs.com\/pe\/latest\/quick_start.html\">\u5b98\u65b9\u7684\u8bf4\u660e<\/a>\u95ee\u9898\u5f88\u591a\uff0c\u4e0d\u8fc7\u5168\u505a\u4e00\u4e2a\u53c2\u8003\u5427<\/p>\n<p>puppet\u7684agent\u7aef\u5b89\u88c5\u6ca1\u6709\u95ee\u9898\uff0c\u4f46\u662fmaster\u6d89\u53ca\u5230postgresql\u6570\u636e\u5e93\u7684\u914d\u7f6e\uff0c\u7b80\u5355\u8fd0\u884cpuppet-enterprise-installer\u4f1a\u51fa\u9519<\/p>\n<p>\u6211\u5728\u5b89\u88c5\u76ee\u5f55\u7684answers\u76ee\u5f55\u4e0b\u53d1\u73b0\u5f88\u591a\u914d\u7f6e\u6587\u4ef6\uff0c\u5176\u4e2dfull_suite_existing_postgres.sample\u6700\u7b26\u5408master\u7684\u9700\u6c42\uff0c\u4e8e\u662f\u5c06\u5176\u590d\u5236\u5230\u5b89\u88c5\u7684\u6839\u76ee\u5f55\uff0c\u4fee\u6539\u5176\u4e2d\u7684\u4e00\u4e9b\u914d\u7f6e\u9879\uff0c\u4e3b\u8981\u662f\u5c06\u5176\u4e2d\u6570\u636e\u5e93\u7684host\u8bbe\u7f6e\u4e3amaster\u7684\u57df\u540d\uff0c\u5bf9\u5e94\u7684\u6570\u636e\u5e93\u8bbe\u7f6e\u7528\u6237\u540d\u5bc6\u7801\u3002<\/p>\n<p>\u7136\u540e\u914d\u7f6epostgreSQL\u6570\u636e\u5e93\uff0c\u53ef\u4ee5\u53c2\u8003<a href=\"http:\/\/blog.sina.com.cn\/s\/blog_57112b350100qiqt.html\">\u8fd9\u7bc7\u6587\u7ae0<\/a>,\u8bbe\u7f6e\u597dpostgres\u5bc6\u7801\u540e\uff0c\u8fdb\u5165<br \/>\n<code>nsfocus@controller:~$ psql  -U postgres -W -h 192.168.19.1<br \/>\nPassword for user postgres:<br \/>\npsql (9.1.9)<br \/>\nSSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256)<br \/>\nType \"help\" for help.<\/p>\n<p>postgres=# CREATE USER \"pe-puppetdb\" PASSWORD 'onemorestrongpass';<br \/>\nCREATE ROLE<br \/>\npostgres=#  CREATE DATABASE \"pe-puppetdb\" OWNER \"pe-puppetdb\" ENCODING 'utf8' LC_CTYPE 'en_US.utf8' LC_COLLATE 'en_US.utf8' template template0;<br \/>\nCREATE DATABASE<br \/>\npostgres=#  CREATE DATABASE \"console_auth\" OWNER \"auth_user\" ENCODING 'utf8' LC_CTYPE 'en_US.utf8' LC_COLLATE 'en_US.utf8' template template0;<br \/>\nCREATE DATABASE<\/code><br \/>\n\u7136\u540e\u8fd0\u884c.\/puppet-enterprise-installer -a full_suite_existing_postgres.sample<\/p>\n<p>\u5982\u679c\u8fd8\u6709\u9519\u8bef\uff0c\u53ef\u4ee5\u67e5\u770b\u5f53\u524d\u76ee\u5f55\u4e0b\u7684install_log.lastrun.[hostname]\u6587\u4ef6\uff0c\u770b\u770b\u6700\u540eFATAL\u7684\u4fe1\u606f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53d1\u73b0\u5b98\u65b9\u7684\u8bf4\u660e\u95ee\u9898\u5f88\u591a\uff0c\u4e0d\u8fc7\u5168\u505a\u4e00\u4e2a\u53c2\u8003\u5427 puppet\u7684agent\u7aef\u5b89\u88c5\u6ca1\u6709\u95ee\u9898\uff0c\u4f46\u662fmaster\u6d89\u53ca\u5230postgresql\u6570\u636e\u5e93\u7684\u914d\u7f6e\uff0c\u7b80\u5355\u8fd0\u884cpuppet-enterprise-installer\u4f1a\u51fa\u9519 \u6211\u5728\u5b89\u88c5\u76ee\u5f55\u7684answers\u76ee\u5f55\u4e0b\u53d1\u73b0\u5f88\u591a\u914d\u7f6e\u6587\u4ef6\uff0c\u5176\u4e2dfull_suite_existing_postgres.sample\u6700\u7b26\u5408master\u7684\u9700\u6c42\uff0c\u4e8e\u662f\u5c06\u5176\u590d\u5236\u5230\u5b89\u88c5\u7684\u6839\u76ee\u5f55\uff0c\u4fee\u6539\u5176\u4e2d\u7684\u4e00\u4e9b\u914d\u7f6e\u9879\uff0c\u4e3b\u8981\u662f\u5c06\u5176\u4e2d\u6570\u636e\u5e93\u7684host\u8bbe\u7f6e\u4e3amaster\u7684\u57df\u540d\uff0c\u5bf9\u5e94\u7684\u6570\u636e\u5e93\u8bbe\u7f6e\u7528\u6237\u540d\u5bc6\u7801\u3002 \u7136\u540e\u914d\u7f6epostgreSQL\u6570\u636e\u5e93\uff0c\u53ef\u4ee5\u53c2\u8003\u8fd9\u7bc7\u6587\u7ae0,\u8bbe\u7f6e\u597dpostgres\u5bc6\u7801\u540e\uff0c\u8fdb\u5165 nsfocus@controller:~$ psql -U postgres -W -h 192.168.19.1 Password for user postgres: psql (9.1.9) SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256) Type &#8220;help&#8221; for help. postgres=# CREATE USER &#8220;pe-puppetdb&#8221; PASSWORD &#8216;onemorestrongpass&#8217;; CREATE ROLE postgres=# CREATE DATABASE &#8220;pe-puppetdb&#8221; OWNER &#8220;pe-puppetdb&#8221; ENCODING &#8216;utf8&#8217; LC_CTYPE &#8216;en_US.utf8&#8217; LC_COLLATE &#8216;en_US.utf8&#8217; template template0; CREATE DATABASE postgres=# CREATE DATABASE &#8220;console_auth&#8221; &hellip; <a href=\"https:\/\/marvelliu.space\/?p=474\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;ubuntu 12.04\u4e0a\u5b89\u88c5puppet&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-474","post","type-post","status-publish","format-standard","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/posts\/474","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/marvelliu.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=474"}],"version-history":[{"count":1,"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/posts\/474\/revisions"}],"predecessor-version":[{"id":475,"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/posts\/474\/revisions\/475"}],"wp:attachment":[{"href":"https:\/\/marvelliu.space\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/marvelliu.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/marvelliu.space\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}