6af966c5ec
Change-Id: I965dd5148391430db81571795051df5ac3d8c808
63 lines
2.2 KiB
Puppet
63 lines
2.2 KiB
Puppet
class openstack_project::infracloud::controller (
|
|
$keystone_rabbit_password,
|
|
$neutron_rabbit_password,
|
|
$nova_rabbit_password,
|
|
$root_mysql_password,
|
|
$keystone_mysql_password,
|
|
$glance_mysql_password,
|
|
$neutron_mysql_password,
|
|
$nova_mysql_password,
|
|
$glance_admin_password,
|
|
$keystone_admin_password,
|
|
$neutron_admin_password,
|
|
$nova_admin_password,
|
|
$keystone_admin_token,
|
|
$ssl_key_file_contents,
|
|
$ssl_cert_file_contents,
|
|
$br_name,
|
|
$controller_management_address,
|
|
$controller_public_address = $::fqdn,
|
|
) {
|
|
class { '::infracloud::controller':
|
|
keystone_rabbit_password => $keystone_rabbit_password,
|
|
neutron_rabbit_password => $neutron_rabbit_password,
|
|
nova_rabbit_password => $nova_rabbit_password,
|
|
root_mysql_password => $root_mysql_password,
|
|
keystone_mysql_password => $keystone_mysql_password,
|
|
glance_mysql_password => $glance_mysql_password,
|
|
neutron_mysql_password => $neutron_mysql_password,
|
|
nova_mysql_password => $nova_mysql_password,
|
|
keystone_admin_password => $keystone_admin_password,
|
|
glance_admin_password => $glance_admin_password,
|
|
neutron_admin_password => $neutron_admin_password,
|
|
nova_admin_password => $nova_admin_password,
|
|
keystone_admin_token => $keystone_admin_token,
|
|
ssl_key_file_contents => $ssl_key_file_contents,
|
|
ssl_cert_file_contents => $ssl_cert_file_contents,
|
|
br_name => $br_name,
|
|
controller_management_address => $controller_management_address,
|
|
controller_public_address => $controller_public_address,
|
|
}
|
|
|
|
keystone_domain { 'infra':
|
|
ensure => present,
|
|
enabled => true,
|
|
}
|
|
|
|
keystone_tenant { 'openstackci':
|
|
ensure => present,
|
|
enabled => true,
|
|
description => 'Infra Long Lived Resources',
|
|
domain => 'infra',
|
|
require => Keystone_domain['infra'],
|
|
}
|
|
|
|
keystone_tenant { 'openstackjenkins':
|
|
ensure => present,
|
|
enabled => true,
|
|
description => 'Infra short lived resources',
|
|
domain => 'infra',
|
|
require => Keystone_domain['infra'],
|
|
}
|
|
}
|