0 Replies Latest reply on Jun 9, 2015 11:56 AM by Uwe Bartels

    unable to configure wildfly server via cli for some parameters

    Uwe Bartels Newbie

      Hiho,

       

      I need to configure jboss8 on redhat automatically and repeated via chef.

      In jboss7 I used a template for standalone-full.xml, but that doesn't work anymore as wildfly wildly re-writes that file and adds information about deployments etc.

       

      So I tried the cli as evil the commands may look.

       

      One parameter I need to configure is the log pattern: "%d{YYYY-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"

       

      I tried the command:

      ./bin/jboss-cli.sh -c '/subsystem=logging/pattern-formatter=PATTERN:write-attribute(name=pattern,value=%d{YYYY-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n)'

      in several variations with escaping the characters {}()$ and even space, all without success.

       

      I also tried to use the file which contained the command string above:

      ./bin/jboss-cli.sh --connect --file=/tmp/jboss-cli.commands

      Nothing helped.

       

      How can I configure jboss8 automatically?

       

      Best...

      Uwe