This is a plugin for Rundeck > 2.10.0 that uses Git to store resources model file (based on Jgit).
Run the following command to built the jar file:
./gradlew clean build
Copy the rundeck-git-plugin-x.y.x.jar
file to the $RDECK_BASE/libext/
directory inside your Rundeck installation.
You need to set up the following options to use the plugin:
Base Directory: Directory for checkout
Git URL: Checkout URL. See git-clone specifically the GIT URLS section. Some examples:
ssh://[user@]host.xz[:port]/path/to/repo.git/
git://host.xz[:port]/path/to/repo.git/
http[s]://host.xz[:port]/path/to/repo.git/
ftp[s]://host.xz[:port]/path/to/repo.git/
rsync://host.xz/path/to/repo.git/
Branch: Checkout branch
Resource model File: Resource model file inside the github repo. This is the file that will be added to Rundeck resource model.
File Format: File format of the resource model, it could be xml, yaml, json
Writable: Allow to write the remote file
yes
, require remote host SSH key is defined in the ~/.ssh/known_hosts
file, otherwise do not verify.The first method of authentication is the private key.If the private key is not defined, it will take the password.
http[s]://username@host.xz[:port]/path/to/repo.git/
when you use password authentication)Edit node from GUI
(it is not editable)