Rundeck each addition and deletion of the node when you need to manually modify the configuration file, very cumbersome, and error prone. It is more efficient and convenient to modify through Web pages!
Instructions for use:
First, modify the directory "Rundecknodes" under the data source configuration file
Locate database information in line 40th to 50th of "db.class.php", modify database address, database name and user name password
Second, the initialization of the session database
1) Create database name "Rdnode" in MySQL: "Create db IF not EXISTS rdnode DEFAULT CHARSET UTF8 COLLATE utf8_general_ci;
2) CREATE TABLE "xml":mysql> source/tmp/xml.sql;
3) Copy the "Resources.xml" file under the Rundeck project to the website root directory for data initialization
4) Initialize the method, in the browser input address http://127.0.0.1/read.php (run only once, repeated execution will result in data duplication)
5) Enter http://127.0.0.1/list.php at this time to see the server node information in Rundeck
Here is the page that modifies the node configuration file written in PHP:
1. List
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7E/D8/wKioL1cLDI6B8W98AAC29srQ9fM523.png "title=" 1.png " alt= "Wkiol1cldi6b8w98aac29srq9fm523.png"/>
2. Adding nodes
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7E/DB/wKiom1cLDCXRn_ksAAG-IWrcCdE944.png "title=" 2.png " alt= "Wkiom1cldcxrn_ksaag-iwrccde944.png"/>
3. Modify the existing node
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7E/DB/wKiom1cLDOvw_xWHAAGoom4m3tI271.png "title=" 3.png " alt= "Wkiom1cldovw_xwhaagoom4m3ti271.png"/>
4. Delete a node
5. The code is in the attachment
This article is from the "Zhaohaihua _ Yun-dimensional Road" blog, please be sure to keep this source http://baiying.blog.51cto.com/1068039/1762511
Rundeck Web page Configuration node node