MLWK - New notifier `Console`

Tags:

In my first blog post of the "MLWK" series I metioned that I will take the opportunity to keep you updated about the current develpments in kanku from a users perspective.

So, here we go:

The new Kanku::Notifier::Console

Disclaimer: The usage of the Console notifier makes (IMHO) only sense in KankuFile's, not in server side job configurations (e.g. /etc/kanku/jobs/foo_bar.yml).

Below you can see a short example for such a notification configuration in a Kankufile.

notifiers:
  tasks:
    -
      use_module: Kanku::Notifier::Console
      options:
        template: |+
          [% USE Filter::ANSIColor 'color' %]
          ****
          **** Your text for [% context.ipaddress | color 'red' %] goes here
          ****
      states: succeed

This configuration will print a text generated from template using the variable ipaddress from the job context to STDERR in case job with name samaxi.de is ending with state succeed.

Kanku::Notifier::Console screenshot

This example has been taken from a working real life example.

Cheers

Frank