a33ba74399
This patch removes the drush make site building function from groups-dev instance, and now directly fetch release tarballs from http://tarballs.openstack.org/groups repository. With an advanced multi-slot deployment architecture it prevents the typical Drupal WSOD issues that randomly caused site malfunction when a request arrived during installation. It also simplifies the deployment steps using the standard drush aliases and drush-dsd extension and supports local configuration variables in local_settings.php file. Change-Id: I73976a60e080d15b6f513db79fee46bcf468e302
64 lines
2.1 KiB
Puppet
64 lines
2.1 KiB
Puppet
# Copyright 2013 OpenStack Foundation
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
#
|
|
# User group management dev server
|
|
#
|
|
class openstack_project::groups_dev (
|
|
$site_admin_password = '',
|
|
$site_mysql_host = '',
|
|
$site_mysql_password = '',
|
|
$conf_cron_key = '',
|
|
$sysadmins = [],
|
|
) {
|
|
|
|
realize (
|
|
User::Virtual::Localuser['mkiss'],
|
|
)
|
|
|
|
# include drupal
|
|
|
|
class { 'openstack_project::server':
|
|
iptables_public_tcp_ports => [22, 80, 443],
|
|
sysadmins => $sysadmins,
|
|
}
|
|
|
|
vcsrepo { '/srv/groups-static-pages':
|
|
ensure => latest,
|
|
provider => git,
|
|
revision => 'master',
|
|
source => 'https://git.openstack.org/openstack-infra/groups-static-pages',
|
|
}
|
|
|
|
class { 'drupal':
|
|
site_name => 'groups-dev.openstack.org',
|
|
site_root => '/srv/vhosts/groups-dev.openstack.org',
|
|
site_mysql_host => $site_mysql_host,
|
|
site_mysql_user => 'groups',
|
|
site_mysql_password => $site_mysql_password,
|
|
site_mysql_database => 'groups_dev',
|
|
site_vhost_root => '/srv/vhosts',
|
|
site_admin_password => $site_admin_password,
|
|
site_alias => 'groupsdev',
|
|
site_profile => 'groups',
|
|
site_base_url => 'http://groups-dev.openstack.org',
|
|
package_repository => 'http://tarballs.openstack.org/groups',
|
|
package_branch => 'groups-latest',
|
|
conf_cron_key => $conf_cron_key,
|
|
conf_markdown_directory => '/srv/groups-static-pages',
|
|
require => [ Class['openstack_project::server'],
|
|
Vcsrepo['/srv/groups-static-pages'] ]
|
|
}
|
|
|
|
}
|