Skip to content

Commit

Permalink
changed kafka::consumer::config from a defined type to a class
Browse files Browse the repository at this point in the history
  • Loading branch information
LionelCons committed Jul 25, 2017
1 parent d1d333e commit 6b509b4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 45 deletions.
17 changes: 4 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,25 +287,17 @@ The directory to install kafka.

Defined type that creates Kafka broker topics.

#### Define: `kafka::consumer::config`

Defined type that configures kafka consumers.

## Reference

### Classes

#### Public Classes

* `kafka`: Guides the basic installation of kafka binaries
* `kafka::broker`: Guides the basic installation of a
kafka broker
* `kafka::consumer`: Guides the basic installation of a
kafka consumer
* `kafka::mirror`: Guides the basic installation of a
kafka mirror
* `kafka::producer`: Guides the basic installation of a
kafka producer
* `kafka::broker`: Guides the basic installation of a kafka broker
* `kafka::consumer`: Guides the basic installation of a kafka consumer
* `kafka::mirror`: Guides the basic installation of a kafka mirror
* `kafka::producer`: Guides the basic installation of a kafka producer

#### Private Classes

Expand All @@ -325,7 +317,6 @@ Defined type that configures kafka consumers.
#### Defined Types

* `kafka::broker::topic` Create kafka broker topics
* `kafka::consumer::config` Create kafka broker topics

## Limitations

Expand Down
4 changes: 2 additions & 2 deletions manifests/consumer/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# This private class is meant to be called from `kafka::consumer`.
# It manages the consumer config files
#
define kafka::consumer::config(
class kafka::consumer::config(
$config = $kafka::consumer::config,
$config_defaults = $kafka::consumer::config_defaults,
$service_name = 'kafka-consumer',
Expand All @@ -22,7 +22,7 @@
default => undef
}

file { "${config_dir}/${name}.properties":
file { "${config_dir}/consumer.properties":
ensure => present,
owner => 'root',
group => 'root',
Expand Down
2 changes: 1 addition & 1 deletion manifests/mirror/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
}
}

::kafka::consumer::config { 'consumer-1':
class { '::kafka::consumer::config':
config => $consumer_config,
config_defaults => $consumer_config_defaults,
service_name => 'kafka-mirror',
Expand Down
29 changes: 0 additions & 29 deletions spec/defines/consumer_config_spec.rb

This file was deleted.

0 comments on commit 6b509b4

Please sign in to comment.