Marton Kiss b33a3a436d Upgrade groups portal instances to use manifest based deployment
Both staging and productive groups instances will use the manifest
published at tarballs.openstack.org/groups/drupal-updates catalog.
It helps to separate the staging and prod deployment source
versions, passed in package_branch parameter. Drush dsd tool updated
to v0.9, and puppet sitedeploy and siteupdate resources were also
refactored to support drush-dl package provider parameters.

Change-Id: I8299c063ea774a85554c2406c6cb6ccb007fb182
2014-10-20 15:16:37 +02:00

63 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 server
#
class openstack_project::groups (
$site_admin_password = '',
$site_mysql_host = '',
$site_mysql_password = '',
$conf_cron_key = '',
$sysadmins = [],
) {
realize (
User::Virtual::Localuser['mkiss'],
)
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.openstack.org',
site_root => '/srv/vhosts/groups.openstack.org',
site_mysql_host => $site_mysql_host,
site_mysql_user => 'groups',
site_mysql_password => $site_mysql_password,
site_mysql_database => 'groups',
site_vhost_root => '/srv/vhosts',
site_admin_password => $site_admin_password,
site_alias => 'groups',
site_profile => 'groups',
site_base_url => 'http://groups.openstack.org',
package_repository => 'http://tarballs.openstack.org/groups/drupal-updates/release-history',
package_branch => 'stable',
conf_cron_key => $conf_cron_key,
conf_markdown_directory => '/srv/groups-static-pages',
conf_ga_account => 'UA-17511903-1',
require => [ Class['openstack_project::server'],
Vcsrepo['/srv/groups-static-pages'] ],
}
}