Could you just:

```ruby
node['roles'].map { |r| "OR deploy:#{role}" }.join(' ')
```