sandip-calsoft 6f337db2d4 added changes for quickstart of analytics services
Change-Id: Iafe99e3baa5e0335e5464b607eba42c4e1e6c3b9
2016-08-11 05:16:36 +00:00

63 lines
1.8 KiB
Puppet

# == Class: midonet::analytics::quickstart
# Check out the midonet::analytics class for a full understanding of
# how to use the midonet::analytics resource
#
# Configures analytics box for NSDB node access
#
# Parameters
# [*config_path*]
# Path for storing the zookeeper configuration file.
# Default: /etc/midonet/midonet.conf
#
# [*zookeeper_hosts*]
# List of IPs and ports of hosts where Zookeeper is installed
#
# [*cassandra_servers*]
# List of IPs and ports of where cassandra is installed
#
# === Authors
#
# Midonet (http://midonet.org)
#
# === Copyright
#
# Copyright (c) 2016 Midokura SARL, All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
class midonet::analytics::quickstart (
$config_path = '/etc/midonet/midonet.conf',
$zookeeper_hosts,
) {
file { 'set_config':
ensure => present,
path => $config_path,
content => template('midonet/analytics/midonet.conf.erb'),
}
file { 'analytics_settings':
ensure => present,
path => '/tmp/analytics_settings.conf',
content => template('midonet/analytics/analytics_settings.erb'),
} ->
file { 'analytics_settings_script':
ensure => present,
path => '/tmp/analytics_settings.sh',
content => template('midonet/analytics/analytics_settings.sh.erb'),
} ->
exec { '/bin/bash /tmp/analytics_settings.sh': }
}