Hello, I would like to edit the cluster.properties file to the parameter jira.node.id get an ID automatically, for example the hostname.
It is possible? If so, how?
Thanks in advance!
In /opt/confluence/bin/setenv.sh (your directory may differ) I have the following line:
When Confluence starts up this automatically sets the name of the node to the hostname.
On the Jira side, you can't have a variable in the cluster.properties file. The script from @Lessandro is a
hack useful trick that modifies the file before Jira is run.
I got it.
Basically I created a bash script to add automatically the hostname in the file. Something like this:
JIRANODE="jira.node.id = "$HOST
sed -i "2s/.*/$JIRANODE/" /var/atlassian/application-data/jira/cluster.properties
This bash is executed in every reboot via cron.