ZhongShengping 7ecb339928 Remove ceilometer api class
The ceilometer api has been retired upstream and the class has been
previously deprecated. Since the package may be going away, we need to
remove the api class.

https://review.openstack.org/#/c/512286/

Change-Id: Idfffa36b17543968c14dfbc60eb1d9ff3286841b
Closes-Bug: #1747841
2018-02-07 14:29:36 +08:00

84 lines
2.2 KiB
Puppet

node default {
Exec {
path => ['/usr/bin', '/bin', '/usr/sbin', '/sbin']
}
# First, install a mysql server
class { '::mysql::server': }
# And create the database
class { '::ceilometer::db::mysql':
password => 'ceilometer',
}
# Add the base ceilometer class & parameters
# This class is required by ceilometer agents & api classes
# The telemetry_secret parameter is mandatory
class { '::ceilometer':
telemetry_secret => 'darksecret'
}
# Configure the ceilometer database
# Only needed if ceilometer::agent::polling or ceilometer::api are declared
class { '::ceilometer::db':
}
# Configure ceilometer database with mongodb
# class { '::ceilometer::db':
# database_connection => 'mongodb://localhost:27017/ceilometer',
# require => Class['mongodb'],
# }
# Configure keystonemiddleware for ceilometer
class { '::ceilometer::keystone::authtoken':
password => 'tralalayouyou'
}
# Set common auth parameters used by all agents (compute/central)
class { '::ceilometer::agent::auth':
auth_url => 'http://localhost:35357/v2.0',
auth_password => 'tralalerotralala'
}
# Install polling agent
# Can be used instead of central, compute or ipmi agent
# class { 'ceilometer::agent::polling':
# central_namespace => true,
# compute_namespace => false,
# ipmi_namespace => false
# }
# class { 'ceilometer::agent::polling':
# central_namespace => false,
# compute_namespace => true,
# ipmi_namespace => false
# }
# class { 'ceilometer::agent::polling':
# central_namespace => false,
# compute_namespace => false,
# ipmi_namespace => true
# }
# As default use central and compute polling namespaces
class { '::ceilometer::agent::polling':
central_namespace => true,
compute_namespace => true,
ipmi_namespace => false,
}
# Install compute agent (deprecated)
# default: enable
# class { 'ceilometer::agent::compute':
# }
# Install central agent (deprecated)
# class { 'ceilometer::agent::central':
# }
# Purge old meters
class { '::ceilometer::expirer': }
# Install notification agent
class { '::ceilometer::agent::notification':
}
}