{"id":79,"date":"2019-03-02T00:42:51","date_gmt":"2019-03-01T15:42:51","guid":{"rendered":"https:\/\/obenkyolab.com\/?p=79"},"modified":"2022-01-07T06:48:51","modified_gmt":"2022-01-06T21:48:51","slug":"rundeck-%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/obenkyolab.com\/?p=79","title":{"rendered":"Rundeck \u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8a2d\u5b9a(MySQL)"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/obenkyolab.com\/?p=79\/#%E7%9B%AE%E7%9A%84\" >\u76ee\u7684<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/obenkyolab.com\/?p=79\/#%E7%92%B0%E5%A2%83\" >\u74b0\u5883<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/obenkyolab.com\/?p=79\/#MySQL%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\" >MySQL\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/obenkyolab.com\/?p=79\/#RDB_Datasource%E3%81%AE%E8%A8%AD%E5%AE%9A\" >RDB Datasource\u306e\u8a2d\u5b9a<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/obenkyolab.com\/?p=79\/#%E6%B3%A8%E6%84%8F%E7%82%B9\" >\u6ce8\u610f\u70b9<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%9B%AE%E7%9A%84\"><\/span>\u76ee\u7684<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u30b8\u30e7\u30d6\u7ba1\u7406\u30c4\u30fc\u30eb\u306eRundeck\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067H2 Database\u304c\u7d44\u307f\u8fbc\u307e\u308c\u3001\u3053\u308c\u304c\u30ea\u30dd\u30b8\u30c8\u30eaDB\u3068\u3057\u3066\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3001\u30b8\u30e7\u30d6\u306e\u6570\u3084\u5b9f\u884c\u56de\u6570\u304c\u5897\u3048\u3001\u30ed\u30b0\u304c\u6e9c\u307e\u3063\u3066\u304f\u308b\u3068GUI\u3067\u306e\u52d5\u4f5c\u304c\u91cd\u304f\u306a\u3063\u3066\u304f\u308b\u3089\u3057\u3044\u30fb\u30fb\u30fb<br><br>\u305d\u306e\u305f\u3081\u3001\u30ea\u30dd\u30b8\u30c8\u30eaDB\u3092H2 Database\u304b\u3089<strong><a href=\"https:\/\/www.mysql.com\/jp\/\">MySQL<\/a><\/strong>\u306e\u7ba1\u7406\u306b\u5909\u66f4\u3057\u305f\u3044\u3002<br>MySQL Community Edition\u306fOSS\u3067\u7121\u6599\u3067\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3057\u3001<a href=\"https:\/\/docs.rundeck.com\/docs\/administration\/configuration\/database\/mysql.html\">Rundeck\u306e\u30de\u30cb\u30e5\u30a2\u30eb<\/a>\u3067\u3082Example\u3068\u3057\u3066\u8f09\u3063\u3066\u3044\u308b\u306e\u3067\u5b89\u5fc3\u3067\u304d\u308b\u3002<br>\uff08\u540c\u3058OSS\u3067\u3042\u308bPostgreSQL\u3067\u3082\u4ee3\u66ff\u53ef\u80fd\u3068\u306f\u601d\u3044\u307e\u3059\u3002\uff09<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%92%B0%E5%A2%83\"><\/span>\u74b0\u5883<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>OS\uff1aCentOS7<br>MySQL\uff1aVer. 15.1 <br>Rundeck\uff1aVer. 3.0.13 <\/p>\n\n\n\n<iframe loading=\"lazy\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?o=9&amp;p=13&amp;l=ur1&amp;category=timesalefestival202107&amp;banner=16WN7ATZTGV1G9T8XX82&amp;f=ifr&amp;linkID=4511914f54b9f1f6187a7728452f4872&amp;t=sebone0f-22&amp;tracking_id=sebone0f-22\" width=\"468\" height=\"60\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"><\/iframe>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"MySQL%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\"><\/span>MySQL\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p> \u307e\u305a\u306fMySQL\u3092yum\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002 <br><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n#\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n$ sudo yum install mysql-community-server\n<\/pre><\/div>\n\n\n<p>\u3000<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u3082\u3057\u3001\u30aa\u30d5\u30e9\u30a4\u30f3\u74b0\u5883\u3067\u69cb\u7bc9\u3059\u308b\u5834\u5408\u306f\u4ee5\u4e0b\u306eURL\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3001rpm\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/dev.mysql.com\/downloads\/installer\/\">https:\/\/dev.mysql.com\/downloads\/installer\/<\/a><\/p>\n\n\n\n<p>\u3000<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"RDB_Datasource%E3%81%AE%E8%A8%AD%E5%AE%9A\"><\/span>RDB Datasource\u306e\u8a2d\u5b9a<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u6b21\u306b\u3001MySQL\u306bRundeck\u7528\u306eDB\u3092\u7528\u610f\u3057\u3001\u3053\u306eDB\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; title: ; notranslate\" title=\"\">\n# Rundeck\u7528DB\u4f5c\u6210\n  mysql&gt; create database rundeck;\n  \n# \u30a2\u30af\u30bb\u30b9\u7528\u30a2\u30ab\u30a6\u30f3\u30c8\u4f5c\u6210\n\u3000mysql&gt; GRANT ALL ON rundeck.* to &#039;rundeckuser&#039;@&#039;localhost&#039; identified by &#039;rundeckpassword&#039;; \n<\/pre><\/div>\n\n\n<p><br>\u6b21\u306bRundeck\u306erundeck-config.properties\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306eH2 Database\u304b\u3089MySQL\u3078\u63a5\u7d9a\u5148DB\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<br>\u4ee5\u4e0b\u306e\u300c\u8ffd\u52a0\u300d\u3068\u66f8\u3044\u3066\u3042\u308b\u90e8\u5206\u304c\u8a2d\u5b9a\u90e8\u5206\u3067\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n#config\u30d5\u30a1\u30a4\u30eb\u8a2d\u5b9a\n$ vim \/etc\/rundeck\/rundeck-config.properties\n  #dataSource.url = jdbc:h2:file:\/var\/lib\/rundeck\/data\/rundeckdb;MVCC=true \n\n#Comment\n  rundeck.v14.rdbsupport=true #\u8ffd\u52a0\n  dataSource.url = jdbc:mysql:\/\/myserver\/rundeckdb?autoReconnect=true\n  dataSource.username = rundeckuser\n  dataSource.password = rundeckpassword\n  dataSource.driverClassName=com.mysql.jdbc.Driver\u3000#\u8ffd\u52a0\n  rundeck.log4j.config.file = \/etc\/rundeck\/log4j.properties\n\n#rundeck\u518d\u8d77\u52d5\n$ systemctl restart rundeckd\n<\/pre><\/div>\n\n\n<p>\u3061\u3083\u3093\u3068\u8d77\u52d5\u3067\u304d\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002\u3057\u3070\u3089\u304f\u5f85\u3063\u3066\u3001run\u304c\u8868\u793a\u3055\u308c\u7d9a\u3051\u3066\u3044\u308c\u3070\u5927\u4e08\u592b\u3067\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$systemctl status rundeckd\n<\/pre><\/div>\n\n\n<p><br>\u3055\u3089\u306b\u3001\u4e0a\u8a18\u306e\u3042\u3068\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u7aef\u672b\u304b\u3089\u30d6\u30e9\u30a6\u30b6\u3092\u8d77\u52d5\u3057\u3001Rundeck\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308c\u3070\u554f\u984c\u306a\u304f\u6210\u529f\u3057\u3066\u3044\u308b\u3068\u8003\u3048\u3066\u5927\u4e08\u592b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%B3%A8%E6%84%8F%E7%82%B9\"><\/span>\u6ce8\u610f\u70b9<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u4e0a\u8a18\u8a2d\u5b9a\u4e2d\u306b\u30cf\u30de\u3063\u3066\u3057\u307e\u3063\u305f\u7b87\u6240\u304c\u3042\u308a\u307e\u3059\u3002<br><br>\u79c1\u306e\u74b0\u5883\u3067\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306erundeck-config.properties\u30d5\u30a1\u30a4\u30eb\u5185\u306b\u3001\u4ee5\u4e0b\u306e\u8a18\u8ff0\u304c\u306a\u304f\u3001\u3053\u308c\u3089\u3092\u8ffd\u52a0\u3057\u306a\u3044\u3068\u3046\u307e\u304f\u52d5\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nrundeck.v14.rdbsupport=true\ndataSource.driverClassName=com.mysql.jdbc.Driver\n<\/pre><\/div>\n\n\n<p> \u6700\u7d42\u7684\u306b\u306f\u6c17\u3065\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u6c17\u3065\u3044\u3066\u8ffd\u8a18\u3059\u308b\u307e\u3067\u306b\u3001\u304b\u306a\u308a\u6642\u9593\u3068\u52b4\u529b\u3092\u8cbb\u3084\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u7684 \u30b8\u30e7\u30d6\u7ba1\u7406\u30c4\u30fc\u30eb\u306eRundeck\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067H2 Datab&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":1039,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/obenkyolab.com\/?p=79","footnotes":""},"categories":[57,15],"tags":[36],"class_list":["post-79","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mysql","category-rundeck","tag-36","ja"],"_links":{"self":[{"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/posts\/79","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=79"}],"version-history":[{"count":27,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/posts\/79\/revisions"}],"predecessor-version":[{"id":3797,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/posts\/79\/revisions\/3797"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/media\/1039"}],"wp:attachment":[{"href":"https:\/\/obenkyolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}