1 Reply Latest reply on Jun 27, 2012 3:51 AM by Alexey Loubyansky

    variables and/or parameters available in CLI?

    Ben Schofield Novice

      Is it possible to define or pass in variables when using jboss-cli.sh?

       

      I would like to do something like

      ./jboss-cli.sh --file="myCLIcommands.txt" -Dhornetq.cluster.password=superSecret

      Then in myCLIcommands.txt reference hornetq.cluster.password.

       

      /subsystem=messaging/hornetq-server=default/:write-attribute(name=cluster-password,value=${hornetq.cluster.password})

      The end goal is to leave the CLI scripts unmodified and pass in different values when configuring different clusters.