56 lines
1.4 KiB
Puppet
56 lines
1.4 KiB
Puppet
#
|
|
# == Class: openstack::horizon
|
|
#
|
|
# Class to install / configure horizon.
|
|
# Will eventually include apache and ssl.
|
|
#
|
|
# NOTE: Will the inclusion of memcache be an issue?
|
|
# Such as if the server already has memcache installed?
|
|
# -jtopjian
|
|
#
|
|
# === Parameters
|
|
#
|
|
# See params.pp
|
|
#
|
|
# === Examples
|
|
#
|
|
# class { 'openstack::horizon':
|
|
# secret_key => 'dummy_secret_key',
|
|
# }
|
|
#
|
|
|
|
class openstack::horizon (
|
|
$secret_key,
|
|
$cache_server_ip = '127.0.0.1',
|
|
$cache_server_port = '11211',
|
|
$swift = false,
|
|
$quantum = false,
|
|
$horizon_app_links = undef,
|
|
$keystone_host = '127.0.0.1',
|
|
$keystone_scheme = 'http',
|
|
$keystone_default_role = 'Member',
|
|
$django_debug = 'False',
|
|
$api_result_limit = 1000
|
|
) {
|
|
|
|
class { 'memcached':
|
|
listen_ip => $cache_server_ip,
|
|
tcp_port => $cache_server_port,
|
|
udp_port => $cache_server_port,
|
|
}
|
|
|
|
class { '::horizon':
|
|
cache_server_ip => $cache_server_ip,
|
|
cache_server_port => $cache_server_port,
|
|
secret_key => $secret_key,
|
|
swift => $swift,
|
|
quantum => $quantum,
|
|
horizon_app_links => $horizon_app_links,
|
|
keystone_host => $keystone_host,
|
|
keystone_scheme => $keystone_scheme,
|
|
keystone_default_role => $keystone_default_role,
|
|
django_debug => $django_debug,
|
|
api_result_limit => $api_result_limit,
|
|
}
|
|
}
|