Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iteration loop for multiple bindings creation #769

Open
itnazeer opened this issue Jan 29, 2019 · 0 comments
Open

Iteration loop for multiple bindings creation #769

itnazeer opened this issue Jan 29, 2019 · 0 comments
Labels

Comments

@itnazeer
Copy link

itnazeer commented Jan 29, 2019

I have a exchange and had to create multiple bindings to multiple queues, so I have used the below iteration loop and multiple bindings are creating fine but on every puppet run I see the notice as binding created. Please help me on this how can we make to stop those notices on every puppet run, thought its not affecting anything.

Integer[1,6].each |$destination| {
    rabbitmq_binding {"exchange.search.tracking${destination}":
      source           => 'exchange.search.tracking1',
      destination_type => 'queue',
      destination      => "queue.search.tracking.lazy${destination}",
      routing_key      => $destination,
      arguments        => {},
      }
    }
 Integer[1,6].each |$destination| {
    rabbitmq_binding {"exchange.search.trackingg${destination}":
      source           => 'exchange.search.tracking2',
      destination_type => 'queue',
      destination      => "queue.search.tracking.lazy${destination}",
      routing_key      => $destination,
      arguments        => {},
      }
   }

Error:

Notice: /Stage[main]/Product::Advxml::Utilrmq/Rabbitmq_binding[exchange.search.tracking1]/ensure: created
Notice: /Stage[main]/Product::Advxml::Utilrmq/Rabbitmq_binding[exchange.search.trackingg1]/ensure: created
Notice: /Stage[main]/Product::Advxml::Utilrmq/Rabbitmq_binding[exchange.search.tracking2]/ensure: created
Notice: /Stage[main]/Product::Advxml::Utilrmq/Rabbitmq_binding[exchange.search.trackingg2]/ensure: created
Notice: /Stage[main]/Product::Advxml::Utilrmq/Rabbitmq_binding[exchange.search.tracking3]/ensure: created
Notice: /Stage[main]/Product::Advxml::Utilrmq/Rabbitmq_binding[exchange.search.trackingg3]/ensure: created
Notice: /Stage[main]/Product::Advxml::Utilrmq/Rabbitmq_binding[exchange.search.tracking4]/ensure: created
Notice: /Stage[main]/Product::Advxml::Utilrmq/Rabbitmq_binding[exchange.search.trackingg4]/ensure: created
Notice: /Stage[main]/Product::Advxml::Utilrmq/Rabbitmq_binding[exchange.search.tracking5]/ensure: created
Notice: /Stage[main]/Product::Advxml::Utilrmq/Rabbitmq_binding[exchange.search.trackingg5]/ensure: created
Notice: /Stage[main]/Product::Advxml::Utilrmq/Rabbitmq_binding[exchange.search.tracking6]/ensure: created
Notice: /Stage[main]/Product::Advxml::Utilrmq/Rabbitmq_binding[exchange.search.trackingg6]/ensure: created
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants