faizalzakaria / chef-run-notifier

Run Notifier to notify Slack And / Or Hipchat when Chef run successfully/failed.
http://github.codegarage.co/chef-run-notifier/
3 stars 2 forks source link

Customize reports ? #2

Open waghanza opened 7 years ago

waghanza commented 7 years ago

Hi,

Thanks for this cookbook.

It's useful to have a slack report on Chef failure.

However, can we customize report (notification text) ?

Regards,

faizalzakaria commented 6 years ago

Hi @waghanza , thanks for the suggestion,

Yes I can add that. Or you can propose a PR.

faizalzakaria commented 6 years ago

@waghanza , released here, v0.4.0. Can you give it a try, when you have a chance.

waghanza commented 6 years ago

@faizalzakaria I have a ArgumentError: wrong number of arguments (3 for 2) when using custom_message

However, I'm running on Chef 11, I'll test this after my upgrade to Chef 12

faizalzakaria commented 6 years ago

Ah ok, I think i know why, you have old gem version.

I'll add a check later.

faizalzakaria commented 6 years ago

@waghanza , chef version 11 is not supported, due to httpparty needs ruby version >=2. chef 11 is using Ruby version < 2. sad.

we can remove this dependency, but not worth it, Chef is now on version 13

waghanza commented 6 years ago

But OpsWork use chef 11 or 12 ;-)

Anyway, I'll test it since I'm upgrading my Chef version.

Thanks

Le 12 déc. 2017 20:59, "Faizal Zakaria" notifications@github.com a écrit :

@waghanza https://github.com/waghanza , chef version 11 is not supported, due to httpparty needs ruby version >=2. chef 11 is using Ruby version < 2. sad.

we can remove this dependency, but not worth it, Chef is now on version 13

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/faizalzakaria/chef-run-notifier/issues/2#issuecomment-351176131, or mute the thread https://github.com/notifications/unsubscribe-auth/ABX72fdNIicr1pX34nb3I4Ow8I-IGRUZks5s_tsegaJpZM4QLVUm .