ad9e1fa3ec
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
92 lines
4.9 KiB
Puppet
92 lines
4.9 KiB
Puppet
$resource = hiera($::resource_name)
|
|
|
|
$ip = $resource['input']['ip']['value']
|
|
|
|
$db_user = $resource['input']['db_user']['value']
|
|
$db_host = $resource['input']['db_host']['value']
|
|
$db_password = $resource['input']['db_password']['value']
|
|
$db_name = $resource['input']['db_name']['value']
|
|
|
|
$package_ensure = $resource['input']['package_ensure']['value']
|
|
$auth_password = $resource['input']['auth_password']['value']
|
|
$auth_type = $resource['input']['auth_type']['value']
|
|
$auth_host = $resource['input']['auth_host']['value']
|
|
$auth_port = $resource['input']['auth_port']['value']
|
|
$auth_admin_prefix = $resource['input']['auth_admin_prefix']['value']
|
|
$auth_tenant = $resource['input']['auth_tenant']['value']
|
|
$auth_user = $resource['input']['auth_user']['value']
|
|
$auth_protocol = $resource['input']['auth_protocol']['value']
|
|
$auth_uri = $resource['input']['auth_uri']['value']
|
|
$database_max_retries = $resource['input']['database_max_retries']['value']
|
|
$database_idle_timeout = $resource['input']['database_idle_timeout']['value']
|
|
$database_retry_interval = $resource['input']['database_retry_interval']['value']
|
|
$database_min_pool_size = $resource['input']['database_min_pool_size']['value']
|
|
$database_max_pool_size = $resource['input']['database_max_pool_size']['value']
|
|
$database_max_overflow = $resource['input']['database_max_overflow']['value']
|
|
$sync_db = $resource['input']['sync_db']['value']
|
|
$api_workers = $resource['input']['api_workers']['value']
|
|
$rpc_workers = $resource['input']['rpc_workers']['value']
|
|
$agent_down_time = $resource['input']['agent_down_time']['value']
|
|
$router_scheduler_driver = $resource['input']['router_scheduler_driver']['value']
|
|
$router_distributed = $resource['input']['router_distributed']['value']
|
|
$l3_ha = $resource['input']['l3_ha']['value']
|
|
$max_l3_agents_per_router = $resource['input']['max_l3_agents_per_router']['value']
|
|
$min_l3_agents_per_router = $resource['input']['min_l3_agents_per_router']['value']
|
|
$l3_ha_net_cidr = $resource['input']['l3_ha_net_cidr']['value']
|
|
$mysql_module = $resource['input']['mysql_module']['value']
|
|
$sql_max_retries = $resource['input']['sql_max_retries']['value']
|
|
$max_retries = $resource['input']['max_retries']['value']
|
|
$sql_idle_timeout = $resource['input']['sql_idle_timeout']['value']
|
|
$idle_timeout = $resource['input']['idle_timeout']['value']
|
|
$sql_reconnect_interval = $resource['input']['sql_reconnect_interval']['value']
|
|
$retry_interval = $resource['input']['retry_interval']['value']
|
|
$log_dir = $resource['input']['log_dir']['value']
|
|
$log_file = $resource['input']['log_file']['value']
|
|
$report_interval = $resource['input']['report_interval']['value']
|
|
|
|
class { 'neutron::server':
|
|
enabled => true,
|
|
manage_service => true,
|
|
database_connection => "mysql://${db_user}:${db_password}@${db_host}/${db_name}",
|
|
package_ensure => $package_ensure,
|
|
auth_password => $auth_password,
|
|
auth_type => $auth_type,
|
|
auth_host => $auth_host,
|
|
auth_port => $auth_port,
|
|
auth_admin_prefix => $auth_admin_prefix,
|
|
auth_tenant => $auth_tenant,
|
|
auth_user => $auth_user,
|
|
auth_protocol => $auth_protocol,
|
|
auth_uri => $auth_uri,
|
|
database_max_retries => $database_max_retries,
|
|
database_idle_timeout => $database_idle_timeout,
|
|
database_retry_interval => $database_retry_interval,
|
|
database_min_pool_size => $database_min_pool_size,
|
|
database_max_pool_size => $database_max_pool_size,
|
|
database_max_overflow => $database_max_overflow,
|
|
sync_db => $sync_db,
|
|
api_workers => $api_workers,
|
|
rpc_workers => $rpc_workers,
|
|
agent_down_time => $agent_down_time,
|
|
router_scheduler_driver => $router_scheduler_driver,
|
|
router_distributed => $router_distributed,
|
|
l3_ha => $l3_ha,
|
|
max_l3_agents_per_router => $max_l3_agents_per_router,
|
|
min_l3_agents_per_router => $min_l3_agents_per_router,
|
|
l3_ha_net_cidr => $l3_ha_net_cidr,
|
|
mysql_module => $mysql_module,
|
|
sql_max_retries => $sql_max_retries,
|
|
max_retries => $max_retries,
|
|
sql_idle_timeout => $sql_idle_timeout,
|
|
idle_timeout => $idle_timeout,
|
|
sql_reconnect_interval => $sql_reconnect_interval,
|
|
retry_interval => $retry_interval,
|
|
log_dir => $log_dir,
|
|
log_file => $log_file,
|
|
report_interval => $report_interval,
|
|
}
|
|
|
|
# Remove external class dependency
|
|
Service <| title == 'neutron-server' |> {
|
|
require => undef
|
|
} |