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.
Hi Atlassian Community, My name is Avni Barman, and I am a Product Manager on the Confluence Cloud team. Based on feedback from you, we are giving admins more power to create templates that a...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event