install
下载jar包,安装 java 运行环境
java -jar rundeck-launcher-2.11.4.jar
修改密码
vi $RDECK_BASE/server/config/realm.properties
http://rundeck.org/2.0.3/jp/administration/09-authentication.html
修改数据存储
vi $RDECK_BASE/server/config/rundeck-config.properties
dataSource.url=jdbc:mysql://192.168.1.34/rundeck?autoReconnect=true&useUnicode=true&characterEncoding=UTF8
dataSource.username=jack
dataSource.password=****
添加节点
- 将运行 rundeck 的服务器公钥添加到需要加入的节点 ~/.ssh/authorized_keys 的文件中保证确保能从rundeck服务器无密码登录节点
- 编辑 rundeck 项目的资源文件,在文件中添加节点
vi $RDECK_BASE/projects/spider/etc/resources.xml
<node name="docker-2222" description="Dev MySQL" tags="" hostname="172.17.0.2" osArch="amd64" osFamily="unix" osName="Linux" osVersion="2.6.32-504.8.1.el6.x86_64" username="root"/>
rundeck HTTP ERROR: 503
mkdir /tmp/rundeck
ps mysql 建库
create database rundeck default charset utf8mb4;
grant all on rundeck.* to jack@'%';
flush privileges;