Red Hat Training

A Red Hat training course is available for Red Hat Fuse

9.29. fabric:ensemble-password


Displays or modifies the ensemble password


fabric:ensemble-password [ --help ] [ --commit ] [ NewPassword ]


The ensemble password protects access to the Zookeeper nodes under the /fabric/ path, which contains critical configuration data for the fabric. This command can be used either to display the current ensemble password or to change the ensemble password to a new value.
To display the current ensemble password, invoke the command without any arguments:
JBossFuse:karaf@root> fabric:ensemble-password
To change the ensemble password requires a two-step process. First, specify the new password as follows:
JBossFuse:karaf@root> fabric:ensemble-password mysecret
Updating the password...
Password updated. Please wait a little while for the new password to
get delivered as a config update to all the fabric nodes. Once, the 
nodes all updated (nodes must be online), please run: 

  fabric:ensemble-password --commit 

JBossFuse:karaf@root> fabric:ensemble-password --commit
Only the current password is allowed access to fabric now.

After the new password has propagated to all of the ensemble nodes, commit the change as follows:
JBossFuse:karaf@root> fabric:ensemble-password --commit


Table 9.29, “fabric:ensemble-password Arguments” describes the command's arguments.

Table 9.29. fabric:ensemble-password Arguments

NewPassword Specifies the new ZooKeeper password for the ensemble.
--help Displays the online help for this command
--commit Displays the online help for this command