Matthew Treinish 0ff70421b7
Initial Commit
2017-04-04 11:13:16 -04:00

33 lines
753 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 $soure_dir",
path => '/usr/local/bin:/usr/bin:/bin/',
refreshonly => true,
subscribe => Vcsrepo["$source_dir"],
require => Class['pip'],
}
}