Last active
October 13, 2021 16:57
-
-
Save ataylor284/739bfddbb587b6fd2a474d225c56cb61 to your computer and use it in GitHub Desktop.
[nxrm] Set Nexus cluster node name with a groovy script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def hazelcast = container.lookup('com.hazelcast.core.HazelcastInstance') | |
def nodeConfigurationSource = container.lookup('org.sonatype.nexus.common.node.NodeConfigurationSource') | |
def nodeId = hazelcast.cluster.members[0].attributes['node.identity'] | |
nodeConfigurationSource.setFriendlyName(nodeId, "My Node") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment