Skip to content

Commit

Permalink
Update examples because classes are dropped or private
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoppe committed May 4, 2019
1 parent 363d48d commit 5f096c0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 19 deletions.
9 changes: 3 additions & 6 deletions examples/full.pp
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
class { 'rabbitmq::repo::apt':
pin => '900',
}

-> class { 'rabbitmq::server':
class { 'rabbitmq':
delete_guest_user => true,
# version => '2.4.1',
repos_ensure => true,
package_apt_pin => 900,
}

-> rabbitmq_user { 'dan':
Expand Down
10 changes: 5 additions & 5 deletions examples/plugin.pp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
class { 'rabbitmq::server':
config_stomp => true,
}

$rabbitmq_plugins = [ 'amqp_client', 'rabbitmq_stomp' ]

class { 'rabbitmq':
config_stomp => true,
}

rabbitmq_plugin { $rabbitmq_plugins:
ensure => present,
require => Class['rabbitmq::server'],
require => Class['rabbitmq'],
provider => 'rabbitmqplugins',
}
5 changes: 0 additions & 5 deletions examples/server.pp

This file was deleted.

1 change: 0 additions & 1 deletion examples/service.pp

This file was deleted.

4 changes: 2 additions & 2 deletions examples/site.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

$rabbitmq_plugins = [ 'amqp_client', 'rabbitmq_stomp' ]

class { 'rabbitmq::server':
class { 'rabbitmq':
config => '[ {rabbit_stomp, [{tcp_listeners, [1234]} ]} ].',
}

# Required for MCollective
rabbitmq_plugin { $rabbitmq_plugins:
ensure => present,
require => Class['rabbitmq::server'],
require => Class['rabbitmq'],
provider => 'rabbitmqplugins',
}
}
Expand Down

0 comments on commit 5f096c0

Please sign in to comment.