Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F11012708
service.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
898 B
Subscribers
None
service.pp
View Options
# Author:: Liam Bennett (mailto:lbennett@opentable.com)
# Copyright:: Copyright (c) 2013 OpenTable Inc
# License:: MIT
# == Class: kafka::producer::service
#
# This private class is meant to be called from `kafka::producer`.
# It manages the kafka-producer service
#
class
kafka
::
producer
::
service
(
$config
=
$kafka::params::producer_service_config
)
{
if
$caller_module_name
!=
$module_name
{
fail
(
"Use of private class ${name} by ${caller_module_name}"
)
}
$producer_service_config
=
deep_merge
(
$config,
$kafka::params::producer_service_config)
file
{
'/etc/init.d/kafka-producer'
:
ensure
=>
present
,
mode
=>
'0755'
,
content
=>
template
(
'kafka/producer.init.erb'
)
}
service
{
'kafka-producer'
:
ensure
=>
running
,
enable
=>
true
,
hasstatus
=>
true
,
hasrestart
=>
true
,
require
=>
File
[
'/etc/init.d/kafka-producer'
]
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 18, 4:29 AM (2 h, 43 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3426261
Attached To
R143 puppet-puppet-kafka
Event Timeline
Log In to Comment