This file is indexed.

/usr/share/puppet/modules.available/oslo/manifests/messaging/zmq.pp is in puppet-module-oslo 9.4.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 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
109
110
111
112
113
114
115
116
117
118
119
# == Define: oslo::messaging::zmq
#
# Configure ZeroMQ messaging options
#
# This resource configures ZeroMQ messaging resources for an OpenStack service.
# It will manage the [DEFAULT] section in the given config resource.
#
# == Parameters
#
# [*rpc_cast_timeout*]
#  (optional) Seconds to wait before a cast expires (TTL).
#  The default value of -1 specifies an infinite linger
#  period. The value of 0 specifies no linger period.
#  Pending messages shall be discarded immediately
#  when the socket is closed. Only supported by impl_zmq.
#  Defaults to $::os_service_default.
#
# [*rpc_poll_timeout*]
#  (optional) The default number of seconds that poll should wait.
#  Poll raises timeout exception when timeout expired.
#  Defaults to $::os_service_default.
#
# [*rpc_zmq_bind_address*]
#  (optional) ZeroMQ bind address.
#  Should be a wildcard (*), an ethernet interface, or IP.
#  The "host" option should point or resolve to this address.
#  Defaults to $::os_service_default.
#
# [*rpc_zmq_bind_port_retries*]
#  (optional) Number of retries to find free port number
#  before fail with ZMQBindError.
#  Defaults to $::os_service_default.
#
# [*rpc_zmq_concurrency*]
#  (optional) Type of concurrency used.
#  Either "native" or "eventlet".
#  Defaults to $::os_service_default.
#
# [*rpc_zmq_contexts*]
#  (optional) Number of ZeroMQ contexts.
#  Defaults to $::os_service_default.
#
# [*rpc_zmq_host*]
#  (optional) Name of this node.
#  Must be a valid hostname, FQDN, or IP address.
#  Must match "host" option, if running Nova.
#  Defaults to $::os_service_default.
#
# [*rpc_zmq_ipc_dir*]
#  (optional) Directory for holding IPC sockets.
#  Defaults to $::os_service_default.
#
# [*rpc_zmq_matchmaker*]
#  (optional) MatchMaker driver.
#  Defaults to $::os_service_default.
#
# [*rpc_zmq_max_port*]
#  (optional) Maximal port number for random ports range.
#  Defaults to $::os_service_default.
#
# [*rpc_zmq_min_port*]
#  (optional) Minimal port number for random ports range.
#  Defaults to $::os_service_default.
#
# [*rpc_zmq_topic_backlog*]
#  (optional) Maximum number of ingress messages to locally buffer per topic.
#  Defaults to $::os_service_default.
#
# [*use_pub_sub*]
#  (optional) Use PUB/SUB pattern for fanout methods.
#  PUB/SUB always uses proxy.
#  Defaults to $::os_service_default.
#
# [*zmq_target_expire*]
#  (optional) Expiration timeout in seconds of a name service
#  record about existing target ( < 0 means no timeout).
#  Defaults to $::os_service_default.
#
define oslo::messaging::zmq(
  $rpc_cast_timeout          = $::os_service_default,
  $rpc_poll_timeout          = $::os_service_default,
  $rpc_zmq_bind_address      = $::os_service_default,
  $rpc_zmq_bind_port_retries = $::os_service_default,
  $rpc_zmq_concurrency       = $::os_service_default,
  $rpc_zmq_contexts          = $::os_service_default,
  $rpc_zmq_host              = $::os_service_default,
  $rpc_zmq_ipc_dir           = $::os_service_default,
  $rpc_zmq_matchmaker        = $::os_service_default,
  $rpc_zmq_max_port          = $::os_service_default,
  $rpc_zmq_min_port          = $::os_service_default,
  $rpc_zmq_topic_backlog     = $::os_service_default,
  $use_pub_sub               = $::os_service_default,
  $zmq_target_expire         = $::os_service_default,
) {

  if ! ( is_service_default($rpc_zmq_concurrency) or $rpc_zmq_concurrency in [ 'eventlet', 'native' ] ) {
    fail('Unsupported type of zmq concurrency is used.')
  }

  $zmq_options = {
    'DEFAULT/rpc_cast_timeout' => { value => $rpc_cast_timeout },
    'DEFAULT/rpc_poll_timeout' => { value => $rpc_poll_timeout },
    'DEFAULT/rpc_zmq_bind_address' => { value => $rpc_zmq_bind_address },
    'DEFAULT/rpc_zmq_bind_port_retries' => { value => $rpc_zmq_bind_port_retries },
    'DEFAULT/rpc_zmq_concurrency' => { value => $rpc_zmq_concurrency },
    'DEFAULT/rpc_zmq_contexts' => { value => $rpc_zmq_contexts },
    'DEFAULT/rpc_zmq_host' => { value => $rpc_zmq_host },
    'DEFAULT/rpc_zmq_ipc_dir' => { value => $rpc_zmq_ipc_dir },
    'DEFAULT/rpc_zmq_matchmaker' => { value => $rpc_zmq_matchmaker },
    'DEFAULT/rpc_zmq_max_port' => { value => $rpc_zmq_max_port },
    'DEFAULT/rpc_zmq_min_port' => { value => $rpc_zmq_min_port },
    'DEFAULT/rpc_zmq_topic_backlog' => { value => $rpc_zmq_topic_backlog },
    'DEFAULT/use_pub_sub' => { value => $use_pub_sub },
    'DEFAULT/zmq_target_expire' => { value => $zmq_target_expire },
    'DEFAULT/rpc_backend' => { value => 'zmq' },
  }

  create_resources($name, $zmq_options)
}