Defaults values: cleanup manifest documentation

Cleanup puppet-doc support.
This commit is contained in:
Emilien Macchi 2014-04-22 19:15:50 +02:00
parent 4213f69b97
commit 6692602d72
17 changed files with 195 additions and 194 deletions

View File

@ -21,7 +21,7 @@
# #
# [*listen_ip*] # [*listen_ip*]
# (optional) IP address on which memcached instance should listen # (optional) IP address on which memcached instance should listen
# Default in params. # Defaults to '127.0.0.1'
# #
class cloud::cache ( class cloud::cache (

View File

@ -21,51 +21,51 @@
# #
# [*nova_db_host*] # [*nova_db_host*]
# (optional) Hostname or IP address to connect to nova database # (optional) Hostname or IP address to connect to nova database
# Default value in params # Defaults to '127.0.0.1'
# #
# [*nova_db_user*] # [*nova_db_user*]
# (optional) Username to connect to nova database # (optional) Username to connect to nova database
# Default value in params # Defaults to 'nova'
# #
# [*nova_db_password*] # [*nova_db_password*]
# (optional) Password to connect to nova database # (optional) Password to connect to nova database
# Default value in params # Defaults to 'novapassword'
# #
# [*rabbit_hosts*] # [*rabbit_hosts*]
# (optional) List of RabbitMQ servers. Should be an array. # (optional) List of RabbitMQ servers. Should be an array.
# Default value in params # Defaults to ['127.0.0.1:5672']
# #
# [*rabbit_password*] # [*rabbit_password*]
# (optional) Password to connect to nova queues. # (optional) Password to connect to nova queues.
# Default value in params # Defaults to 'rabbitpassword'
# #
# [*ks_glance_internal_host*] # [*ks_glance_internal_host*]
# (optional) Internal Hostname or IP to connect to Glance API # (optional) Internal Hostname or IP to connect to Glance API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*glance_api_port*] # [*glance_api_port*]
# (optional) TCP port to connect to Glance API # (optional) TCP port to connect to Glance API
# Default value in params # Defaults to '9292'
# #
# [*verbose*] # [*verbose*]
# (optional) Set log output to verbose output # (optional) Set log output to verbose output
# Default value in params # Defaults to true
# #
# [*debug*] # [*debug*]
# (optional) Set log output to debug output # (optional) Set log output to debug output
# Default value in params # Defaults to true
# #
# [*use_syslog*] # [*use_syslog*]
# (optional) Use syslog for logging # (optional) Use syslog for logging
# Defaults value in params # Defaults to true
# #
# [*log_facility*] # [*log_facility*]
# (optional) Syslog facility to receive log lines # (optional) Syslog facility to receive log lines
# Defaults value in params # Defaults to 'LOG_LOCAL0'
# #
# [*memcache_servers*] # [*memcache_servers*]
# (optionnal) Memcached servers used by Keystone. Should be an array. # (optionnal) Memcached servers used by Keystone. Should be an array.
# Default value in params # Defaults to ['127.0.0.1:11211']
# #
class cloud::compute( class cloud::compute(
@ -83,9 +83,9 @@ class cloud::compute(
$neutron_endpoint = '127.0.0.1', $neutron_endpoint = '127.0.0.1',
$neutron_protocol = 'http', $neutron_protocol = 'http',
$neutron_password = 'neutronpassword', $neutron_password = 'neutronpassword',
$neutron_region_name = 'planet42', $neutron_region_name = 'RegionOne',
$memcache_servers = ['127.0.0.1:11211'], $memcache_servers = ['127.0.0.1:11211'],
$availability_zone = 'planet42' $availability_zone = 'RegionOne'
) { ) {
if !defined(Resource['nova_config']) { if !defined(Resource['nova_config']) {

View File

@ -21,20 +21,20 @@
# #
# [*ks_keystone_internal_host*] # [*ks_keystone_internal_host*]
# (optional) Internal address for endpoint. # (optional) Internal address for endpoint.
# Default value in params # Defaults to '127.0.0.1'
# #
# [*secret_key*] # [*secret_key*]
# (optional) Secret key. This is used by Django to provide cryptographic # (optional) Secret key. This is used by Django to provide cryptographic
# signing, and should be set to a unique, unpredictable value. # signing, and should be set to a unique, unpredictable value.
# Default value in params # Defaults to 'secrete'
# #
# [*horizon_port*] # [*horizon_port*]
# (optional) Port used to connect to OpenStack Dashboard # (optional) Port used to connect to OpenStack Dashboard
# Default value in params # Defaults to '80'
# #
# [*api_eth*] # [*api_eth*]
# (optional) Which interface we bind the Horizon server. # (optional) Which interface we bind the Horizon server.
# Default value in params # Defaults to '127.0.0.1'
# #
# [*servername*] # [*servername*]
# (optional) DNS name used to connect to Openstack Dashboard. # (optional) DNS name used to connect to Openstack Dashboard.
@ -47,19 +47,19 @@
# #
# [*keystone_proto*] # [*keystone_proto*]
# (optional) Protocol (http or https) of keystone endpoint. # (optional) Protocol (http or https) of keystone endpoint.
#  Defaults to params. #  Defaults to 'http'
# #
# [*keystone_host*] # [*keystone_host*]
# (optional) IP / Host of keystone endpoint. # (optional) IP / Host of keystone endpoint.
#  Defaults to params. #  Defaults '127.0.0.1'
# #
# [*keystone_port*] # [*keystone_port*]
# (optional) TCP port of keystone endpoint. # (optional) TCP port of keystone endpoint.
#  Defaults to params. #  Defaults to '5000'
# #
# [*debug*] # [*debug*]
# (optional) Enable debug or not. # (optional) Enable debug or not.
#  Defaults to params. #  Defaults to true
# #
# [*listen_ssl*] # [*listen_ssl*]
# (optional) Enable SSL support in Apache. (Defaults to false) # (optional) Enable SSL support in Apache. (Defaults to false)

View File

@ -21,7 +21,7 @@
# #
# [*bind_ip*] # [*bind_ip*]
# (optional) IP address on which mongod instance should listen # (optional) IP address on which mongod instance should listen
# Defaults in params # Defaults to '127.0.0.1'
# #
# [*nojournal*] # [*nojournal*]
# (optional) Disable mongodb internal cache. This is not recommended for # (optional) Disable mongodb internal cache. This is not recommended for
@ -32,23 +32,24 @@
# [*replset_members*] # [*replset_members*]
# (optional) Ceilometer Replica set members hostnames # (optional) Ceilometer Replica set members hostnames
# Should be an array. Example: ['node1', 'node2', node3'] # Should be an array. Example: ['node1', 'node2', node3']
# Default value in params # Defaults to hostname
# #
class cloud::database::nosql( class cloud::database::nosql(
$bind_ip = '127.0.0.1', $bind_ip = '127.0.0.1',
$nojournal = false, $nojournal = false,
$replset_members = ['mgmt001'] $replset_members = $::hostname
) { ) {
# bind_ip should be an array # should be an array
$bind_ip_real = any2array($bind_ip) $array_bind_ip = any2array($bind_ip)
$array_replset_members = any2array($replset_members)
class { 'mongodb::globals': class { 'mongodb::globals':
manage_package_repo => true manage_package_repo => true
}-> }->
class { 'mongodb': class { 'mongodb':
bind_ip => $bind_ip_real, bind_ip => $array_bind_ip,
nojournal => $nojournal, nojournal => $nojournal,
replset => 'ceilometer', replset => 'ceilometer',
} }
@ -62,7 +63,7 @@ class cloud::database::nosql(
} }
mongodb_replset{'ceilometer': mongodb_replset{'ceilometer':
members => $replset_members, members => $array_replset_members,
before => Anchor['mongodb setup done'], before => Anchor['mongodb setup done'],
} }

View File

@ -19,6 +19,9 @@
# #
# [*galera_internal_ips*] # [*galera_internal_ips*]
# Array of internal ip of the galera nodes. # Array of internal ip of the galera nodes.
# Defaults to ['127.0.0.1']
#
class cloud::database::sql ( class cloud::database::sql (
$api_eth = '127.0.0.1', $api_eth = '127.0.0.1',
$service_provider = 'sysv', $service_provider = 'sysv',
@ -65,7 +68,6 @@ class cloud::database::sql (
$mysql_service_name = 'mysql' $mysql_service_name = 'mysql'
} }
# TODO(Gonéri): OS/values detection should be moved in a params.pp
case $::osfamily { case $::osfamily {
'RedHat': { 'RedHat': {
class { 'mysql': class { 'mysql':

View File

@ -21,303 +21,294 @@
# #
# [*identity_roles_addons*] # [*identity_roles_addons*]
# (optional) Extra keystone roles to create # (optional) Extra keystone roles to create
# Default value in params # Defaults to ['SwiftOperator', 'ResellerAdmin']
# #
# [*keystone_db_host*] # [*keystone_db_host*]
# (optional) Hostname or IP address to connect to keystone database # (optional) Hostname or IP address to connect to keystone database
# Default value in params # Defaults to '127.0.0.1'
# #
# [*keystone_db_user*] # [*keystone_db_user*]
# (optional) Username to connect to keystone database # (optional) Username to connect to keystone database
# Default value in params # Defaults to 'keystone'
# #
# [*keystone_db_password*] # [*keystone_db_password*]
# (optional) Password to connect to keystone database # (optional) Password to connect to keystone database
# Default value in params # Defaults to 'keystonepassword'
# #
# [*ks_admin_email*] # [*ks_admin_email*]
# (optional) Email address of admin user in Keystone # (optional) Email address of admin user in Keystone
# Default value in params # Defaults to 'no-reply@keystone.openstack'
# #
# [*ks_admin_password*] # [*ks_admin_password*]
# (optional) Password of admin user in Keystone # (optional) Password of admin user in Keystone
# Default value in params # Defaults to 'adminpassword'
# #
# [*ks_admin_tenant*] # [*ks_admin_tenant*]
# (optional) Admin tenant name in Keystone # (optional) Admin tenant name in Keystone
# Default value in params # Defaults to 'admin'
# #
# [*ks_admin_token*] # [*ks_admin_token*]
# (optional) Admin token used by Keystone. # (required) Admin token used by Keystone.
# Default value in params
# #
# [*ks_glance_internal_host*] # [*ks_glance_internal_host*]
# (optional) Internal Hostname or IP to connect to Glance API # (optional) Internal Hostname or IP to connect to Glance API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_glance_admin_host*] # [*ks_glance_admin_host*]
# (optional) Admin Hostname or IP to connect to Glance API # (optional) Admin Hostname or IP to connect to Glance API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_glance_public_host*] # [*ks_glance_public_host*]
# (optional) Public Hostname or IP to connect to Glance API # (optional) Public Hostname or IP to connect to Glance API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_ceilometer_internal_host*] # [*ks_ceilometer_internal_host*]
# (optional) Internal Hostname or IP to connect to Ceilometer API # (optional) Internal Hostname or IP to connect to Ceilometer API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_ceilometer_admin_host*] # [*ks_ceilometer_admin_host*]
# (optional) Admin Hostname or IP to connect to Ceilometer API # (optional) Admin Hostname or IP to connect to Ceilometer API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_ceilometer_public_host*] # [*ks_ceilometer_public_host*]
# (optional) Public Hostname or IP to connect to Ceilometer API # (optional) Public Hostname or IP to connect to Ceilometer API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_keystone_internal_host*] # [*ks_keystone_internal_host*]
# (optional) Internal Hostname or IP to connect to Keystone API # (optional) Internal Hostname or IP to connect to Keystone API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_keystone_admin_host*] # [*ks_keystone_admin_host*]
# (optional) Admin Hostname or IP to connect to Keystone API # (optional) Admin Hostname or IP to connect to Keystone API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_keystone_public_host*] # [*ks_keystone_public_host*]
# (optional) Public Hostname or IP to connect to Keystone API # (optional) Public Hostname or IP to connect to Keystone API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_nova_internal_host*] # [*ks_nova_internal_host*]
# (optional) Internal Hostname or IP to connect to Nova API # (optional) Internal Hostname or IP to connect to Nova API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_nova_admin_host*] # [*ks_nova_admin_host*]
# (optional) Admin Hostname or IP to connect to Nova API # (optional) Admin Hostname or IP to connect to Nova API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_nova_public_host*] # [*ks_nova_public_host*]
# (optional) Public Hostname or IP to connect to Nova API # (optional) Public Hostname or IP to connect to Nova API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_cinder_internal_host*] # [*ks_cinder_internal_host*]
# (optional) Internal Hostname or IP to connect to Cinder API # (optional) Internal Hostname or IP to connect to Cinder API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_cinder_admin_host*] # [*ks_cinder_admin_host*]
# (optional) Admin Hostname or IP to connect to Cinder API # (optional) Admin Hostname or IP to connect to Cinder API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_cinder_public_host*] # [*ks_cinder_public_host*]
# (optional) Public Hostname or IP to connect to Cinder API # (optional) Public Hostname or IP to connect to Cinder API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_neutron_internal_host*] # [*ks_neutron_internal_host*]
# (optional) Internal Hostname or IP to connect to Neutron API # (optional) Internal Hostname or IP to connect to Neutron API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_neutron_admin_host*] # [*ks_neutron_admin_host*]
# (optional) Admin Hostname or IP to connect to Neutron API # (optional) Admin Hostname or IP to connect to Neutron API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_neutron_public_host*] # [*ks_neutron_public_host*]
# (optional) Public Hostname or IP to connect to Neutron API # (optional) Public Hostname or IP to connect to Neutron API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_heat_internal_host*] # [*ks_heat_internal_host*]
# (optional) Internal Hostname or IP to connect to Heat API # (optional) Internal Hostname or IP to connect to Heat API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_heat_admin_host*] # [*ks_heat_admin_host*]
# (optional) Admin Hostname or IP to connect to Heat API # (optional) Admin Hostname or IP to connect to Heat API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_heat_public_host*] # [*ks_heat_public_host*]
# (optional) Public Hostname or IP to connect to Heat API # (optional) Public Hostname or IP to connect to Heat API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_swift_internal_host*] # [*ks_swift_internal_host*]
# (optional) Internal Hostname or IP to connect to Swift API # (optional) Internal Hostname or IP to connect to Swift API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_swift_admin_host*] # [*ks_swift_admin_host*]
# (optional) Admin Hostname or IP to connect to Swift API # (optional) Admin Hostname or IP to connect to Swift API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_swift_public_host*] # [*ks_swift_public_host*]
# (optional) Public Hostname or IP to connect to Swift API # (optional) Public Hostname or IP to connect to Swift API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_ceilometer_password*] # [*ks_ceilometer_password*]
# (optional) Password used by Ceilometer to connect to Keystone API # (optional) Password used by Ceilometer to connect to Keystone API
# Default value in params # Defaults to 'ceilometerpassword'
# #
# [*ks_swift_password*] # [*ks_swift_password*]
# (optional) Password used by Swift to connect to Keystone API # (optional) Password used by Swift to connect to Keystone API
# Default value in params # Defaults to 'swiftpassword'
# #
# [*ks_nova_password*] # [*ks_nova_password*]
# (optional) Password used by Nova to connect to Keystone API # (optional) Password used by Nova to connect to Keystone API
# Default value in params # Defaults to 'novapassword'
# #
# [*ks_neutron_password*] # [*ks_neutron_password*]
# (optional) Password used by Neutron to connect to Keystone API # (optional) Password used by Neutron to connect to Keystone API
# Default value in params # Defaults to 'neutronpassword'
# #
# [*ks_heat_password*] # [*ks_heat_password*]
# (optional) Password used by Heat to connect to Keystone API # (optional) Password used by Heat to connect to Keystone API
# Default value in params # Defaults to 'heatpassword'
# #
# [*ks_glance_password*] # [*ks_glance_password*]
# (optional) Password used by Glance to connect to Keystone API # (optional) Password used by Glance to connect to Keystone API
# Default value in params # Defaults to 'glancepassword'
# #
# [*ks_cinder_password*] # [*ks_cinder_password*]
# (optional) Password used by Cinder to connect to Keystone API # (optional) Password used by Cinder to connect to Keystone API
# Default value in params # Defaults to 'cinderpassword'
# #
# [*ks_swift_public_proto*] # [*ks_swift_public_proto*]
# (optional) Protocol used to connect to API. Could be 'http' or 'https'. # (optional) Protocol used to connect to API. Could be 'http' or 'https'.
# Default value in params # Defaults to 'http'
# #
# [*ks_ceilometer_public_proto*] # [*ks_ceilometer_public_proto*]
# (optional) Protocol used to connect to API. Could be 'http' or 'https'. # (optional) Protocol used to connect to API. Could be 'http' or 'https'.
# Default value in params # Defaults to 'http'
# #
# [*ks_heat_public_proto*] # [*ks_heat_public_proto*]
# (optional) Protocol used to connect to API. Could be 'http' or 'https'. # (optional) Protocol used to connect to API. Could be 'http' or 'https'.
# Default value in params # Defaults to 'http'
# #
# [*ks_nova_public_proto*] # [*ks_nova_public_proto*]
# (optional) Protocol used to connect to API. Could be 'http' or 'https'. # (optional) Protocol used to connect to API. Could be 'http' or 'https'.
# Default value in params # Defaults to 'http'
# #
# [*ks_neutron_public_proto*] # [*ks_neutron_public_proto*]
# (optional) Protocol used to connect to API. Could be 'http' or 'https'. # (optional) Protocol used to connect to API. Could be 'http' or 'https'.
# Default value in params # Defaults to 'http'
# #
# [*ks_glance_public_proto*] # [*ks_glance_public_proto*]
# (optional) Protocol used to connect to API. Could be 'http' or 'https'. # (optional) Protocol used to connect to API. Could be 'http' or 'https'.
# Default value in params # Defaults to 'http'
# #
# [*ks_cinder_public_proto*] # [*ks_cinder_public_proto*]
# (optional) Protocol used to connect to API. Could be 'http' or 'https'. # (optional) Protocol used to connect to API. Could be 'http' or 'https'.
# Default value in params # Defaults to 'http'
# #
# [*ks_ceilometer_public_port*] # [*ks_ceilometer_public_port*]
# (optional) TCP port to connect to Ceilometer API from public network # (optional) TCP port to connect to Ceilometer API from public network
# Default value in params # Defaults to '8777'
# #
# [*ks_ceilometer_admin_port*] # [*ks_ceilometer_admin_port*]
# (optional) TCP port to connect to Ceilometer API from admin network # (optional) TCP port to connect to Ceilometer API from admin network
# Default value in params # Defaults to '8777'
# #
# [*ks_ceilometer_internal_port*] # [*ks_ceilometer_internal_port*]
# (optional) TCP port to connect to Ceilometer API from internal network # (optional) TCP port to connect to Ceilometer API from internal network
# Default value in params # Defaults to '8777'
# #
# [*ks_keystone_internal_port*] # [*ks_keystone_internal_port*]
# (optional) TCP port to connect to Keystone API from internal network # (optional) TCP port to connect to Keystone API from internal network
# Default value in params # Defaults to '5000'
# #
# [*ks_keystone_public_port*] # [*ks_keystone_public_port*]
# (optional) TCP port to connect to Keystone API from public network # (optional) TCP port to connect to Keystone API from public network
# Default value in params # Defaults to '5000'
# #
# [*ks_keystone_admin_port*] # [*ks_keystone_admin_port*]
# (optional) TCP port to connect to Keystone API from admin network # (optional) TCP port to connect to Keystone API from admin network
# Default value in params # Defaults to '35357'
# #
# [*ks_swift_public_port*] # [*ks_swift_public_port*]
# (optional) TCP port to connect to Swift API from public network # (optional) TCP port to connect to Swift API from public network
# Default value in params # Defaults to '8080'
# #
# [*ks_nova_internal_port*] # [*ks_nova_internal_port*]
# (optional) TCP port to connect to Nova API from internal network # (optional) TCP port to connect to Nova API from internal network
# Default value in params # Defaults to '8774'
# #
# [*ks_nova_public_port*] # [*ks_nova_public_port*]
# (optional) TCP port to connect to Nova API from public network # (optional) TCP port to connect to Nova API from public network
# Default value in params # Defaults to '8774'
# #
# [*ks_ec2_public_port*] # [*ks_ec2_public_port*]
# (optional) TCP port to connect to EC2 API from public network # (optional) TCP port to connect to EC2 API from public network
# Default value in params # Defaults to '8773'
# #
# [*ks_nova_admin_port*] # [*ks_nova_admin_port*]
# (optional) TCP port to connect to Nova API from admin network # (optional) TCP port to connect to Nova API from admin network
# Default value in params # Defaults to '8774'
# #
# [*ks_cinder_internal_port*] # [*ks_cinder_internal_port*]
# (optional) TCP port to connect to Cinder API from internal network # (optional) TCP port to connect to Cinder API from internal network
# Default value in params # Defaults to '8776'
# #
# [*ks_cinder_public_port*] # [*ks_cinder_public_port*]
# (optional) TCP port to connect to Cinder API from public network # (optional) TCP port to connect to Cinder API from public network
# Default value in params # Defaults to '8776'
# #
# [*ks_cinder_admin_port*] # [*ks_cinder_admin_port*]
# (optional) TCP port to connect to Cinder API from admin network # (optional) TCP port to connect to Cinder API from admin network
# Default value in params # Defaults to '8776'
# #
# [*ks_neutron_internal_port*] # [*ks_neutron_internal_port*]
# (optional) TCP port to connect to Neutron API from internal network # (optional) TCP port to connect to Neutron API from internal network
# Default value in params # Defaults to '9696'
# #
# [*ks_neutron_public_port*] # [*ks_neutron_public_port*]
# (optional) TCP port to connect to Neutron API from public network # (optional) TCP port to connect to Neutron API from public network
# Default value in params # Defaults to '9696'
# #
# [*ks_neutron_admin_port*] # [*ks_neutron_admin_port*]
# (optional) TCP port to connect to Neutron API from admin network # (optional) TCP port to connect to Neutron API from admin network
# Default value in params # Defaults to '9696'
#
# [*ks_heat_internal_port*]
# (optional) TCP port to connect to Heat API from internal network
# Default value in params
# #
# [*ks_heat_public_port*] # [*ks_heat_public_port*]
# (optional) TCP port to connect to Heat API from public network # (optional) TCP port to connect to Heat API from public network
# Default value in params # Defaults to '8000'
#
# [*ks_heat_admin_port*]
# (optional) TCP port to connect to Heat API from admin network
# Default value in params
# #
# [*ks_glance_api_internal_port*] # [*ks_glance_api_internal_port*]
# (optional) TCP port to connect to Glance API from internal network # (optional) TCP port to connect to Glance API from internal network
# Default value in params # Defaults to '9292'
# #
# [*ks_glance_api_public_port*] # [*ks_glance_api_public_port*]
# (optional) TCP port to connect to Glance API from public network # (optional) TCP port to connect to Glance API from public network
# Default value in params # Defaults to '9292'
# #
# [*ks_glance_api_admin_port*] # [*ks_glance_api_admin_port*]
# (optional) TCP port to connect to Glance API from admin network # (optional) TCP port to connect to Glance API from admin network
# Default value in params # Defaults to '9292'
# #
# [*api_eth*] # [*api_eth*]
# (optional) Which interface we bind the Keystone server. # (optional) Which interface we bind the Keystone server.
# Default value in params # Defaults to '127.0.0.1'
# #
# [*region*] # [*region*]
# (optional) OpenStack Region Name # (optional) OpenStack Region Name
# Default value in params # Defaults to 'RegionOne'
# #
# [*verbose*] # [*verbose*]
# (optional) Set log output to verbose output # (optional) Set log output to verbose output
# Default value in params # Defaults to true
# #
# [*debug*] # [*debug*]
# (optional) Set log output to debug output # (optional) Set log output to debug output
# Default value in params # Defaults to true
# #
# [*use_syslog*] # [*use_syslog*]
# (optional) Use syslog for logging # (optional) Use syslog for logging
# Defaults value in params # Defaults to true
# #
# [*log_facility*] # [*log_facility*]
# (optional) Syslog facility to receive log lines # (optional) Syslog facility to receive log lines
# Defaults value in params # Defaults to 'LOG_LOCAL0'
# #
# [*token_driver*] # [*token_driver*]
# (optional) Driver to store tokens # (optional) Driver to store tokens
@ -325,8 +316,9 @@
# #
# [*token_expiration*] # [*token_expiration*]
# (optional) Amount of time a token should remain valid (in seconds) # (optional) Amount of time a token should remain valid (in seconds)
# Defaults value in params # Defaults to '3600' (1 hour)
# #
class cloud::identity ( class cloud::identity (
$swift_enabled = true, $swift_enabled = true,
$identity_roles_addons = ['SwiftOperator', 'ResellerAdmin'], $identity_roles_addons = ['SwiftOperator', 'ResellerAdmin'],
@ -391,7 +383,7 @@ class cloud::identity (
$ks_swift_public_port = 8080, $ks_swift_public_port = 8080,
$ks_swift_public_proto = 'http', $ks_swift_public_proto = 'http',
$api_eth = '127.0.0.1', $api_eth = '127.0.0.1',
$region = 'planet42', $region = 'RegionOne',
$verbose = true, $verbose = true,
$debug = true, $debug = true,
$log_facility = 'LOG_LOCAL0', $log_facility = 'LOG_LOCAL0',

View File

@ -21,52 +21,53 @@
# #
# [*glance_db_host*] # [*glance_db_host*]
# (optional) Hostname or IP address to connect to glance database # (optional) Hostname or IP address to connect to glance database
# Default value in params # Defaults to '127.0.0.1'
# #
# [*glance_db_user*] # [*glance_db_user*]
# (optional) Username to connect to glance database # (optional) Username to connect to glance database
# Default value in params # Defaults to 'glance'
# #
# [*glance_db_password*] # [*glance_db_password*]
# (optional) Password to connect to glance database # (optional) Password to connect to glance database
# Default value in params # Defaults to 'glancepassword'
# #
# [*ks_keystone_internal_host*] # [*ks_keystone_internal_host*]
# (optional) Internal Hostname or IP to connect to Keystone API # (optional) Internal Hostname or IP to connect to Keystone API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_glance_api_internal_port*] # [*ks_glance_api_internal_port*]
# (optional) TCP port to connect to Glance API from internal network # (optional) TCP port to connect to Glance API from internal network
# Default value in params # Defaults to '9292'
# #
# [*ks_glance_registry_internal_port*] # [*ks_glance_registry_internal_port*]
# (optional) TCP port to connect to Glance Registry from internal network # (optional) TCP port to connect to Glance Registry from internal network
# Default value in params # Defaults to '9191'
# #
# [*ks_glance_password*] # [*ks_glance_password*]
# (optional) Password used by Glance to connect to Keystone API # (optional) Password used by Glance to connect to Keystone API
# Default value in params # Defaults to 'glancepassword'
# #
# [*rabbit_hosts*] # [*rabbit_hosts*]
# (optional) List of RabbitMQ servers. Should be an array. # (optional) List of RabbitMQ servers. Should be an array.
# Default value in params # Defaults to '127.0.0.1'
# #
# [*rabbit_password*] # [*rabbit_password*]
# (optional) Password to connect to nova queues. # (optional) Password to connect to nova queues.
# Default value in params # Defaults to 'rabbitpassword'
# #
# [*api_eth*] # [*api_eth*]
# (optional) Which interface we bind the Glance API server. # (optional) Which interface we bind the Glance API server.
# Default value in params # Defaults to '127.0.0.1'
# #
# [*use_syslog*] # [*use_syslog*]
# (optional) Use syslog for logging # (optional) Use syslog for logging
# Defaults value in params # Defaults to true
# #
# [*log_facility*] # [*log_facility*]
# (optional) Syslog facility to receive log lines # (optional) Syslog facility to receive log lines
# Defaults value in params # Defaults to 'LOG_LOCAL0'
# #
class cloud::image( class cloud::image(
$glance_db_host = '127.0.0.1', $glance_db_host = '127.0.0.1',
$glance_db_user = 'glance', $glance_db_user = 'glance',
@ -79,9 +80,9 @@ class cloud::image(
$rabbit_password = 'rabbitpassword', $rabbit_password = 'rabbitpassword',
$rabbit_host = '127.0.0.1', $rabbit_host = '127.0.0.1',
$api_eth = '127.0.0.1', $api_eth = '127.0.0.1',
$openstack_vip = '127.0.0.2', $openstack_vip = undef,
$glance_rbd_pool = 'images', $glance_rbd_pool = 'images',
$glance_rbd_user = 'glance', $glance_rbd_user = 'glance',
$verbose = true, $verbose = true,
$debug = true, $debug = true,
$log_facility = 'LOG_LOCAL0', $log_facility = 'LOG_LOCAL0',

View File

@ -19,7 +19,7 @@
# #
class cloud( class cloud(
$rhn_registration = $os_params::rhn_registration, $rhn_registration = undef,
) { ) {
if ! ($::osfamily in [ 'RedHat', 'Debian' ]) { if ! ($::osfamily in [ 'RedHat', 'Debian' ]) {

View File

@ -21,11 +21,11 @@
# #
# [*rabbit_names*] # [*rabbit_names*]
# (optional) List of RabbitMQ servers. Should be an array. # (optional) List of RabbitMQ servers. Should be an array.
# Default value in params # Defaults to $::hostname
# #
# [*rabbit_password*] # [*rabbit_password*]
# (optional) Password to connect to OpenStack queues. # (optional) Password to connect to OpenStack queues.
# Default value in params # Defaults to 'rabbitpassword'
# #
# [*cluster_node_type*] # [*cluster_node_type*]
# (optionnal) Store the queues on the disc or in the RAM. # (optionnal) Store the queues on the disc or in the RAM.
@ -34,10 +34,13 @@
class cloud::messaging( class cloud::messaging(
$cluster_node_type = 'disc', $cluster_node_type = 'disc',
$rabbit_names = ['mgmt001'], $rabbit_names = $::hostname,
$rabbit_password = 'rabbitpassword' $rabbit_password = 'rabbitpassword'
){ ){
# we ensure having an array
$array_rabbit_names = any2array($rabbit_names)
# Packaging issue: https://bugzilla.redhat.com/show_bug.cgi?id=1033305 # Packaging issue: https://bugzilla.redhat.com/show_bug.cgi?id=1033305
if $::osfamily == 'RedHat' { if $::osfamily == 'RedHat' {
file {'/usr/sbin/rabbitmq-plugins': file {'/usr/sbin/rabbitmq-plugins':
@ -54,7 +57,7 @@ class cloud::messaging(
class { 'rabbitmq': class { 'rabbitmq':
delete_guest_user => true, delete_guest_user => true,
config_cluster => true, config_cluster => true,
cluster_nodes => $rabbit_names, cluster_nodes => $array_rabbit_names,
wipe_db_on_cookie_change => true, wipe_db_on_cookie_change => true,
cluster_node_type => $cluster_node_type cluster_node_type => $cluster_node_type
} }

View File

@ -21,43 +21,44 @@
# #
# [*rabbit_hosts*] # [*rabbit_hosts*]
# (optional) List of RabbitMQ servers. Should be an array. # (optional) List of RabbitMQ servers. Should be an array.
# Default value in params # Defaults to ['127.0.0.1:5672']
# #
# [*rabbit_password*] # [*rabbit_password*]
# (optional) Password to connect to nova queues. # (optional) Password to connect to nova queues.
# Default value in params # Defaults to 'rabbitpassword'
# #
# [*verbose*] # [*verbose*]
# (optional) Set log output to verbose output # (optional) Set log output to verbose output
# Default value in params # Defaults to true
# #
# [*debug*] # [*debug*]
# (optional) Set log output to debug output # (optional) Set log output to debug output
# Default value in params # Defaults to true
# #
# [*tunnel_eth*] # [*tunnel_eth*]
# (optional) Which interface we connect to create overlay tunnels. # (optional) Which interface we connect to create overlay tunnels.
# Default value in params # Defaults to '127.0.0.1'
# #
# [*provider_vlan_ranges*] # [*provider_vlan_ranges*]
# (optionnal) VLAN range for provider networks # (optionnal) VLAN range for provider networks
# Default value in params # Defaults to ['physnet1:1000:2999']
# #
# [*provider_bridge_mappings*] # [*provider_bridge_mappings*]
# (optionnal) Bridge mapping for provider networks # (optionnal) Bridge mapping for provider networks
# Default value in params # Defaults to ['physnet1:br-eth1']
# #
# [*use_syslog*] # [*use_syslog*]
# (optional) Use syslog for logging # (optional) Use syslog for logging
# Defaults value in params # Defaults to true
# #
# [*log_facility*] # [*log_facility*]
# (optional) Syslog facility to receive log lines # (optional) Syslog facility to receive log lines
# Defaults value in params # Defaults to 'LOG_LOCAL0'
# #
# [*dhcp_lease_duration*] # [*dhcp_lease_duration*]
# (optionnal) DHCP Lease duration (in seconds) # (optionnal) DHCP Lease duration (in seconds)
# Defauls to '120' # Defauls to '120'
#
class cloud::network( class cloud::network(
$verbose = true, $verbose = true,

View File

@ -26,7 +26,7 @@ class cloud::network::metadata(
$ks_keystone_admin_proto = 'http', $ks_keystone_admin_proto = 'http',
$ks_keystone_admin_port = 35357, $ks_keystone_admin_port = 35357,
$ks_keystone_admin_host = '127.0.0.1', $ks_keystone_admin_host = '127.0.0.1',
$auth_region = 'planet42', $auth_region = 'RegionOne',
) { ) {
include 'cloud::network' include 'cloud::network'

View File

@ -20,8 +20,7 @@
# === Parameters: # === Parameters:
# #
# [*swift_hash_suffix*] # [*swift_hash_suffix*]
# (optional) String of text to be used as a salt when hashing to determine mappings in the ring. # (required) String of text to be used as a salt when hashing to determine mappings in the ring.
# Default value in params
# #
class cloud::object( class cloud::object(

View File

@ -21,76 +21,77 @@
# #
# [*ks_keystone_internal_host*] # [*ks_keystone_internal_host*]
# (optional) Internal Hostname or IP to connect to Keystone API # (optional) Internal Hostname or IP to connect to Keystone API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_keystone_admin_host*] # [*ks_keystone_admin_host*]
# (optional) Admin Hostname or IP to connect to Keystone API # (optional) Admin Hostname or IP to connect to Keystone API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_keystone_internal_port*] # [*ks_keystone_internal_port*]
# (optional) TCP port to connect to Keystone API from internal network # (optional) TCP port to connect to Keystone API from internal network
# Default value in params # Defaults to '5000'
# #
# [*ks_keystone_admin_port*] # [*ks_keystone_admin_port*]
# (optional) TCP port to connect to Keystone API from admin network # (optional) TCP port to connect to Keystone API from admin network
# Default value in params # Defaults to '35357'
# #
# [*ks_keystone_internal_proto*] # [*ks_keystone_internal_proto*]
# (optional) Protocol used to connect to API. Could be 'http' or 'https'. # (optional) Protocol used to connect to API. Could be 'http' or 'https'.
# Default value in params # Defaults to 'http'
# #
# [*ks_keystone_admin_proto*] # [*ks_keystone_admin_proto*]
# (optional) Protocol used to connect to API. Could be 'http' or 'https'. # (optional) Protocol used to connect to API. Could be 'http' or 'https'.
# Default value in params # Defaults to 'http'
# #
# [*ks_heat_public_host*] # [*ks_heat_public_host*]
# (optional) Public Hostname or IP to connect to Heat API # (optional) Public Hostname or IP to connect to Heat API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_heat_public_proto*] # [*ks_heat_public_proto*]
# (optional) Protocol used to connect to API. Could be 'http' or 'https'. # (optional) Protocol used to connect to API. Could be 'http' or 'https'.
# Default value in params # Defaults to 'http'
# #
# [*ks_heat_password*] # [*ks_heat_password*]
# (optional) Password used by Heat to connect to Keystone API # (optional) Password used by Heat to connect to Keystone API
# Default value in params # Defaults to 'heatpassword'
# #
# [*heat_db_host*] # [*heat_db_host*]
# (optional) Hostname or IP address to connect to heat database # (optional) Hostname or IP address to connect to heat database
# Default value in params # Defaults to '127.0.0.1'
# #
# [*heat_db_user*] # [*heat_db_user*]
# (optional) Username to connect to heat database # (optional) Username to connect to heat database
# Default value in params # Defaults to 'heat'
# #
# [*heat_db_password*] # [*heat_db_password*]
# (optional) Password to connect to heat database # (optional) Password to connect to heat database
# Default value in params # Defaults to 'heatpassword'
# #
# [*rabbit_hosts*] # [*rabbit_hosts*]
# (optional) List of RabbitMQ servers. Should be an array. # (optional) List of RabbitMQ servers. Should be an array.
# Default value in params # Defaults to ['127.0.0.1:5672']
# #
# [*rabbit_password*] # [*rabbit_password*]
# (optional) Password to connect to heat queues. # (optional) Password to connect to heat queues.
# Default value in params # Defaults to 'rabbitpassword'
# #
# [*verbose*] # [*verbose*]
# (optional) Set log output to verbose output # (optional) Set log output to verbose output
# Default value in params # Defaults to true
# #
# [*debug*] # [*debug*]
# (optional) Set log output to debug output # (optional) Set log output to debug output
# Default value in params # Defaults to true
# #
# [*use_syslog*] # [*use_syslog*]
# (optional) Use syslog for logging # (optional) Use syslog for logging
# Defaults value in params # Defaults to true
# #
# [*log_facility*] # [*log_facility*]
# (optional) Syslog facility to receive log lines # (optional) Syslog facility to receive log lines
# Defaults value in params # Defaults to 'LOG_LOCAL0'
# #
class cloud::orchestration( class cloud::orchestration(
$ks_keystone_internal_host = '127.0.0.1', $ks_keystone_internal_host = '127.0.0.1',
$ks_keystone_internal_port = '5000', $ks_keystone_internal_port = '5000',

View File

@ -21,11 +21,11 @@
# #
# [*cluster_ip*] # [*cluster_ip*]
# (optional) Interface used by Corosync to send multicast traffic # (optional) Interface used by Corosync to send multicast traffic
# Default to params. # Defaults to '127.0.0.1'
# #
# [*multicast_address*] # [*multicast_address*]
# (optionnal) IP address used to send multicast traffic # (optionnal) IP address used to send multicast traffic
# Default to '239.1.1.2'. # Defaults to '239.1.1.2'
# #
class cloud::spof( class cloud::spof(

View File

@ -22,51 +22,51 @@
# #
# [*ceilometer_secret*] # [*ceilometer_secret*]
# Secret key for signing messages. # Secret key for signing messages.
# Default value in params # Defaults to 'ceilometersecret'
# #
# [*rabbit_hosts*] # [*rabbit_hosts*]
# (optional) List of RabbitMQ servers. Should be an array. # (optional) List of RabbitMQ servers. Should be an array.
# Default value in params # Defaults to ['127.0.0.1:5672']
# #
# [*rabbit_password*] # [*rabbit_password*]
# (optional) Password to connect to nova queues. # (optional) Password to connect to nova queues.
# Default value in params # Defaults to 'rabbitpassword'
# #
# [*ks_keystone_internal_host*] # [*ks_keystone_internal_host*]
# (optional) Internal Hostname or IP to connect to Keystone API # (optional) Internal Hostname or IP to connect to Keystone API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_keystone_admin_host*] # [*ks_keystone_admin_host*]
# (optional) Admin Hostname or IP to connect to Keystone API # (optional) Admin Hostname or IP to connect to Keystone API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_keystone_public_host*] # [*ks_keystone_public_host*]
# (optional) Public Hostname or IP to connect to Keystone API # (optional) Public Hostname or IP to connect to Keystone API
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_ceilometer_password*] # [*ks_ceilometer_password*]
# (optional) Password used by Ceilometer to connect to Keystone API # (optional) Password used by Ceilometer to connect to Keystone API
# Default value in params # Defaults to 'ceilometerpassword'
# #
# [*verbose*] # [*verbose*]
# (optional) Set log output to verbose output # (optional) Set log output to verbose output
# Default value in params # Defaults to true
# #
# [*debug*] # [*debug*]
# (optional) Set log output to debug output # (optional) Set log output to debug output
# Default value in params # Defaults to true
# #
# [*use_syslog*] # [*use_syslog*]
# (optional) Use syslog for logging # (optional) Use syslog for logging
# Defaults value in params # Defaults to true
# #
# [*log_facility*] # [*log_facility*]
# (optional) Syslog facility to receive log lines # (optional) Syslog facility to receive log lines
# Defaults value in params # Defaults to 'LOG_LOCAL0'
# #
# [*region*] # [*region*]
# (optional) the keystone region of this node # (optional) the keystone region of this node
# Defaults value in params # Defaults to 'RegionOne'
# #
class cloud::telemetry( class cloud::telemetry(
@ -77,7 +77,7 @@ class cloud::telemetry(
$ks_keystone_internal_port = '5000', $ks_keystone_internal_port = '5000',
$ks_keystone_internal_proto = 'http', $ks_keystone_internal_proto = 'http',
$ks_ceilometer_password = 'ceilometerpassword', $ks_ceilometer_password = 'ceilometerpassword',
$region = 'planet42', $region = 'RegionOne',
$verbose = true, $verbose = true,
$debug = true, $debug = true,
$log_facility = 'LOG_LOCAL0', $log_facility = 'LOG_LOCAL0',

View File

@ -22,48 +22,49 @@
# #
# [*cinder_db_host*] # [*cinder_db_host*]
# (optional) Cinder database host # (optional) Cinder database host
# Default value in params # Defaults to '127.0.0.1'
# #
# [*cinder_db_user*] # [*cinder_db_user*]
# (optional) Cinder database user # (optional) Cinder database user
# Default value in params # Defaults to 'cinder'
# #
# [*cinder_db_password*] # [*cinder_db_password*]
# (optional) Cinder database password # (optional) Cinder database password
# Default value in params # Defaults to 'cinderpassword'
# #
# [*rabbit_hosts*] # [*rabbit_hosts*]
# (optional) List of RabbitMQ servers. Should be an array. # (optional) List of RabbitMQ servers. Should be an array.
# Default value in params # Defaults to ['127.0.0.1:5672']
# #
# [*rabbit_password*] # [*rabbit_password*]
# (optional) Password to connect to cinder queues. # (optional) Password to connect to cinder queues.
# Default value in params # Defaults to 'rabbitpassword'
# #
# [*ks_keystone_internal_host*] # [*ks_keystone_internal_host*]
# (optional) Keystone host (authentication) # (optional) Keystone host (authentication)
# Default value in params # Defaults to '127.0.0.1'
# #
# [*ks_cinder_password*] # [*ks_cinder_password*]
# (optional) Keystone password for cinder user. # (optional) Keystone password for cinder user.
# Default value in params # Defaults to 'cinderpassword'
# #
# [*verbose*] # [*verbose*]
# (optional) Set log output to verbose output # (optional) Set log output to verbose output
# Default value in params # Defaults to true
# #
# [*debug*] # [*debug*]
# (optional) Set log output to debug output # (optional) Set log output to debug output
# Default value in params # Defaults to true
# #
# [*use_syslog*] # [*use_syslog*]
# (optional) Use syslog for logging # (optional) Use syslog for logging
# Defaults value in params # Defaults to true
# #
# [*log_facility*] # [*log_facility*]
# (optional) Syslog facility to receive log lines # (optional) Syslog facility to receive log lines
# Defaults value in params # Defaults to 'LOG_LOCAL0'
# #
class cloud::volume( class cloud::volume(
$cinder_db_host = '127.0.0.1', $cinder_db_host = '127.0.0.1',
$cinder_db_user = 'cinder', $cinder_db_user = 'cinder',

View File

@ -27,8 +27,8 @@ class cloud::volume::controller(
$volume_multi_backend = false, $volume_multi_backend = false,
$default_volume_type = undef, $default_volume_type = undef,
# TODO(EmilienM) Disabled for now: http://git.io/kfTmcA # TODO(EmilienM) Disabled for now: http://git.io/kfTmcA
# $backup_ceph_pool = $os_params::cinder_rbd_backup_pool, # $backup_ceph_pool = 'backup',
# $backup_ceph_user = $os_params::cinder_rbd_backup_user # $backup_ceph_user = 'cinder'
) { ) {
include 'cloud::volume' include 'cloud::volume'