Skip to content
This repository was archived by the owner on Mar 5, 2018. It is now read-only.

Batch execution samples

David Becvarik edited this page May 25, 2015 · 2 revisions

this page is a very very wip - depends extremely on [Instruction file format](Instruction file format)

create jboss admin user

-  name: jboss/user/add_admin
   description: add administrator user
   changes:
     - jboss-cli:
         - add-user: username=$EAP_ADMIN_USERNAME password=topsecret admin=true

create jboss regular user

-  name: jboss/user/add_regular
   description: add regular user
   changes:
    - jboss:
      - add-user: username=$EAP_ADMIN_USERNAME password=topsecret admin=true
    - jboss-eap-6-os:
      - add-admin-user:

configura ha

-  name: jboss/os/eap/cluster
   description: configure HA
   changes:
   - jboss-openshift:
      - configure_ha:

create a datasource based on env variables

-  name: os/jboss/setup_datasource
   description: setup datasource
   environment:
     - file : standalone.xml
   changes:
     - jboss:
         - create_datasource: 

run some xml stuff and exc some shell

- name: os/jboss/logging
  description: configures JBOSS logging to JSON  subject:
  environment:
    - file: “/path/to/file.xml”
  changes:
    - xml:
      - delete: xpath=// 
      - delete: xpath=//
    - shell:
      - run: ln -s #subject# /path/to/fileaaaaa.xml
      - run: /custom/bash/script.sh
    - xml:
      - delete: xpath=//
      - delete: xpath=//

Clone this wiki locally