This isn't equivalent. You need to convert this `not_if` to a block:

```ruby
not_if { db_type != "master" && node.chef_environment != "production" }
```

it probably would make sense to use `only_if` here too, since the logic is a double negative