db81d776f1
In Icehouse, ceilometer-agent-notification is a new service which splits ceilometer-collector responsibilites. implement blueprint ceilometer-agent-notification Change-Id: Iccc660814991e30b12a884a6e6ffd4f581c768c4 Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
71 lines
1.6 KiB
Puppet
71 lines
1.6 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 metering_secret parameter is mandatory
|
|
class { 'ceilometer':
|
|
metering_secret => 'darksecret'
|
|
}
|
|
|
|
# Configure the ceilometer database
|
|
# Only needed if ceilometer::agent::central 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'],
|
|
# }
|
|
|
|
# Install the ceilometer-api service
|
|
# The keystone_password parameter is mandatory
|
|
class { 'ceilometer::api':
|
|
keystone_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 compute agent
|
|
# default: enable
|
|
class { 'ceilometer::agent::compute':
|
|
}
|
|
|
|
# Install central agent
|
|
class { 'ceilometer::agent::central':
|
|
}
|
|
|
|
# Install alarm notifier
|
|
class { 'ceilometer::alarm::notifier':
|
|
}
|
|
|
|
# Install alarm evaluator
|
|
class { 'ceilometer::alarm::evaluator':
|
|
}
|
|
|
|
# Purge 1 month old meters
|
|
class { 'ceilometer::expirer':
|
|
time_to_live => '2592000'
|
|
}
|
|
|
|
# Install notification agent
|
|
class { 'ceilometer::agent::notification':
|
|
}
|
|
|
|
}
|