0d52dff2dc
* modules/openstack_project/manifests/dashboard.pp: The dashboard module already includes mysql::server, so removing it here to get rid of the duplicate declaration error. The mysql:server module already subscribes to the conf.d directory, thus removal of the redundant notify which otherwise ends in a circular dependency graph. The puppet:/// URL is also correct now. Change-Id: If1117375b9900e90eab5f7ba3335563991571682 Reviewed-on: https://review.openstack.org/29716 Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Tested-by: Jenkins
34 lines
910 B
Puppet
34 lines
910 B
Puppet
class openstack_project::dashboard(
|
|
$password = '',
|
|
$mysql_password = '',
|
|
$sysadmins = []
|
|
) {
|
|
|
|
class { 'openstack_project::server':
|
|
iptables_public_tcp_ports => [80, 443, 3000],
|
|
sysadmins => $sysadmins
|
|
}
|
|
|
|
class { '::dashboard':
|
|
dashboard_ensure => 'present',
|
|
dashboard_user => 'www-data',
|
|
dashboard_group => 'www-data',
|
|
dashboard_password => $password,
|
|
dashboard_db => 'dashboard_prod',
|
|
dashboard_charset => 'utf8',
|
|
dashboard_site => $::fqdn,
|
|
dashboard_port => '3000',
|
|
mysql_root_pw => $mysql_password,
|
|
passenger => true,
|
|
}
|
|
|
|
file { '/etc/mysql/conf.d/mysqld_innodb_fpt.cnf':
|
|
ensure => present,
|
|
source =>
|
|
'puppet:///modules/openstack_project/dashboard/mysqld_innodb_fpt.cnf',
|
|
require => Class['mysql::server'],
|
|
}
|
|
}
|
|
|
|
# vim:sw=2:ts=2:expandtab:textwidth=79
|