From 0a34719f290f09f60c088e95f8aff19cff308ed6 Mon Sep 17 00:00:00 2001
From: Sean Dague <sdague@linux.vnet.ibm.com>
Date: Fri, 11 Oct 2013 17:14:55 -0400
Subject: [PATCH] add os-loganalyze to gerrit & zuul

Change-Id: I512c227b910cbd760cf839cfd53b5c5fc6e31731
---
 .../gerrit/acls/openstack-infra/os-loganalyze.config | 12 ++++++++++++
 .../files/jenkins_job_builder/config/projects.yaml   | 10 ++++++++++
 modules/openstack_project/files/zuul/layout.yaml     |  8 ++++++++
 .../templates/review.projects.yaml.erb               |  5 ++++-
 4 files changed, 34 insertions(+), 1 deletion(-)
 create mode 100644 modules/openstack_project/files/gerrit/acls/openstack-infra/os-loganalyze.config

diff --git a/modules/openstack_project/files/gerrit/acls/openstack-infra/os-loganalyze.config b/modules/openstack_project/files/gerrit/acls/openstack-infra/os-loganalyze.config
new file mode 100644
index 0000000000..5bb1b25318
--- /dev/null
+++ b/modules/openstack_project/files/gerrit/acls/openstack-infra/os-loganalyze.config
@@ -0,0 +1,12 @@
+[access "refs/heads/*"]
+        label-Code-Review = -2..+2 group os-loganalyze-core
+        label-Approved = +0..+1 group os-loganalyze-core
+        workInProgress = group os-loganalyze-core
+[access "refs/tags/*"]
+        create = group os-loganalyze-core
+        pushTag = group os-loganalyze-core
+[receive]
+        requireChangeId = true
+        requireContributorAgreement = true
+[submit]
+        mergeContent = true
\ No newline at end of file
diff --git a/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml b/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml
index 7e8c3a98ad..cd952a8700 100644
--- a/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml
+++ b/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml
@@ -206,6 +206,16 @@
           node: 'devstack-precise || devstack-precise-check'
 
 
+- project:
+    name: os-loganalyze
+    github-org: openstack-infra
+    node: precise
+    tarball-site: tarballs.openstack.org
+
+    jobs:
+      - python-jobs
+
+
 - project:
     name: gerritbot
     github-org: openstack-infra
diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml
index 61ac0a956e..f811286c74 100644
--- a/modules/openstack_project/files/zuul/layout.yaml
+++ b/modules/openstack_project/files/zuul/layout.yaml
@@ -360,6 +360,14 @@ projects:
           - post-mirror-python27
           - post-mirror-python33
 
+  - name: openstack-infra/os-loganalyze
+    check:
+      - gate-os-loganalyze-pep8
+      - gate-os-loganalyze-python27
+    gate:
+      - gate-os-loganalyze-pep8
+      - gate-os-loganalyze-python27
+
   - name: openstack-infra/gerrit
     check:
       - check-gerrit-unittests
diff --git a/modules/openstack_project/templates/review.projects.yaml.erb b/modules/openstack_project/templates/review.projects.yaml.erb
index 06993fd5b7..ba8d50e07a 100644
--- a/modules/openstack_project/templates/review.projects.yaml.erb
+++ b/modules/openstack_project/templates/review.projects.yaml.erb
@@ -43,6 +43,9 @@
 - project: openstack-infra/nodepool
   description: Manage a pool of nodes for a distributed test infrastructure
 - project: openstack-infra/nose-html-output
+- project: openstack-infra/os-loganalyze
+  description: log analyzer tools for logs.openstack.org
+  upstream: git://github.com/sdague/os_loganalyze.git
 - project: openstack-infra/publications
   description: "OpenStack Infra Team conference presentations and papers"
 - project: openstack-infra/puppet-apparmor
@@ -403,7 +406,7 @@
 - project: openstack/governance
   description: "Openstack Technical Committee Decisions"
 - project: openstack-infra/activity-board
-  description: "Tech community metrics dash of the OpenStack community based on the Metrics Grimoire toolset" 
+  description: "Tech community metrics dash of the OpenStack community based on the Metrics Grimoire toolset"
   upstream: git://github.com/Bitergia/openstack-dashboard.git
 - project: stackforge/fuel-main
   description: "Fuel is the control plane for installing and managing OpenStack. It is capable of doing bare metal provisioning of physical nodes, installing OpenStack on them, and much more."