resource-v13 - describes the Rundeck resource model document
The Resource Model XML document declares a resource model that can also be uploaded to a project hosted on the Rundeck server. This document describes the format and necessary elements.
The root (aka "top-level") element of the resource file is called project
.
Project defines all the resources.
Can contain the following elements:
Example
<project>
<node .../>
</project>
The node element defines a Node resource.
Attributes
The node name. This is a logical identifier from the node. (required)
A brief description about the node. (optional)
The hostname or IP address of the remote host. (required)
The operating system architecture. (optional)
The operating system family, such as unix or windows. (optional)
The operating system name such as Linux or Mac OS X. (optional)
Comma separated list of filtering tags. (optional)
The username used for the remote connection. (required)
URL to an external resource model editor service (optional)
URL to an external resource model service. (optional)
Any user-supplied attributes can be specified to add additional metadata about a node.
Nested Elements
Defines a single metadata attribute for the node, as an alternative to specifying it as a XML attribute on the <node>
element itself.
Attributes
The name of the attribute
The value of the attribute
Alternatively, the value can be specified as nested text content.
Examples:
<attribute name="server-path" value="/var/myapp"/>
<attribute name="server-port">9010</attribute>
Define a node named "strongbad":
<node name="strongbad" type="Node"
description="a development host"
hostname="strongbad.local"
osArch="i386" osFamily="unix" osName="Darwin" osVersion="9.2.2"
username="alexh"/>
Define a node of the type LinuxNode that has a https-port
attribute:
<node type="LinuxNode" name="centos54" hostname="centos54.local"
description="Sample Linux node" tags="sample,linux"
>
<attribute name="https-port" value="435"/>
</node>
Define a node named that uses a non standard SSH port. The "hostname" value is overloaded to include the port (192.168.1.106:4022):
<node name="centos54" type="Node"
description="a centos host"
hostname="192.168.1.106:4022"
username="deploy"
/>
An example using just the required attributes:
<node name="centos54" type="Node"
hostname="192.168.1.106:4022"
username="deploy"/>
An example with a custom attribute "appname" specified in the <node>
element:
<node name="centos54" type="Node"
hostname="192.168.1.106:4022"
username="deploy"
appname="CoolApp"
/>
The Rundeck source code and all documentation may be downloaded from https://github.com/dtolabs/rundeck/.