YetAnotherGerrit / zammad-macros

Zammad production.log-parser and script generator
GNU Affero General Public License v3.0
1 stars 0 forks source link

⚠️ DANGER ZONE ⚠️

The whole idea of this project is just a proof of concept (yet). Don't use that in any productive environment without knowing exactly what is happening here!

zammad-macros

This is a set of scripts to replay configurations done in a Zammad instances based of what has been logged in a production.log.

⚠️ Always check the scripts before you run them. Id's may be different in the target system!

read-production.log.rb

Run read-production.log.rb to parse your production.log and output a zapi script.

./read-production.log.rb <optional:path/to/poduction.log>

Example

With todays production.log in its package default location:

./read-production.log.rb > my-script.zapi

run-zapi.rb

Run run-zapi.rb to execute a zapi script.

./run-zapi.rb <my-script.zapi> <optional:host> <optional:api-token>

You can also provide HOST/TOKEN within the zapi-script. You can even include instructions for more than one host within the same zapi-script this way.