Tuesday, August 29, 2023

Rundeck Add Nodes

 



Add the following lines into Project configuration file (Project settings -> Edit Configuration -> Edit Configuration File (on the top right corner))

resources.source.1.config.file=/var/rundeck/projects/Login-Server/resources.xml
resources.source.1.config.generateFileAutomatically=true
resources.source.1.config.includeServerNode=true
resources.source.1.type=file

Create resources.xml file

Go to directory -> /var/rundeck/projects/<Job-Name>, in my case it is /var/rundeck/projects/Login-Server

touch resources.xml
vi resources.xml

Add the following lines

<?xml version="1.0" encoding="UTF-8"?>

<project>
  <node name="login-server"  tags="loginserver" hostname="144.xx.xx.xx" osFamily="unix" osName="Linux" username="ynagaraj"/>
</project>

Restart the Rundeck

service rundeckd restart
or
/etc/init.d/rundeckd restart (stop|start|status)

Login to Rundeck -> http://localhost:4440

Click on Project settings -> Edit Nodes and you will see that newly added node appears on the list