Fix: elasticsearch cookbook switches on platform_family

Change-Id: I461b9c0bd12ae42554d61752d8e17f7f00a97a0e