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: | Thefuckingbofh |
rundeck user shell
Added the following configuration to .bashprofile
to for
rundeck user:
<code bash>
rundeck@avmlm-rdck-001 ~ $ cat .bashprofile
# .bashprofile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export RDECKBASE=/etc/rundeck
export RDECKBIN=/var/lib/rundeck/cli/bin
PATH=$PATH:$HOME/.local/bin:$HOME/bin:$RDECK_BIN
export PATH
</code>
====== log4j ======
Executing
rd-acl at first will lead in:
<code bash>
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]
</code>
Then I add
${RDECKBASE}${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.