Skip to content

Commit

Permalink
Merge pull request redhat-openstack#214 from puppetlabs/revert-171-mi…
Browse files Browse the repository at this point in the history
…rrorqueue

Revert "Set appropriate policy for mirrored queues"
  • Loading branch information
Ashley Penney committed Jul 21, 2014
2 parents 5ce33f4 + d32e501 commit 6d41bdc
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 42 deletions.
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,23 +111,6 @@ class { 'rabbitmq':
}
```

**NOTE:** If you are using a version of RabbitMQ less than 3.0,
you still need to use `x-ha-policy: all` in your client
applications for any particular queue to take advantage of H/A via
mirrored queues.

If you are using a version of RabbitMQ >= 3.0 You should set the
'config_mirrored_queues' parameter if you plan
on using RabbitMQ Mirrored Queues within your cluster:

```puppet
class { 'rabbitmq':
config_cluster => true,
config_mirrored_queues => true,
cluster_nodes => ['rabbit1', 'rabbit2'],
}
```

##Reference

##Classes
Expand Down
2 changes: 0 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
$cluster_nodes = $rabbitmq::params::cluster_nodes,
$config = $rabbitmq::params::config,
$config_cluster = $rabbitmq::params::config_cluster,
$config_mirrored_queues = $rabbitmq::params::config_mirrored_queues,
$config_path = $rabbitmq::params::config_path,
$config_stomp = $rabbitmq::params::config_stomp,
$default_user = $rabbitmq::params::default_user,
Expand Down Expand Up @@ -70,7 +69,6 @@
validate_string($config)
validate_absolute_path($config_path)
validate_bool($config_cluster)
validate_bool($config_mirrored_queues)
validate_bool($config_stomp)
validate_string($default_user)
validate_string($default_pass)
Expand Down
6 changes: 0 additions & 6 deletions manifests/management.pp
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,4 @@
}
}

if $rabbitmq::config_mirrored_queues {
rabbitmq::policy { 'ha-all':
pattern => '.*',
definition => '{"ha-mode":"all","ha-sync-mode":"automatic"}'
}
}
}
1 change: 0 additions & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
$cluster_nodes = []
$config = 'rabbitmq/rabbitmq.config.erb'
$config_cluster = false
$config_mirrored_queues = false
$config_path = '/etc/rabbitmq/rabbitmq.config'
$config_stomp = false
$default_user = 'guest'
Expand Down
15 changes: 0 additions & 15 deletions manifests/policy.pp

This file was deleted.

2 changes: 1 addition & 1 deletion manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
}

if $config_mirrored_queues != undef {
warning('The $config_mirrored_queues parameter is deprecated in this class, use the rabbitmq class')
warning('The $config_mirrored_queues parameter is deprecated; it does not affect anything')
}

anchor {'before::rabbimq::class':
Expand Down

0 comments on commit 6d41bdc

Please sign in to comment.