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

Instruction file format

David Becvarik edited this page Jun 4, 2015 · 9 revisions

this is a very WIP - current formats servers POC purposes and it will definitively change. Any suggestion/bugs are welcomed!

the basic concept should look like:

- name: foo
  description: foo bar baz
  environment:
    - global_var: value
  changes:
    - module:
      - environment:
          - module_var: value
      - operation: operation args

where:

  • name - uniquely identifies a module - name-spacing is strongly recommend
  • description - user friendly description of a change - optional
  • changes - list of modules performing configuration changes - modules are executed in a specified order
  • module - an object representing type of change i.e. run command, XML edit, jboss-cli operation
  • operation - a step in a module like: adding XML attribute, removing element, ...
  • environment - a list of variables - can be global for a change or local for any module

Environment scope:

All variables are local to the object which defined them. and are overridden from top to bottom. So if there is same variable in module scope that value is used in module.

Clone this wiki locally