puppet-ceilometer/examples/site.pp
Takashi Kajinami 0befdba124 Deprecate ceilometer::keystone::authtoken
... because ceilometer-api was deprecated in Ocata release, and now
ceilometer doesn't provide api thus doesn't use authtoken middleware.

Change-Id: Ib9ada5ff0e8b77a3b44728ebd7fcb9632cb3a3e1
2020-04-07 21:48:18 +09:00

70 lines
1.8 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'],
# }
# Set common auth parameters used by all agents (compute/central)
class { 'ceilometer::agent::auth':
auth_url => 'http://localhost:5000/v3',
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,
}
# Purge old meters
class { 'ceilometer::expirer': }
# Install notification agent
class { 'ceilometer::agent::notification':
}
}