Create stackalytics.o.o under -infra

Change-Id: I9afa912abee38fb2732e97df06d72788b57d53df
Depends-On: If62b3f633000cc6380d892cad0a2160136ce8ca4
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2015-06-12 17:09:21 +00:00
parent 43a8ae32f3
commit bb0881f91d
6 changed files with 71 additions and 0 deletions

View File

@ -0,0 +1,39 @@
:title: Stackalytics
.. _stackalytics:
Stackalytics
############
Stackalytics is a service that collects and processes development activity
data such as commits, lines of code changed, code reviews and blueprints then
makes it possible to visualize it in a convenient web dashboard. The
Stackalytics dashboard makes it possible to view data by project, company,
contributor, and other factors.
The primary data sources for Stackalytics are the OpenStack Git repositories
and the Gerrit review history.
At a Glance
===========
:Hosts:
* http://stackalytics.openstack.org
:Puppet:
* https://git.openstack.org/cgit/openstack-infra/puppet-stackalytics/tree/
* :file:`modules/openstack_project/manifests/stackalytics.pp`
:Projects:
* https://git.openstack.org/cgit/openstack/stackalytics
:Documentation:
* https://wiki.openstack.org/wiki/Stackalytics
:Bugs:
* https://bugs.launchpad.net/stackalytics
Installation
============
Gerrit Events
-------------
Create a dedicated service account, described in :ref:`request-account-label`,
in order to properly stream events from :ref:`gerrit`.

View File

@ -23,6 +23,7 @@ Major Systems
paste paste
planet planet
puppet puppet
stackalytics
static static
bandersnatch bandersnatch
lists lists

View File

@ -145,6 +145,18 @@ node 'health.openstack.org' {
} }
} }
# Node-OS: trusty
node 'stackalytics.openstack.org' {
class { 'openstack_project::server':
iptables_public_tcp_ports => [80],
sysadmins => hiera('sysadmins', []),
}
class { 'openstack_project::stackalytics':
gerrit_ssh_user => hiera('stackalytics_gerrit_ssh_user'),
stackalytics_ssh_private_key => hiera('stackalytics_ssh_private_key_contents'),
}
}
# Node-OS: precise # Node-OS: precise
node 'jenkins.openstack.org' { node 'jenkins.openstack.org' {

View File

@ -122,6 +122,7 @@ INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-simpleproxy"]="o
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-snmpd"]="origin/master" INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-snmpd"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-ssh"]="origin/master" INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-ssh"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-ssl_cert_check"]="origin/master" INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-ssl_cert_check"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-stackalytics"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-statusbot"]="origin/master" INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-statusbot"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-storyboard"]="origin/master" INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-storyboard"]="origin/master"
INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-subunit2sql"]="origin/master" INTEGRATION_MODULES["$OPENSTACK_GIT_ROOT/openstack-infra/puppet-subunit2sql"]="origin/master"

View File

@ -152,6 +152,7 @@ class openstack_project::cacti (
'release.slave.openstack.org', 'release.slave.openstack.org',
'review-dev.openstack.org', 'review-dev.openstack.org',
'review.openstack.org', 'review.openstack.org',
'stackalytics.openstack.org',
'static.openstack.org', 'static.openstack.org',
'status.openstack.org', 'status.openstack.org',
'subunit-worker01.openstack.org', 'subunit-worker01.openstack.org',

View File

@ -0,0 +1,17 @@
# == Class: openstack_project::stackalytics
#
class openstack_project::stackalytics (
$gerrit_ssh_user,
$stackalytics_ssh_private_key,
$vhost_name = $::fqdn,
) {
class { '::stackalytics':
gerrit_ssh_user => $gerrit_ssh_user,
stackalytics_ssh_private_key => $stackalytics_ssh_private_key,
vhost_name => $vhost_name,
}
realize (
User::Virtual::Localuser['pabelanger'],
)
}