I think that this is simple enough that we can just have a loop to do it:

```ruby
['localhost', '%'].each do |hostname|
  mysql_database_user node['rs-mysql']['application_username'] do
    ...
    host hostname
    ...
  end
end
```