Can you have a look to this: https://github.com/guilhem/ceph-cookbook/blob/master/libraries/default.rb#L16 ?