Puppet Class: ibm_profile::mq_machine::messaging_setup
- Inherits:
- ibm_profile
- Defined in:
- manifests/mq_machine/messaging_setup.pp
Summary
This class allows you to setup your MQ messaging setup.Overview
--
ibm_profile::mq_machine::messaging_setup
It has support for:
-
queue’s (See [mq_queue](/docs/mq_config/mq_queue.html))
-
topics (See [mq_topic](/docs/mq_config/mq_topic.html))
-
listeners (See [mq_listener](/docs/mq_config/mq_listener.html))
-
channels (See [mq_channel](/docs/mq_config/mq_channel.html))
Use use a `yaml` representation of the specfied resource to specify all properties and params of the objects you need.
When a lot of the objects have the same defaults, use the `defaults` parameter to specify a Hash of defaults.
–++–
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'manifests/mq_machine/messaging_setup.pp', line 58
class ibm_profile::mq_machine::messaging_setup(
Hash $queue_list,
Hash $queue_defaults,
Hash $topic_list,
Hash $topic_defaults,
Hash $listener_list,
Hash $listener_defaults,
Hash $channel_list,
Hash $channel_defaults,
) inherits ibm_profile {
mq_config::qmgrs_in($queue_list).each |$qmgr| {
if ! mq_config::is_standby($qmgr) {
$list = mq_config::resources_for($queue_list, $qmgr)
echo {"MQ queue(s) ${list.keys.join(', ')}": withpath => false}
ensure_resources('mq_queue', $list, $queue_defaults)
} else {
echo {"MQ queue(s) on ${qmgr} skipping because it is in standby mode": withpath => false}
}
}
mq_config::qmgrs_in($topic_list).each |$qmgr| {
if ! mq_config::is_standby($qmgr) {
$list = mq_config::resources_for($topic_list, $qmgr)
echo {"MQ topics(s) ${list.keys.join(', ')}": withpath => false}
ensure_resources('mq_topic', $list, $topic_defaults)
} else {
echo {"MQ topics(s) on ${qmgr} skipping because it is in standby mode": withpath => false}
}
}
mq_config::qmgrs_in($channel_list).each |$qmgr| {
if ! mq_config::is_standby($qmgr) {
$list = mq_config::resources_for($channel_list, $qmgr)
echo {"MQ channel(s) ${list.keys.join(', ')}": withpath => false}
ensure_resources('mq_channel', $list, $channel_defaults)
} else {
echo {"MQ channel(s) on ${qmgr} skipping because it is in standby mode": withpath => false}
}
}
mq_config::qmgrs_in($listener_list).each |$qmgr| {
if ! mq_config::is_standby($qmgr) {
$list = mq_config::resources_for($listener_list, $qmgr)
echo {"MQ listener(s) ${list.keys.join(', ')}": withpath => false}
ensure_resources('mq_listener', $list, $listener_defaults)
} else {
echo {"MQ listener(s) on ${qmgr} skipping because it is in standby mode": withpath => false}
}
}
}
|