since we're using this in multiple places, we might want to extract this into a library helper like:

```ruby
def use_upstart?
  node['mongodb']['apt_repo'] == 'ubuntu-upstart'
end
```

Separating the use of the `mongodb.apt_repo` key to determine if we should use upstart as init might be a thing to improve in future.