It could. Although this chunk of code feels a little weird to put in the middle of initializing `new_resource`.

I had a thought that I did not include in this pull request, that there be an `is_mongos` ala `is_configserver`, `is_replicaset` and `is_shard`. That would then be accessed with `node['mongodb']['is_mongos']`. `type` could then be eliminated altogether.