User Tools

Site Tools


linux:rundeck:additional_cli_setup

Additional Setup on rundeck

Documentation
Name: Additional Setup on rundeck
Description: Additional Setup on rundeck
Modification date : 10/10/2019
Owner:dodger
Notify changes to: dodger & zumi
Tags: proftpd, rundeck
Scalate to:The_fucking_bofh

rundeck user shell

Added the following configuration to .bash_profile for rundeck user:

rundeck@avmlm-rdck-001 ~ $ cat .bash_profile 
# .bash_profile
 
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
 
# User specific environment and startup programs
 
export RDECK_BASE=/etc/rundeck
export RDECK_BIN=/var/lib/rundeck/cli/bin
 
PATH=$PATH:$HOME/.local/bin:$HOME/bin:$RDECK_BIN
 
export PATH

log4j

Executing rd-acl at first will lead in:

rundeck@avmlm-rdck-001 ~ :( $ rd-acl 
log4j:ERROR Could not read configuration file [/var/lib/rundeck/etc/cli-log4j.properties].
java.io.FileNotFoundException: /var/lib/rundeck/etc/cli-log4j.properties (No such file or directory)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(FileInputStream.java:195)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at java.io.FileInputStream.<init>(FileInputStream.java:93)
        at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:372)
        at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:403)
        at com.dtolabs.rundeck.core.cli.BaseTool.run(BaseTool.java:152)
        at com.dtolabs.rundeck.core.cli.acl.AclTool.main(AclTool.java:157)
log4j:ERROR Ignoring configuration file [/var/lib/rundeck/etc/cli-log4j.properties].
Command expected. Choose one of: [test, create, list, validate]

Then I add ${RDECK_BASE} to ${PATH}. It also didn't worked.
So I did a trick (as root):

cd /etc/rundeck/
ln -s ../rundeck etc


Now rd-acl works, I hope that it also work for the rest of utilities.

linux/rundeck/additional_cli_setup.txt · Last modified: 2022/02/11 11:36 by 127.0.0.1