Skip to content

Commit

Permalink
Fix README (#394)
Browse files Browse the repository at this point in the history
- Users specified via an attribute take a single vhost string
    - Users specified via a resource take a single vhost string and an array of vhost strings
  • Loading branch information
dhui authored and JJ Asghar committed Jun 16, 2017
1 parent e5e1fa6 commit 797ac8b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ node['rabbitmq']['enabled_users'] = [
:tag => 'leader',
:rights => [
{
:vhost => ['/', 'nova'],
:vhost => 'nova',
:conf => '.*',
:write => '.*',
:read => '.*'
Expand Down Expand Up @@ -214,6 +214,14 @@ rabbitmq_user "nova" do
end
```

```ruby
rabbitmq_user "rmq" do
vhost ["/", "/rmq", "/nova"]
permissions ".* .* .*"
action :set_permissions
end
```

```ruby
rabbitmq_user "joe" do
tag "admin,lead"
Expand Down

0 comments on commit 797ac8b

Please sign in to comment.