
There were some issues with the init.pp module with puppet-lint which weren't fixed before the repo was imported into gerrit. Now that we have ci these issues were blocking changes. This commit fixes those. Change-Id: I2c619c8c3fa55cabe6325ee48f7a531f097b3cc0
33 lines
754 B
Puppet
33 lines
754 B
Puppet
# == Class: mqtt_statsd
|
|
#
|
|
# Full description of class mqtt_statsd here.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*sample_parameter*]
|
|
# Explanation of what this parameter affects and what it defaults to.
|
|
#
|
|
class mqtt_statsd(
|
|
$source_dir = '/opt/mqtt_statsd',
|
|
$git_source_repo = 'https://git.openstack.org/openstack-infra/mqtt_statsd',
|
|
$git_revision = 'master',
|
|
){
|
|
include ::pip
|
|
|
|
vcsrepo { $source_dir :
|
|
ensure => latest,
|
|
provider => git,
|
|
revision => $git_revision,
|
|
source => $git_source_repo,
|
|
}
|
|
|
|
exec { 'install_mqtt_statsd' :
|
|
command => "pip install -U ${source_dir}",
|
|
path => '/usr/local/bin:/usr/bin:/bin/',
|
|
refreshonly => true,
|
|
subscribe => Vcsrepo[$source_dir],
|
|
require => Class['pip'],
|
|
}
|
|
|
|
}
|