Automated minor update of mongo from 2.4.X to 2.4.Y in Chef

Hi Everyone :wink:

I have a task to automate the update of a mongo replica set in Chef. The
update is minor (2.4.X to 2.4.Y) and info is available in Overall as I
think I need to implement some logic in chef so that it will:

  • shutdown, upgrade, start mongo slaves one by one;
  • step down master, stop it, upgrade it.
    Have anyone automated such case? Can you provide some examples or say what
    should I watch about? I am using cookbook.